Skip to content

Commit

Permalink
ci: update to official zola image
Browse files Browse the repository at this point in the history
  • Loading branch information
gregswift committed Aug 4, 2024
1 parent eb6e4cf commit f1999a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ THEMES_DIR = themes
CONTAINER_WORKDIR = /workdir
CONTAINER_ENGINE ?= podman
CE_RUN = $(CONTAINER_ENGINE) run -i --rm -w $(CONTAINER_WORKDIR) -v $(PWD):$(CONTAINER_WORKDIR):Z
ZOLA_COMMAND := $(CE_RUN) docker.io/j1mc/docker-zola:latest
ZOLA_COMMAND := $(CE_RUN) ghcr.io/getzola/zola:v0.19.1

export

Expand Down Expand Up @@ -58,6 +58,10 @@ update-themes: ## Update all themes loaded as git submodules
build: ## Build content for publishing
$(ZOLA_COMMAND) build

.PHONY:serve
serve: ## Run a local instance of the site for debugging
$(ZOLA_COMMAND) serve

.PHONY:publish
publish: .check-env-publish build ## Send the files to hosting provider using scp
rsync -e 'ssh -o StrictHostKeyChecking=accept-new' -atvz $(OUTPUT_DIR)/* $(TARGET_SYSTEM):$(TARGET_DIR)/
13 changes: 7 additions & 6 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,22 @@ compile_sass = true

theme = "hermit_zola"

# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true
highlight_theme = "charcoal"

# Whether to build a search index to be used later on by a JavaScript library
build_search_index = true

# When set to "true", an RSS feed is automatically generated.
generate_rss = true
generate_feeds = true

taxonomies = [
{name = "tags", rss = true},
]

[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true
highlight_theme = "charcoal"

[extra]
# Put all your custom variables here
date_format = "%F"
Expand Down

0 comments on commit f1999a2

Please sign in to comment.