mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
Add list-icon to overview/section list pages
This commit is contained in:
1 parent
5860bf1bcf
commit
370d66869f
3 files changed
+6
-3
No files matched your search
@@ -173,5 +173,5 @@ http://spf13.com/extras/indexes/example
|
|||||||
* overrides all the above
|
* overrides all the above
|
||||||
|
|
||||||
[front matter]: /content-management/front-matter/
|
[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/
|
[URL management]: /content-management/url-management/
|
||||||
@@ -3,7 +3,9 @@
|
|||||||
<main class="main">
|
<main class="main">
|
||||||
<header class="content-header">
|
<header class="content-header">
|
||||||
{{partial "breadcrumb.html" . }}
|
{{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 "content-header-links.html" . }}
|
||||||
{{partial "tags.html" . }}
|
{{partial "tags.html" . }}
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{$sect := .Section}}
|
||||||
<div class="list-icon-wrapper">
|
<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>
|
</div>
|
||||||
Reference in new issue
Block a user