diff --git a/Makefile b/Makefile index 6e07bb2..cff7dc8 100644 --- a/Makefile +++ b/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 $@ diff --git a/config.toml b/config.toml index d4ec1d1..3991655 100644 --- a/config.toml +++ b/config.toml @@ -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"