pidgin/nest

Set up a blog section with lists

23 months ago, Jason
8f1fd694cd86
Parents 30dccbc81b73
Children 8eb183677415
Set up a blog section with lists

This adds the ability to have more transient content on the website in the form of a blog. When creating the alert banner, I realised that alerts might need an impermanent location to direct users too
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hugo/archetypes/post.md Tue Dec 31 00:23:20 2019 +0000
@@ -0,0 +1,10 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+date: {{ .Date }}
+draft: true
+hidden: false
+catagories:
+ - blog
+---
+
+Lorem ipsum
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hugo/content/post/_index.md Tue Dec 31 00:23:20 2019 +0000
@@ -0,0 +1,5 @@
+---
+title: Blog
+---
+
+Keep up to date with all things Pidgin, Finch and libpurple
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hugo/content/post/nest-launch.md Tue Dec 31 00:23:20 2019 +0000
@@ -0,0 +1,13 @@
+---
+title: "Nest Launch"
+date: # TODO: Modify date
+draft: true
+hidden: false
+catagories:
+ - blog
+ - website
+---
+
+Good news everyone! The site has launched!
+
+<!-- TODO: actually write a post -->
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hugo/layouts/post/list.html Tue Dec 31 00:23:20 2019 +0000
@@ -0,0 +1,20 @@
+{{ partial "header.html" . }}
+
+{{ .Content }}
+
+{{ range .Pages.GroupByDate "2006-01" }}
+ <h3>{{ .Key }}</h3>
+ <ul>
+ {{ range .Pages }}
+ <li>
+ <h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
+ <div>{{ .Summary }}</div>
+ <div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
+ </li>
+ {{ end }}
+ </ul>
+{{ end }}
+
+{{ partial "footline.html" . }}
+
+{{ partial "footer.html" . }}