My personal blog hauleth.dev
blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: add canonical URL to all pages

+10 -3
+2 -2
flake.lock
··· 21 21 "nixpkgs": { 22 22 "locked": { 23 23 "lastModified": 0, 24 - "narHash": "sha256-FurMxmjEEqEMld11eX2vgfAx0Rz0JhoFm8UgxbfCZa8=", 25 - "path": "/nix/store/jkbly0r78qgqgsi7znsxc8mbh8ydfq4n-source", 24 + "narHash": "sha256-MmJvj6mlWzeRwKGLcwmZpKaOPZ5nJb/6al5CXqJsgjo=", 25 + "path": "/nix/store/ad1fkqvkbxhap0gpb688bgrad221lgwj-source", 26 26 "type": "path" 27 27 }, 28 28 "original": {
+1 -1
netlify.toml
··· 3 3 publish = "public/" 4 4 5 5 [build.environment] 6 - ZOLA_VERSION = "0.19.2" 6 + ZOLA_VERSION = "0.20.0" 7 7 8 8 [context.deploy-preview] 9 9 command = "zola build --drafts --base-url $DEPLOY_PRIME_URL"
+7
templates/index.html
··· 10 10 {% endblock rss %} 11 11 12 12 {% block og_preview %} 13 + {%- if section -%} 14 + <link rel="canonical" href="{{ section.permalink }}" /> 15 + {%- elif page -%} 16 + <link rel="canonical" href="{{ page.permalink }}" /> 17 + {%- else -%} 18 + <link rel="canonical" href="{{ current_url }}" /> 19 + {%- endif -%} 13 20 {{ social::og_preview() }} 14 21 15 22 {%- if config.extra.twitter.site -%}