From ae0ade94f671aa53d67c1e4c0cb1f6a399220fac Mon Sep 17 00:00:00 2001 From: Daniel Sockwell Date: Mon, 16 Jul 2018 02:47:04 -0400 Subject: [PATCH] Render live demo link for themes if there is one --- docs/content/themes/after-dark/index.md | 2 +- docs/templates/theme.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/content/themes/after-dark/index.md b/docs/content/themes/after-dark/index.md index 0d999e4..8b75931 100644 --- a/docs/content/themes/after-dark/index.md +++ b/docs/content/themes/after-dark/index.md @@ -67,4 +67,4 @@ instead. ## Original This template is based on the Hugo template https://github.com/comfusion/after-dark - \ No newline at end of file + diff --git a/docs/templates/theme.html b/docs/templates/theme.html index 1640214..344e524 100644 --- a/docs/templates/theme.html +++ b/docs/templates/theme.html @@ -10,6 +10,9 @@

Author: {{page.extra.author.name}}

License: {{page.extra.license}}

Homepage: {{page.extra.homepage}}

+ {% if page.extra.live_demo%} +

Live Demo: {{page.extra.live_demo}}

+ {% endif %}

Last updated: {{page.extra.updated }}