diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-05-17 22:56:00 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-05-17 22:56:00 -0400 |
commit | 51c0cc199f30e195eafbf04e6be09dd8b2561574 (patch) | |
tree | eac3c7950a8855b3f38c1bb9d7744f5a60e2a4f8 /generators/hugo/themes/tdro/layouts/_default/single.html | |
parent | 48e0d578c7f65e6a0ab8d293217983ba8bb21c00 (diff) | |
download | thedroneely.com-51c0cc199f30e195eafbf04e6be09dd8b2561574.tar.gz thedroneely.com-51c0cc199f30e195eafbf04e6be09dd8b2561574.tar.bz2 thedroneely.com-51c0cc199f30e195eafbf04e6be09dd8b2561574.zip |
generators/hugo: Add Hugo theme source files
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/_default/single.html')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/single.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/single.html b/generators/hugo/themes/tdro/layouts/_default/single.html new file mode 100644 index 0000000..36d0959 --- /dev/null +++ b/generators/hugo/themes/tdro/layouts/_default/single.html @@ -0,0 +1,46 @@ +{{ define "main" }} +<section class="section is-fullheight" itemscope itemtype="https://schema.org/WebPage"> + <div class="container"> + <div class="columns is-centered"> + <div class="column is-7"> + <article class="content document"> + <h1 class="title serif">{{ .Title }}</h1> + + <p class="subtitle is-6 has-text-grey-dark"> + {{- partial "page-meta.html" . -}} + <br> + <script>document.write('<a href="#isso-thread">Comments</a> ·');</script> {{- partial "read-time.html" . -}} · {{ .FuzzyWordCount }} words + </p> + + {{- partial "page-status.html" . -}} + + {{- .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 }} + </p> + </div> + + <script>document.write('<h3 id="comments">Comments</h3>');</script> + + </article> + + {{ if .Params.syntax }} + <link rel="stylesheet" href="/css/syntax-highlight.css"> + {{ end }} + + <script data-isso="/isso/" data-isso-css="false" src="/isso/js/embed.min.js"></script> + + <section id="isso-thread" data-title="{{ .Title }}"></section> + + </div> + </div> + </div> +</section> +{{ end }} |