Merge pull request #9 from go-gitea/makefile-theme

Download & unzip theme from dl.gitea.io
This commit is contained in:
Thomas Boerger 2016-12-08 22:27:59 +01:00 committed by GitHub
commit 623b43bba3
2 changed files with 10 additions and 4 deletions

View File

@ -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 $@

View File

@ -2,8 +2,8 @@ baseurl = "/"
languageCode = "en-us"
title = "Blog - Gitea"
theme = "gitea"
disableRSS = true
disableSitemap = true
disableRSS = false
disableSitemap = false
[params]
Description = "Git with a cup of tea"