diff options
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/partials')
6 files changed, 20 insertions, 4 deletions
diff --git a/generators/hugo/themes/tdro/layouts/partials/article-meta-bottom.html b/generators/hugo/themes/tdro/layouts/partials/article-meta-bottom.html index d1adf5c..3a272f2 100644 --- a/generators/hugo/themes/tdro/layouts/partials/article-meta-bottom.html +++ b/generators/hugo/themes/tdro/layouts/partials/article-meta-bottom.html @@ -1,4 +1,4 @@ -<article-meta-bottom> +<article-meta-bottom id="article-meta-bottom"> {{ dateFormat "2 January 2006" .Params.date }} <code> — Written</code> <br> diff --git a/generators/hugo/themes/tdro/layouts/partials/article-more-content.html b/generators/hugo/themes/tdro/layouts/partials/article-more-content.html index dbe5725..5751aaa 100644 --- a/generators/hugo/themes/tdro/layouts/partials/article-more-content.html +++ b/generators/hugo/themes/tdro/layouts/partials/article-more-content.html @@ -1,4 +1,4 @@ -<article-more-content> +<article-more-content id="article-more-content"> <section> <h2>More Content</h2> {{ $more := shuffle .Site.RegularPages | first 3 }} diff --git a/generators/hugo/themes/tdro/layouts/partials/article-on-web.html b/generators/hugo/themes/tdro/layouts/partials/article-on-web.html index 59776da..53d1d45 100644 --- a/generators/hugo/themes/tdro/layouts/partials/article-on-web.html +++ b/generators/hugo/themes/tdro/layouts/partials/article-on-web.html @@ -1,4 +1,8 @@ -<article-on-web> +{{- $openring := "themes/tdro/layouts/partials/generators/openring/openring.html" -}} +{{- $include := "generators/openring/openring.html" -}} + +{{- if fileExists $openring -}} +<article-on-web id="article-on-web"> <section> <button-anchor> <a href="https://git.sr.ht/~sircmpwn/openring" title="Generated by Open Ring"> @@ -8,5 +12,6 @@ </button-anchor> <h2>On the Web</h2> </section> - {{- partial "openring.html" . -}} + {{- partial $include . -}} </article-on-web> +{{- end -}} diff --git a/generators/hugo/themes/tdro/layouts/partials/article-references.html b/generators/hugo/themes/tdro/layouts/partials/article-references.html new file mode 100644 index 0000000..ca3aee7 --- /dev/null +++ b/generators/hugo/themes/tdro/layouts/partials/article-references.html @@ -0,0 +1,11 @@ +{{- $exoference := print "themes/tdro/layouts/partials/generators/exoference/" .Slug ".html" -}} +{{- $include := print "generators/exoference/" .Slug ".html" -}} + +{{- if fileExists $exoference -}} +<article-references id="article-references"> + <section> + <h2>References</h2> + </section> + {{- partial $include . -}} +</article-references> +{{- end -}} diff --git a/generators/hugo/themes/tdro/layouts/partials/generators/exoference/.keep b/generators/hugo/themes/tdro/layouts/partials/generators/exoference/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/generators/hugo/themes/tdro/layouts/partials/generators/exoference/.keep diff --git a/generators/hugo/themes/tdro/layouts/partials/generators/openring/.keep b/generators/hugo/themes/tdro/layouts/partials/generators/openring/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/generators/hugo/themes/tdro/layouts/partials/generators/openring/.keep |