зеркало из 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
|
||||
PUBLIC := public
|
||||
ARCHIVE := https://dl.gitea.io/theme/master.tar.gz
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(PUBLIC) $(THEME)
|
||||
|
||||
.PHONY: server
|
||||
server: $(THEME)
|
||||
hugo server
|
||||
|
@ -13,7 +19,7 @@ build: $(THEME)
|
|||
|
||||
.PHONY: update
|
||||
update: $(THEME)
|
||||
cd $(THEME) && git fetch --all --prune && git rebase origin/master
|
||||
|
||||
$(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"
|
||||
title = "Gitea"
|
||||
theme = "gitea"
|
||||
disableRSS = true
|
||||
disableSitemap = true
|
||||
disableRSS = false
|
||||
disableSitemap = false
|
||||
|
||||
[params]
|
||||
Description = "Git with a cup of tea"
|
||||
|
|
Загрузка…
Ссылка в новой задаче