feat: add links
This commit is contained in:
parent
d4e8bde4cd
commit
2a4321bfa6
6 changed files with 28 additions and 3 deletions
|
|
@ -9,11 +9,14 @@ description = "Stay a while :)"
|
||||||
compile_sass = true
|
compile_sass = true
|
||||||
|
|
||||||
# Whether to build a search index to be used later on by a JavaScript library
|
# 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.
|
# The site theme to use.
|
||||||
theme = "anemone"
|
theme = "anemone"
|
||||||
|
|
||||||
|
# When set to "true", a feed is automatically generated.
|
||||||
|
generate_feeds = false
|
||||||
|
|
||||||
[markdown]
|
[markdown]
|
||||||
# Whether to do syntax highlighting
|
# Whether to do syntax highlighting
|
||||||
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
|
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
+++
|
+++
|
||||||
+++
|
+++
|
||||||
Hello World!
|
|
||||||
|
# Links
|
||||||
|
- {{ mastodon_root(text="mastodon") }}
|
||||||
|
- [git](https://git.moritzboeh.me/)
|
||||||
|
- [mail](mailto:contact@moritz.place)
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,16 @@
|
||||||
installPhase = "cp -r public $out";
|
installPhase = "cp -r public $out";
|
||||||
};
|
};
|
||||||
in {
|
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;
|
||||||
|
}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
machines/moritz-server/website/root/templates/robots.txt
Normal file
5
machines/moritz-server/website/root/templates/robots.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
User-agent: *
|
||||||
|
Allow: /$
|
||||||
|
Allow: /{{ get_url(path="sitemap.xml") }}
|
||||||
|
Disallow: /
|
||||||
|
Sitemap: {{ get_url(path="sitemap.xml") }}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
<meta name="fediverse:creator" content="@moritz@functional.cafe">
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
<a rel="me" href="https://functional.cafe/@moritz">{{ text | safe }}</a>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue