aboutsummaryrefslogtreecommitdiff
path: root/generators
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2021-07-04 03:39:06 -0400
committerThedro Neely <thedroneely@gmail.com>2021-07-04 03:39:06 -0400
commitca95c0c15c6a698d3944335205a66c0e72223d66 (patch)
treef6b072c3b204a2bbd1a0055be5ce76ea49a0dd75 /generators
parent0c2a5e99d96bd6f834d1914d95f184b0aad83568 (diff)
downloadthedroneely.com-ca95c0c15c6a698d3944335205a66c0e72223d66.tar.gz
thedroneely.com-ca95c0c15c6a698d3944335205a66c0e72223d66.tar.bz2
thedroneely.com-ca95c0c15c6a698d3944335205a66c0e72223d66.zip
generators/hugo/layouts/_default/single: Add markdown source link
Diffstat (limited to 'generators')
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/single.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/single.html b/generators/hugo/themes/tdro/layouts/_default/single.html
index 51c0c7b..50e1ef4 100644
--- a/generators/hugo/themes/tdro/layouts/_default/single.html
+++ b/generators/hugo/themes/tdro/layouts/_default/single.html
@@ -25,14 +25,16 @@
{{- .Content | replaceRE "<p>" "<p class=\"serif is-size-serif\">" | replaceRE "<h2" "<h2 class=\"serif\"" | replaceRE "<h3" "<h3 class=\"serif\"" | safeHTML }}
- <div class="has-text-right">
- <p class="article__updated has-text-grey-dark is-inline-block">
- Updated
- {{ if .Params.updated }}
- {{ dateFormat "2 January 2006" .Params.updated }}
- {{ else }}
- {{ dateFormat "2 January 2006" .Params.date }}
- {{ end }}
+ <div class="has-text-grey-dark has-text-right">
+ <p>
+ Updated
+ {{ if .Params.updated }}
+ {{ dateFormat "2 January 2006" .Params.updated }}
+ {{ else }}
+ {{ dateFormat "2 January 2006" .Params.date }}
+ {{ end }}
+ <br>
+ <a class="has-text-grey-dark" href="{{ strings.TrimRight "/" .Permalink }}.md">View Source</a>
</p>
</div>