blob: 5ee00ab88ddfe27646a34df83c7b9e9dbd14ea69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<!-- This file contains the footer for each post - do not mistake it with page footer which is in footer.html partial -->
<footer>
<p class="meta">
<span class="byline author vcard">Posted by <span class="fn">{{ with .Site.Params.author }}{{ . }}{{ end }}</span></span>
<!-- can't put the .Date.Format inside the datetime attribute because of double quotes, so it's outside -->
<time>{{ .Date.Format "Jan 2, 2006" }}</time>
<span class="categories">
Tags:
{{ if isset .Params "tags" }}
<!-- need to convert the tags to lower for the URLs to work -->
{{ range .Params.tags }}<a class="category" href="{{ "/tags/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a> {{ end }}
{{ end }}
</span>
</p>
<!-- For sharing stuff -->
<!-- <div class="sharing"> </div> -->
<!-- PrevInSection and nextInSection point to previous and next page in the same section, in this case "post"
this way we won't see other pages.
If you don't like it, use .Prev and .Next - if you want to use .Prev and .Next keep in mind that as of Hugo v0.15 they work the other way around
meaning that .Prev needs to go to right which will point to the next post and .Next will go to left and will post to previous post - strange
This does not happen with InSection ones
For more info about template variables: https://gohugo.io/templates/variables/ -->
<p class="meta">
{{ with .PrevInSection }}
<a class="basic-alignment left" href="{{ .Permalink }}" title="{{ .LinkTitle }}">{{ .LinkTitle }}</a>
{{ end }}
{{ with .NextInSection }}
<a class="basic-alignment right" href="{{ .Permalink }}" title="{{ .LinkTitle }}">{{ .LinkTitle }}</a>
{{ end }}
</p>
{{ partial "disqus.html" . }}
</footer>
|