Browse Source

Added Journal, expect dumb opinions SOON

main
Seth Stubbs 3 weeks ago
parent
commit
7638f690ba
  1. 12
      config.toml
  2. 10
      content/journal/why-journal.md
  3. 14
      layouts/section/journal.html
  4. 2
      layouts/section/pages.html

12
config.toml

@ -28,19 +28,23 @@ title = 'OpenPunk'
name = "Blog"
url = "/pages/"
weight = 2
[[menu.main]]
name = "Journal"
url = "/journal/"
weight = 3
[[menu.main]]
name = "Software"
url = "/software/"
weight = 3
weight = 4
[[menu.main]]
name = "Places"
url = "/places/"
weight = 4
weight = 5
[[menu.main]]
name = "Tags"
url = "/tags/"
weight = 5
weight = 6
[[menu.main]]
name = "Gitea"
url = "https://git.openpunk.com"
weight = 6
weight = 7

10
content/journal/why-journal.md

@ -0,0 +1,10 @@
---
title: "Why journal?"
date: 2022-01-09
author: CPunch
tags: ["opinion"]
---
I've come to the conclusion that I *enjoy* writing. Sad part is that I don't always have a clean presentable project to write a roughly 1000 word essay over. Thats where this journal comes in! Think of these as 'mini-blog' posts, short and sweet. I'm not going to try to make these as presentable as my blog posts, aka "I'm lazy and would like to write about small projects or opinions that wouldn't fit into a whole post." In the past I've refrained from posting opinion-related topics, however I am labeling my journal *my fucking journal*, opinions not excluded!
Hiring inquirers should maybe skip out on this section of my site. My opinions are liable to be wrong and full of first-world perspectives.

14
layouts/section/journal.html

@ -0,0 +1,14 @@
{{ define "main" }}
<div class="main">
<h1>Blog</h1>
{{ range .Pages.ByPublishDate.Reverse }}
<p>
<a href="{{ .RelPermalink }}">{{- if not .Date.IsZero -}}
{{- (slice (.Date.Format (default "January 2, 2006" .Site.Params.DateFormat))) }}
{{- end -}}<br>- {{ .Title }}</a>
</p>
{{ end }}
</div>
{{ end }}

2
layouts/section/pages.html

@ -1,7 +1,7 @@
{{ define "main" }}
<div class="main">
<h1>Blog</h1>
<h1>Journal</h1>
{{ range .Pages.ByPublishDate.Reverse }}
<p>
<a href="{{ .RelPermalink }}">{{- if not .Date.IsZero -}}

Loading…
Cancel
Save