about summary refs log tree commit diff
path: root/templates/parts
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-03-26 16:55:25 +0900
committersefidel <contact@sefidel.net>2023-03-26 16:55:25 +0900
commit77ffc8dfeabd45cb3fac500902fcbcb7176edcc7 (patch)
tree4c3a538e0792d60ca637a3921341820087311233 /templates/parts
downloadsefidel-web-77ffc8dfeabd45cb3fac500902fcbcb7176edcc7.tar.gz
sefidel-web-77ffc8dfeabd45cb3fac500902fcbcb7176edcc7.zip
project: Initial commit
Diffstat (limited to 'templates/parts')
-rw-r--r--templates/parts/head.html11
-rw-r--r--templates/parts/nav.html8
2 files changed, 19 insertions, 0 deletions
diff --git a/templates/parts/head.html b/templates/parts/head.html
new file mode 100644
index 0000000..1336ec0
--- /dev/null
+++ b/templates/parts/head.html
@@ -0,0 +1,11 @@
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+{% block rss %}
+<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
+{% endblock %}
+{% if current_url %}
+<link rel="canonical" href="{{ current_url | safe }}">
+{% endif %}
+<link rel="stylesheet" href="{{ get_url(path="normalize.css") }}">
+<link rel="stylesheet" href="{{ get_url(path="style.css") }}">
+<link rel="stylesheet" href="{{ get_url(path="sarasa-gothic.css") }}">
diff --git a/templates/parts/nav.html b/templates/parts/nav.html
new file mode 100644
index 0000000..4d47ce0
--- /dev/null
+++ b/templates/parts/nav.html
@@ -0,0 +1,8 @@
+<nav>
+  {% if not isHome %}
+  <a href="/">Home</a> &middot;
+  {% endif %}
+  <a href="/posts">Posts</a> &middot;
+  <a href="/projects">Projects</a> &middot;
+  <a rel="me" href="/about">About</a>
+</nav>