Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use specific commit from theme repo #178

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions .theme_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
846b1c4
18 changes: 14 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
cat := $(if $(filter $(OS),Windows_NT),type,cat)
THEME_VERSION=$(shell $(cat) .theme_version)

install-theme: ## Install theme
git clone [email protected]:biaslab/hugo-academic-group.git ./themes/academic-group;
update-theme: ## update theme
cd ./themes/academic-group; git pull
cd ./themes/academic-group && git checkout $(THEME_VERSION)
set-theme: ## Set theme
cd ./themes/academic-group && git checkout $(THEME_VERSION)
update-theme: ## Update theme to the latest version
cd ./themes/academic-group && git pull origin master
cd ./themes/academic-group && git checkout master
cd ./themes/academic-group && git rev-parse --short HEAD > ../../.theme_version
show-theme-version: ## Show theme version
@echo $(THEME_VERSION)
build-website: ## Build website
hugo -t academic-group
preview-website: ## Preview website
preview-website: set-theme ## Preview website
hugo server -t academic-group -w
publish: ## Publish website
publish: set-theme ## Publish website
./publish.sh
rebuild-docs: ## Build docs
./rebuild_docs.sh
Expand Down