about summary refs log tree commit diff
path: root/templates/parts
diff options
context:
space:
mode:
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>