aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2023-05-17 10:59:36 +0200
committerDrew DeVault <sir@cmpwn.com>2023-05-17 11:04:50 +0200
commit53e6bebac571cf1b792d63342545943cea9b4ec5 (patch)
tree3b3a98dfb0f822c1572a28626523ea5cd563d8ac /layouts
parent4ac6c2f6aed9edadfe980b4b19025c29ebd3a314 (diff)
downloadwritefreesoftware.org-53e6bebac571cf1b792d63342545943cea9b4ec5.tar.xz
Import old blog post
Diffstat (limited to 'layouts')
-rw-r--r--layouts/blog/single.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
new file mode 100644
index 0000000..a81ad10
--- /dev/null
+++ b/layouts/blog/single.html
@@ -0,0 +1,34 @@
+{{ define "main" }}
+ <div class="wrap mt post">
+ <div>
+ {{- $date := (dateFormat "02 January 2006" .Date) -}}
+ <p class="post_date">Published on {{ $date }} by {{ .Params.author }}</p>
+ <h1 class="post_title">{{ .Title }}</h1>
+ <div class="post_body">
+ <div class="post_inner">
+ {{ with .Params.image }}
+ {{- $image := absURL (printf "images/%s" .) }}
+ {{ if in . "https://" }}
+ {{- $image = . }}
+ {{ end }}
+ <img src="{{ $image }}" alt="{{ . }}" class="post_thumbnail">
+ {{ end }}
+ {{ .Content }}
+ </div>
+ <div class="post_extra mb-2">
+ {{ partialCached "share" . }}
+ </div>
+ <div>
+ {{ template "_internal/disqus.html" . }}
+ </div>
+ </div>
+ </div>
+ <!-- <a href="{{ $.Site.BaseURL }}" class="post_nav">
+ <span class="post_next">The Latest
+ <svg class="icon icon_scale">
+ <use xlink:href="#double-arrow"></use>
+ </svg>
+ </span>
+ </a> -->
+ </div>
+{{ end }}