feat: add links

This commit is contained in:
Moritz Böhme 2025-05-17 22:07:17 +02:00
parent d4e8bde4cd
commit 2a4321bfa6
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
6 changed files with 28 additions and 3 deletions

View file

@ -9,11 +9,14 @@ description = "Stay a while :)"
compile_sass = true
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = true
build_search_index = false # NOTE: enable this when adding a search script
# The site theme to use.
theme = "anemone"
# When set to "true", a feed is automatically generated.
generate_feeds = false
[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola

View file

@ -1,3 +1,7 @@
+++
+++
Hello World!
# Links
- {{ mastodon_root(text="mastodon") }}
- [git](https://git.moritzboeh.me/)
- [mail](mailto:contact@moritz.place)

View file

@ -22,5 +22,16 @@
installPhase = "cp -r public $out";
};
in {
services.nginx.virtualHosts."moritz.place".locations."/".root = "${package}";
services.nginx.virtualHosts."moritz.place".root = "${package}";
services.nginx.virtualHosts."moritz.place".locations."/" = {
index = "index.html";
tryFiles = ''"''${uri}.html" $uri $uri/ =404'';
};
services.nginx.virtualHosts."moritz.place".extraConfig = ''
error_page 404 /404.html;
location = /404.html {
internal;
}
'';
}

View file

@ -0,0 +1,5 @@
User-agent: *
Allow: /$
Allow: /{{ get_url(path="sitemap.xml") }}
Disallow: /
Sitemap: {{ get_url(path="sitemap.xml") }}

View file

@ -0,0 +1 @@
<meta name="fediverse:creator" content="@moritz@functional.cafe">

View file

@ -0,0 +1 @@
<a rel="me" href="https://functional.cafe/@moritz">{{ text | safe }}</a>