aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2021-03-27 17:06:16 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2021-03-27 17:06:16 +0100
commit6fb0a55087cb13c2dd839720753f82f106c30b3d (patch)
tree02d74cc48f08e5669d1d5be84d2bb95bbc9dd977 /template
parentc8443841638b57440c961b0ab70f2d14a8021466 (diff)
downloadmitjafelicijan.com-6fb0a55087cb13c2dd839720753f82f106c30b3d.tar.gz
Removed non-listed posts from read more section in post
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/post.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/template/post.html b/template/post.html
index d5c20f3..8d43217 100755
--- a/template/post.html
+++ b/template/post.html
@@ -38,14 +38,16 @@
38 <nav class="top-margin"> 38 <nav class="top-margin">
39 <h4>Read more from this site</h4> 39 <h4>Read more from this site</h4>
40 {{range $index, $post := .Posts}} 40 {{range $index, $post := .Posts}}
41 {{if (lt $index 5)}} 41 {{if .Listing}}
42 <p> 42 {{if (lt $index 5)}}
43 <time>{{$post.CreatedFormatted}}</time><br> 43 <p>
44 <a href="/{{$post.Slug}}" title="{{$post.Title}}" itemprop="url"> 44 <time>{{$post.CreatedFormatted}}</time><br>
45 {{$post.Title}} 45 <a href="/{{$post.Slug}}" title="{{$post.Title}}" itemprop="url">
46 </a> 46 {{$post.Title}}
47 </p> 47 </a>
48 {{end}} 48 </p>
49 {{end}}
50 {{end}}
49 {{end}} 51 {{end}}
50 </nav> 52 </nav>
51 {{end}} 53 {{end}}