Correct 404 styling and add dghomelink logic

This commit is contained in:
Ole Eskild Steensen 2022-03-21 21:08:33 +01:00
parent 441793f023
commit 90a259509e
2 changed files with 13 additions and 5 deletions

View File

@ -3,9 +3,15 @@
<html lang="en"> <html lang="en">
<head> <head>
<title>Nothing here</title> <title>Nothing here</title>
<link href="/styles/style.css" rel="stylesheet"> <link href="/styles/digital-garden-base.css" rel="stylesheet">
<link href="/styles/custom-style.css" rel="stylesheet"> {%-if meta.themeStyle%}
<link href="/styles/obsidian-base.css" rel="stylesheet">
{{meta.themeStyle | safe}}
{% else %}
<link href="/styles/style.css" rel="stylesheet">
{%endif%}
<link href="/styles/custom-style.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
@ -16,7 +22,7 @@
<div class="font-bg"> &#x1F60E; </div> <div class="font-bg"> &#x1F60E; </div>
<h1>There is nothing here</h1> <h1>There is nothing here</h1>
<p>If you got here from a link, this note is probably not made public</p> <p>If you got here from a link, this note is probably not made public</p>
<a href="/">Go back to garden entry</a> <a href="/">Go back home</a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -12,8 +12,10 @@ permalink: "notes/{{ page.fileSlug | slugify }}/"
{%include "components/notegrowthhistory.njk"%} {%include "components/notegrowthhistory.njk"%}
<div class="content"> <div class="content">
<a href="/">🏡 Back Home</a> {% if dgHomeLink !== false%}
<a href="/">🏡 Back Home</a>
{% endif %}
{{ content | safe}} {{ content | safe}}
</div> </div>
</body> </body>
</html> </html>