From 2e219c7804c208545b0500b7da21334a58575e86 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Sun, 13 Nov 2022 23:09:01 -0500 Subject: Makefile: Expose more deployment logic Generalize partials --- .../hugo/themes/tdro/layouts/_default/single.html | 2 +- .../themes/tdro/layouts/partials/article-on-web.html | 17 ----------------- .../tdro/layouts/partials/article-references.html | 6 +++--- .../themes/tdro/layouts/partials/article-webrings.html | 17 +++++++++++++++++ .../tdro/layouts/partials/generators/exoference/.keep | 0 .../tdro/layouts/partials/generators/openring/.keep | 0 .../hugo/themes/tdro/layouts/partials/references/.keep | 0 .../hugo/themes/tdro/layouts/partials/webrings/.keep | 0 8 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 generators/hugo/themes/tdro/layouts/partials/article-on-web.html create mode 100644 generators/hugo/themes/tdro/layouts/partials/article-webrings.html delete mode 100644 generators/hugo/themes/tdro/layouts/partials/generators/exoference/.keep delete mode 100644 generators/hugo/themes/tdro/layouts/partials/generators/openring/.keep create mode 100644 generators/hugo/themes/tdro/layouts/partials/references/.keep create mode 100644 generators/hugo/themes/tdro/layouts/partials/webrings/.keep (limited to 'generators') diff --git a/generators/hugo/themes/tdro/layouts/_default/single.html b/generators/hugo/themes/tdro/layouts/_default/single.html index 1d98d73..9e67be6 100644 --- a/generators/hugo/themes/tdro/layouts/_default/single.html +++ b/generators/hugo/themes/tdro/layouts/_default/single.html @@ -10,7 +10,7 @@ {{- partial "article-syntax.html" . -}} {{- partial "article-meta-bottom.html" . -}} {{- partial "article-more-content.html" . -}} - {{- partial "article-on-web.html" . -}} + {{- partial "article-webrings.html" . -}} {{- partial "article-comments.html" . -}} {{- partial "article-references.html" . -}} diff --git a/generators/hugo/themes/tdro/layouts/partials/article-on-web.html b/generators/hugo/themes/tdro/layouts/partials/article-on-web.html deleted file mode 100644 index 53d1d45..0000000 --- a/generators/hugo/themes/tdro/layouts/partials/article-on-web.html +++ /dev/null @@ -1,17 +0,0 @@ -{{- $openring := "themes/tdro/layouts/partials/generators/openring/openring.html" -}} -{{- $include := "generators/openring/openring.html" -}} - -{{- if fileExists $openring -}} - -
- - - {{ safeHTML (readFile "public/css/icons/feather/help-circle.svg") }} - Openring - - -

On the Web

-
- {{- partial $include . -}} -
-{{- end -}} diff --git a/generators/hugo/themes/tdro/layouts/partials/article-references.html b/generators/hugo/themes/tdro/layouts/partials/article-references.html index ca3aee7..9de25c4 100644 --- a/generators/hugo/themes/tdro/layouts/partials/article-references.html +++ b/generators/hugo/themes/tdro/layouts/partials/article-references.html @@ -1,7 +1,7 @@ -{{- $exoference := print "themes/tdro/layouts/partials/generators/exoference/" .Slug ".html" -}} -{{- $include := print "generators/exoference/" .Slug ".html" -}} +{{- $references := print "themes/tdro/layouts/partials/references/" .Slug ".html" -}} +{{- $include := print "references/" .Slug ".html" -}} -{{- if fileExists $exoference -}} +{{- if fileExists $references -}}

References

diff --git a/generators/hugo/themes/tdro/layouts/partials/article-webrings.html b/generators/hugo/themes/tdro/layouts/partials/article-webrings.html new file mode 100644 index 0000000..2d8189b --- /dev/null +++ b/generators/hugo/themes/tdro/layouts/partials/article-webrings.html @@ -0,0 +1,17 @@ +{{- $webrings := "themes/tdro/layouts/partials/webrings/openring.html" -}} +{{- $include := "webrings/openring.html" -}} + +{{- if fileExists $webrings -}} + +
+ + + {{ safeHTML (readFile "public/css/icons/feather/help-circle.svg") }} + Openring + + +

On the Web

+
+ {{- partial $include . -}} +
+{{- end -}} diff --git a/generators/hugo/themes/tdro/layouts/partials/generators/exoference/.keep b/generators/hugo/themes/tdro/layouts/partials/generators/exoference/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/generators/hugo/themes/tdro/layouts/partials/generators/openring/.keep b/generators/hugo/themes/tdro/layouts/partials/generators/openring/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/generators/hugo/themes/tdro/layouts/partials/references/.keep b/generators/hugo/themes/tdro/layouts/partials/references/.keep new file mode 100644 index 0000000..e69de29 diff --git a/generators/hugo/themes/tdro/layouts/partials/webrings/.keep b/generators/hugo/themes/tdro/layouts/partials/webrings/.keep new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3