mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 15:58:53 +00:00
Add list-icon to overview/section list pages
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user