diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-08-24 20:52:45 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-08-24 20:52:45 -0400 |
commit | 28b6dcc39c85a8d6f3feaf3f5dc5a889de9abe15 (patch) | |
tree | 1eb407d5911861456b1c3de72c2a53b9330b2974 /generators | |
parent | 6bbd2cefef442424112431723e7b6ea3c4c94ea4 (diff) | |
download | thedroneely.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')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/single.html | 55 | ||||
-rw-r--r-- | generators/openring/template.html | 38 |
2 files changed, 42 insertions, 51 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> + + <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> diff --git a/generators/openring/template.html b/generators/openring/template.html index f599e9f..a77bb1d 100644 --- a/generators/openring/template.html +++ b/generators/openring/template.html @@ -1,30 +1,16 @@ -<section class="webring"> +<h3 class="is-inline is-uppercase is-size-6 has-spacing-widest">On the Web</h3> - <h3>On the Web</h3> +<ul class="articles"> + {{ range .Articles }} - <section class="articles"> - <div class="columns is-tablet is-centered"> - {{range .Articles}} + <li> + <h2 class="has-margin-none"> + <a href="{{ .Link }}" target="_blank" rel="noopener" title="{{ .Summary }}" class="serif is-size-4">{{ .Title }}</a> + </h2> + <small class="source is-block">by <a href="{{ .SourceLink}} ">{{ .SourceTitle }}</a></small> + <small class="is-block has-text-grey-dark">{{ .Date | date }}</small> + </li> - <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="{{.Link}}" target="_blank" rel="noopener" class="serif is-size-4">{{.Title}}</a></h2> - <p class="summary">{{ .Summary }}</p> - <small class="source is-block">by <a href="{{.SourceLink}}">{{ .SourceTitle }}</a></small> - <small class="date has-text-grey-dark">{{ .Date | date }}</small> - </article> - </div> - </div> - </div> + {{end}} - {{end}} - </div> - </section> - - <br> - - <p class="attribution has-text-right">Generated by <a href="https://git.sr.ht/~sircmpwn/openring">Open Ring</a></p> - -</section> +</ul> |