diff options
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 -}} |