Skip to content

Commit 4916e57

Browse files
committed
fix+chore: fix tags link in footer + updated action and config
~ the Tags Taxonomy link was shown even when it was not configured ~ updated actions and config to support latest zola version
1 parent cd84a10 commit 4916e57

4 files changed

Lines changed: 19 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
1-
on: push
21
name: Build and deploy GH Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
312
jobs:
413
build:
514
name: Deploy
615
runs-on: ubuntu-latest
716
steps:
817
# Checkout
9-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v6
1019
# Build & deploy
1120
- name: Deploy to gh-pages branch
12-
uses: shalzz/zola-deploy-action@v0.17.2
21+
uses: shalzz/zola-deploy-action@v0.22.1
1322
env:
1423
# Target branch
1524
PAGES_BRANCH: gh-pages

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 oltdaniel
3+
Copyright (c) 2026 Daniel Oltmanns
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

config.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ taxonomies = [
2323
{ name = "tags" }
2424
]
2525

26-
[markdown]
27-
# Whether to do syntax highlighting
28-
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
29-
highlight_code = true
30-
highlight_theme = "visual-studio-dark"
26+
[markdown.highlighting]
27+
light_theme = "github-light"
28+
dark_theme = "github-dark"
3129

3230
[extra]
3331
social_media = [

templates/base.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@
5252
<hr text="&copy; Copyright {{ now() | date(format='%Y') }}" />
5353
<div class="footer-social-media">
5454
<a id="toggle-theme"></a>
55+
{% set tags = get_taxonomy(kind="tags", required=false) %}
56+
{% if tags %}
5557
<a href="/tags">Tags</a>
58+
{% endif %}
5659
{% if config.extra.social_media %}
5760
{% for social in config.extra.social_media %}
5861
{% if social.rel %}

0 commit comments

Comments
 (0)