зеркало из https://github.com/go-gitea/website.git
Merge pull request #11 from go-gitea/makefile-theme
Download & unzip theme from dl.gitea.io
This commit is contained in:
Коммит
4d1a5f6d08
10
Makefile
10
Makefile
|
@ -1,8 +1,14 @@
|
||||||
THEME := themes/gitea
|
THEME := themes/gitea
|
||||||
|
PUBLIC := public
|
||||||
|
ARCHIVE := https://dl.gitea.io/theme/master.tar.gz
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -rf $(PUBLIC) $(THEME)
|
||||||
|
|
||||||
.PHONY: server
|
.PHONY: server
|
||||||
server: $(THEME)
|
server: $(THEME)
|
||||||
hugo server
|
hugo server
|
||||||
|
@ -13,7 +19,7 @@ build: $(THEME)
|
||||||
|
|
||||||
.PHONY: update
|
.PHONY: update
|
||||||
update: $(THEME)
|
update: $(THEME)
|
||||||
cd $(THEME) && git fetch --all --prune && git rebase origin/master
|
|
||||||
|
|
||||||
$(THEME):
|
$(THEME):
|
||||||
git clone https://github.com/go-gitea/theme.git $@
|
mkdir -p $@
|
||||||
|
curl -s $(ARCHIVE) | tar xz -C $@
|
||||||
|
|
|
@ -2,8 +2,8 @@ baseurl = "/"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
title = "Gitea"
|
title = "Gitea"
|
||||||
theme = "gitea"
|
theme = "gitea"
|
||||||
disableRSS = true
|
disableRSS = false
|
||||||
disableSitemap = true
|
disableSitemap = false
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
Description = "Git with a cup of tea"
|
Description = "Git with a cup of tea"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче