aboutsummaryrefslogtreecommitdiff
path: root/template/post.html
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2021-03-23 03:41:44 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2021-03-23 03:41:44 +0100
commitc8443841638b57440c961b0ab70f2d14a8021466 (patch)
treeccbeb9e332dcc59550e51ae10392c098403478bc /template/post.html
parent4c69b3793bd09c92704726e8d89699af983ffef2 (diff)
downloadmitjafelicijan.com-c8443841638b57440c961b0ab70f2d14a8021466.tar.gz
Added new projects and cleaned up some templates
Diffstat (limited to 'template/post.html')
-rwxr-xr-xtemplate/post.html46
1 files changed, 24 insertions, 22 deletions
diff --git a/template/post.html b/template/post.html
index 3247d8f..d5c20f3 100755
--- a/template/post.html
+++ b/template/post.html
@@ -18,7 +18,9 @@
18 <article itemtype="http://schema.org/Article"> 18 <article itemtype="http://schema.org/Article">
19 <header> 19 <header>
20 <h1 itemtype="headline">{{.Title}}</h1> 20 <h1 itemtype="headline">{{.Title}}</h1>
21 {{if .Listing}}
21 <time>{{.CreatedFormatted}}</time> 22 <time>{{.CreatedFormatted}}</time>
23 {{end}}
22 </header> 24 </header>
23 <div> 25 <div>
24 {{.Content}} 26 {{.Content}}
@@ -26,31 +28,31 @@
26 </article> 28 </article>
27 29
28 {{if .Listing}} 30 {{if .Listing}}
29 <section class="top-margin"> 31 <section class="top-margin">
30 <a href="mailto:m@mitjafelicijan.com">➝ Get in contact with me via email.</a> 32 <a href="mailto:m@mitjafelicijan.com">➝ Get in contact with me via email.</a>
31 </section> 33 </section>
32 34
33 <hr class="top-margin"> 35 <hr class="top-margin">
34 36
35 {{if .Posts}} 37 {{if .Posts}}
36 <nav class="top-margin"> 38 <nav class="top-margin">
37 <h4>Read more from this site</h4> 39 <h4>Read more from this site</h4>
38 {{range $index, $post := .Posts}} 40 {{range $index, $post := .Posts}}
39 {{if (lt $index 5)}} 41 {{if (lt $index 5)}}
40 <p> 42 <p>
41 <time>{{$post.CreatedFormatted}}</time><br> 43 <time>{{$post.CreatedFormatted}}</time><br>
42 <a href="/{{$post.Slug}}" title="{{$post.Title}}" itemprop="url"> 44 <a href="/{{$post.Slug}}" title="{{$post.Title}}" itemprop="url">
43 {{$post.Title}} 45 {{$post.Title}}
44 </a> 46 </a>
45 </p> 47 </p>
46 {{end}}
47 {{end}}
48 </nav>
49 {{end}} 48 {{end}}
49 {{end}}
50 </nav>
51 {{end}}
50 52
51 <hr class="top-margin"> 53 <hr class="top-margin">
52 54
53 {{template "openring-build.html"}} 55 {{template "openring-build.html"}}
54 {{end}} 56 {{end}}
55 57
56 </main> 58 </main>