Add list-icon to overview/section list pages

This commit is contained in:
Ryan Watters
2017-02-20 02:39:10 -06:00
parent 5860bf1bcf
commit 370d66869f
3 changed files with 6 additions and 3 deletions
@@ -173,5 +173,5 @@ http://spf13.com/extras/indexes/example
* overrides all the above
[front matter]: /content-management/front-matter/
[supported formats]: /content-management/supported-content-formats/
[supported content formats]: /content-management/supported-content-formats/
[URL management]: /content-management/url-management/
@@ -3,7 +3,9 @@
<main class="main">
<header class="content-header">
{{partial "breadcrumb.html" . }}
<h1 class="page-title {{if eq .Kind "page"}}{{.Section}}{{end}}" id="{{with .LinkTitle}}{{. | urlize}}{{else}}{{ .Title | urlize }}{{end}}">{{with .LinkTitle}}{{.}}{{else}}{{ .Title | markdownify }}{{end}}</h1>
<h1 class="page-title {{if eq .Kind "page"}}{{.Section}}{{end}}" id="{{with .LinkTitle}}{{. | urlize}}{{else}}{{ .Title | urlize }}{{end}}">
{{- partial "list-icon.html" . -}}
{{- .Title | markdownify -}}</h1>
{{partial "content-header-links.html" . }}
{{partial "tags.html" . }}
</header>
@@ -1,3 +1,4 @@
{{$sect := .Section}}
<div class="list-icon-wrapper">
<img class="hugo-icon" src="{{$.Site.BaseURL}}images/hugo-icons/{{.Section}}.svg" alt="">
<img class="hugo-icon" src="{{$.Site.BaseURL}}images/hugo-icons/{{$sect}}.svg" alt="">
</div>