Add external link icon to contents-list.html

This commit is contained in:
Ryan Watters committed 2017-02-23 09:22:10 -06:00
1 parent 582045d642
commit 4c101c5e72
1 file changed
+2 -2
@@ -4,11 +4,11 @@
<h2 id="contents" class="contents-list-heading section-heading">Contents:</h2> <h2 id="contents" class="contents-list-heading section-heading">Contents:</h2>
{{end}} {{end}}
{{range .Data.Pages}} {{range .Data.Pages}}
<!-- if statement checks for sitelink, which includes the themes site and *every* showcase site --> <!-- if statement checks for sitelink, which includes the Hugo themes site link in the nav and *every* showcase site (ie, /content/showcase/*.md) -->
<a {{with .Params.sitelink }}href="{{.}} "target="_blank"{{else}}href="{{.Permalink}}"{{end}}> <a {{with .Params.sitelink }}href="{{.}} "target="_blank"{{else}}href="{{.Permalink}}"{{end}}>
<article class="contents-list {{$kind}}"> <article class="contents-list {{$kind}}">
<header> <header>
<h3 class="list-icon {{.Section}}">{{- partial "list-icon.html" . -}}{{with .LinkTitle}}{{. | markdownify}}{{else}}{{.Title | markdownify}}{{end}}{{with .Params.sitelink }}&nbsp;&nbsp;<i class="fa fa-external-link" aria-hidden="true"></i>{{end}}</h3> <h3 class="list-icon {{.Section}}">{{- partial "list-icon.html" . -}}{{with .LinkTitle}}{{. | markdownify}}{{else}}{{.Title | markdownify}}{{end}}{{with .Params.sitelink }}&nbsp;<i class="fa fa-external-link" aria-hidden="true"></i>{{end}}</h3>
</header> </header>
<p>{{.Description | markdownify }}</p> <p>{{.Description | markdownify }}</p>
</article> </article>