Browse Source

Render live demo link for themes if there is one

index-subcmd
Daniel Sockwell Vincent Prouillet 6 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 ## Original
This template is based on the Hugo template https://github.com/comfusion/after-dark 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>Author:</b> {{page.extra.author.name}}</p>
<p><b>License:</b> {{page.extra.license}}</p> <p><b>License:</b> {{page.extra.license}}</p>
<p><b>Homepage:</b> <a href="{{page.extra.homepage}}">{{page.extra.homepage}}</a></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> <p><b>Last updated:</b> {{page.extra.updated }}</p>
</div> </div>
</div> </div>


Loading…
Cancel
Save