Browse Source

Render live demo link for themes if there is one

index-subcmd
Daniel Sockwell Vincent Prouillet 5 years ago
parent
commit
ae0ade94f6
2 changed files with 4 additions and 1 deletions
  1. +1
    -1
      docs/content/themes/after-dark/index.md
  2. +3
    -0
      docs/templates/theme.html

+ 1
- 1
docs/content/themes/after-dark/index.md View File

@@ -67,4 +67,4 @@ instead.
## Original
This template is based on the Hugo template https://github.com/comfusion/after-dark


+ 3
- 0
docs/templates/theme.html View File

@@ -10,6 +10,9 @@
<p><b>Author:</b> {{page.extra.author.name}}</p>
<p><b>License:</b> {{page.extra.license}}</p>
<p><b>Homepage:</b> <a href="{{page.extra.homepage}}">{{page.extra.homepage}}</a></p>
{% if page.extra.live_demo%}
<p><b>Live Demo:</b> <a href="{{page.extra.live_demo}}">{{page.extra.live_demo}}</a></p>
{% endif %}
<p><b>Last updated:</b> {{page.extra.updated }}</p>
</div>
</div>


Loading…
Cancel
Save