aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-08-24 20:52:45 -0400
committerThedro Neely <thedroneely@gmail.com>2019-08-24 20:52:45 -0400
commit28b6dcc39c85a8d6f3feaf3f5dc5a889de9abe15 (patch)
tree1eb407d5911861456b1c3de72c2a53b9330b2974 /generators/hugo/themes/tdro
parent6bbd2cefef442424112431723e7b6ea3c4c94ea4 (diff)
downloadthedroneely.com-28b6dcc39c85a8d6f3feaf3f5dc5a889de9abe15.tar.gz
thedroneely.com-28b6dcc39c85a8d6f3feaf3f5dc5a889de9abe15.tar.bz2
thedroneely.com-28b6dcc39c85a8d6f3feaf3f5dc5a889de9abe15.zip
generators/openring/template: Compact the more content sections
Diffstat (limited to 'generators/hugo/themes/tdro')
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/single.html55
1 files changed, 30 insertions, 25 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/single.html b/generators/hugo/themes/tdro/layouts/_default/single.html
index 80339e3..61e1ee6 100644
--- a/generators/hugo/themes/tdro/layouts/_default/single.html
+++ b/generators/hugo/themes/tdro/layouts/_default/single.html
@@ -40,35 +40,40 @@
<section class="section content posts__more__content">
<div class="container">
- <h1 class="is-size-4 has-margin-bottom-lg">More Content</h1>
<div class="columns is-tablet is-centered">
+ <div class="column is-7">
- {{ $related := shuffle .Site.RegularPages | first 3 }}
- {{ with $related }}
- {{ range . }}
-
- <div class="column is-4">
- <div class="tile is-ancestor">
- <div class="tile is-parent">
- <article class="tile is-child box is-shadowless">
- <h2><a href="{{ .RelPermalink }}" title="{{ .Title }}" class="serif is-size-4 is-block has-margin-bottom-md">{{ .Title }}</a></h2>
- <div class="content">
- <p>{{ truncate 100 "..." .Summary }}</p>
- <small class="is-block">by <a href="/">Thedro</a></small>
- <small class="has-text-grey-dark">{{ dateFormat "January 2, 2006" .Date }}</small>
- </div>
- </article>
- </div>
- </div>
- </div>
-
- {{ end }}
- {{ end }}
+ <h1 class="is-size-4 has-margin-bottom-lg">More Content</h1>
+ {{ $related := shuffle .Site.RegularPages | first 3 }}
+ {{ with $related }}
+ {{ range . }}
+
+ <ul>
+ <li>
+ <span class="has-text-grey-dark">{{ dateFormat "02 Jan 2006" .Date }}</span>
+ &nbsp;
+ <h2 class="has-margin-none is-inline-tablet">
+ <a href="{{ .RelPermalink }}" title="{{ truncate 100 "..." .Summary }}" class="serif is-size-4">{{ .Title }}</a>
+ </h2>
+ </li>
+ </ul>
+
+ {{ end }}
+ {{ end }}
+
+ <br>
+
+ <section class="webring">
+ <a href="https://git.sr.ht/~sircmpwn/openring"
+ title="Generated by Open Ring"
+ class="attribution is-pulled-right has-text-grey-dark">
+ {{ safeHTML "<?php echo file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/..' . '/public/css/fonts/feather-icons/help-circle.svg'); ?>" }}
+ </a>
+ {{- partial "openring.html" . -}}
+ </section>
+ </div>
</div>
-
- {{- partial "openring.html" . -}}
-
</div>
</section>