diff --git a/Caddyfile b/Caddyfile index ea3017b..d2f4bee 100644 --- a/Caddyfile +++ b/Caddyfile @@ -53,11 +53,11 @@ http://static-mat-services.fly.dev { # caching @static { - path *.bmp *.jpg *.png *.svg *.gif *.pdf *.css *.js *.woff *.woff2 + path *.bmp *.jpg *.png *.svg *.gif *.pdf *.css *.js *.woff *.woff2 /style/* /font/* /image/* } route { - header Cache-Control max-age=180 - header /sitemap.xml Cache-Control max-age=0 header @static Cache-Control max-age=31536000, immutable + header *.xml Cache-Control max-age=0 + header ?Cache-Control max-age=360 } } diff --git a/content/posts/cellular-automata-toys/index.md b/content/posts/cellular-automata-toys/index.md index b15e191..a0aa22f 100644 --- a/content/posts/cellular-automata-toys/index.md +++ b/content/posts/cellular-automata-toys/index.md @@ -3,6 +3,8 @@ title = "cellular automata toys in löve2d" date = "2022-09-15" [taxonomies] tags = ["cellular-automata", "lua", "löve2d"] +[extra] +hero = true +++
diff --git a/templates/partials/header.html b/templates/partials/header.html index 36e3060..dc871c4 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -4,17 +4,7 @@ - {# Site title #} {% set current_path = current_path | default(value="/") %} - {% if current_path == "/" %} - - {{ config.title | default(value="Home") }} - - {% else %} - - {{ page.title | default(value=config.title) | default(value="Post") }} - - {% endif %} {# Favicon #} {% if config.extra.favicon %} @@ -48,5 +38,35 @@ {% endfor %} {% endif %} + {% if current_path == "/" %} + {% set current_title = config.title | default(value="home") %} + {% set current_description = "the personal site of mat ess" %} + {% set hero = false %} + {% else %} + {% set current_title = page.title | default(value=config.title) | default(value="post") %} + {% set current_description = page.description | default(value="from the personal site of mat ess") %} + {% set hero = page.extra.hero | default(value=false) %} + {% endif %} + + {# Meta links #} + {{ current_title }} + + + + {# Open Graph / Facebook #} + + + + {% if hero %} + + {% endif %} + + {# Twitter #} + + + + {% if hero %} + + {% endif %} \ No newline at end of file