summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosias <me@josias.dev>2021-04-24 12:56:22 -0700
committerJosias <me@josias.dev>2021-04-24 12:56:22 -0700
commiteb954c44b4fd90704635250bb91b4454bd99523d (patch)
tree310e62d1fc05cd1d7b2f8ba15e4edbcf56bf6f75
parent8d0a142fdd44391f5aec73d83810dafca8843bdc (diff)
www: add notion poetry page and first poem
-rw-r--r--www/content/notion/_index.md9
-rw-r--r--www/content/notion/beginnings.md19
-rw-r--r--www/templates/blog.html2
-rw-r--r--www/templates/notion-page.html10
-rw-r--r--www/templates/notion.html23
5 files changed, 62 insertions, 1 deletions
diff --git a/www/content/notion/_index.md b/www/content/notion/_index.md
new file mode 100644
index 0000000..85cb524
--- /dev/null
+++ b/www/content/notion/_index.md
@@ -0,0 +1,9 @@
++++
+title = "Notion"
+sort_by = "date"
+paginate_by = 1
+paginate_path = ""
+template = "notion.html"
+page_template = "notion-page.html"
++++
+
diff --git a/www/content/notion/beginnings.md b/www/content/notion/beginnings.md
new file mode 100644
index 0000000..a340778
--- /dev/null
+++ b/www/content/notion/beginnings.md
@@ -0,0 +1,19 @@
++++
+title = "Beginnings"
+date = 2021-04-24
++++
+
+From the start to the end\
+A story is told\
+From the twists to the bends\
+A plot unfolds\
+
+From stanzas through verses\
+Ideas are portrayed\
+In rhythm and rhyme\
+Imagination relayed\
+
+New thoughts and emotion\
+Will soon be expressed\
+Dreaming, imagining\
+From now shall commence
diff --git a/www/templates/blog.html b/www/templates/blog.html
index ef11472..1b02654 100644
--- a/www/templates/blog.html
+++ b/www/templates/blog.html
@@ -18,7 +18,7 @@
{% if page.taxonomies.tags %}
{% for tag in page.taxonomies.tags %}
- <a href="{{ config.base_url }}/tags/{{ tag | lower }}"><b>#{{ tag }}</b></a>
+ <a href="{{ config.base_url }}/tags/{{ tag | slugify }}"><b>#{{ tag }}</b></a>
{% endfor %}
{% endif %}
diff --git a/www/templates/notion-page.html b/www/templates/notion-page.html
new file mode 100644
index 0000000..27218d9
--- /dev/null
+++ b/www/templates/notion-page.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+<div style="text-align: center">
+<h2>{{ page.title }}</h2>
+{{ page.content | safe }}
+</div>
+
+{% endblock content %}
diff --git a/www/templates/notion.html b/www/templates/notion.html
new file mode 100644
index 0000000..86ca377
--- /dev/null
+++ b/www/templates/notion.html
@@ -0,0 +1,23 @@
+{% extends "base.html" %}
+
+{% block content %}
+{#{% set page = section.pages | last %}#}
+{% for page in paginator.pages %}
+<div style="text-align: center">
+<h2><a href="{{ page.permalink }}">{{ page.title }}</a></h2>
+{{ page.content | safe }}
+</div>
+{% endfor %}
+
+<div>
+{% if paginator.next %}
+<a style="float: left" href="{{ paginator.next }}">&lt; older</a>
+{% endif %}
+{% if paginator.previous %}
+<a style="float: right" href="{{ paginator.previous }}">newer &gt;</a>
+{% endif %}
+</div>
+
+{{ section.content | safe }}
+
+{% endblock content %}