diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-08-31 03:48:02 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-08-31 03:48:02 -0400 |
commit | 30e9489b68540678ffeda38773e41429a0bb16f5 (patch) | |
tree | accf9680a12f00541a1aa6ef60d22f4a3c89fd06 /generators/hugo/themes/tdro/layouts/partials/article-on-web.html | |
parent | 526026c3e9df262e14651e2d6160171f89f5f761 (diff) | |
download | thedroneely.com-30e9489b68540678ffeda38773e41429a0bb16f5.tar.gz thedroneely.com-30e9489b68540678ffeda38773e41429a0bb16f5.tar.bz2 thedroneely.com-30e9489b68540678ffeda38773e41429a0bb16f5.zip |
generators/hugo: Add references and make file
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/partials/article-on-web.html')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/partials/article-on-web.html | 9 |
1 files changed, 7 insertions, 2 deletions
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 -}} |