diff options
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/partials/article-more-content.html')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/partials/article-more-content.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/generators/hugo/themes/tdro/layouts/partials/article-more-content.html b/generators/hugo/themes/tdro/layouts/partials/article-more-content.html new file mode 100644 index 0000000..dbe5725 --- /dev/null +++ b/generators/hugo/themes/tdro/layouts/partials/article-more-content.html @@ -0,0 +1,25 @@ +<article-more-content> + <section> + <h2>More Content</h2> + {{ $more := shuffle .Site.RegularPages | first 3 }} + {{ with $more }} + {{ range . }} + <ul> + <li> + <h3> + <a + href="{{ .RelPermalink }}" + title="{{ truncate 100 "..." .Summary }}" + > + {{ .Title | markdownify }} + </a> + </h3> + <time datetime="{{ dateFormat "2006-01-02" .Date }}"> + {{ dateFormat "January 2, 2006" .Date }} + </time> + </li> + </ul> + {{ end }} + {{ end }} + </section> +</article-more-content> |