diff options
Diffstat (limited to 'layouts/_partials')
| -rw-r--r-- | layouts/_partials/articles/header.html | 8 | ||||
| -rw-r--r-- | layouts/_partials/footer.html | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/layouts/_partials/articles/header.html b/layouts/_partials/articles/header.html new file mode 100644 index 0000000..e415b89 --- /dev/null +++ b/layouts/_partials/articles/header.html @@ -0,0 +1,8 @@ +<h1 class="title">{{ .Title }}</h1> +<p> + {{- partial "date.html" .Date -}} + {{- if gt .Lastmod .Date -}} + — modified {{ partial "date.html" .Lastmod }} + {{- end -}} +</p> +<hr> diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html index 32249a9..882c3f8 100644 --- a/layouts/_partials/footer.html +++ b/layouts/_partials/footer.html @@ -13,6 +13,6 @@ {{- $commitUrl := printf "%s?id=%s" $baseUrl .Hash }} Last modified {{ .CommitDate.Format "2006-01-02" }}: <a href="{{ $commitUrl }}">{{ .AbbreviatedHash }}</a>. - <a href="{{ $repoUrl }}">Source code →</a> {{- end }} + <a href="{{ $repoUrl }}">Source code →</a> </p> |