mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 04:02:38 +00:00
Fix section default layout
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Content Management
|
title: Content Management
|
||||||
linktitle:
|
linktitle: Content Management
|
||||||
description: Content organization, summaries, archetypes, front matter, and supported formats.
|
description: Content organization, summaries, archetypes, front matter, and supported formats.
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Contribute to Hugo Development
|
title: Contribute to Hugo Development
|
||||||
linktitle:
|
linktitle: Contribute to Hugo Development
|
||||||
description: Contribute to Hugo development and documentation.
|
description: Contribute to Hugo development and documentation.
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Developer Tools
|
title: Developer Tools
|
||||||
linktitle:
|
linktitle: Developer Tools
|
||||||
description: Description for the developer tools section.
|
description: Description for the developer tools section.
|
||||||
date: 2016-11-01
|
date: 2016-11-01
|
||||||
publishdate: 2016-11-01
|
publishdate: 2016-11-01
|
||||||
|
|||||||
@@ -1,13 +1,21 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
{{$base := .Site.BaseURL}}
|
||||||
<main class="main">
|
<main class="main">
|
||||||
<a role="button" target="_blank" class="edit-link" href="{{.Site.Params.ghrepourl}}{{.File.Path}}"><span class="edit-text">Edit</span> <i class="icon-pencil" aria-hidden="true"></i></a>
|
|
||||||
<header class="content-header">
|
<header class="content-header">
|
||||||
<h1 class="page-title {{.Section}}">{{with .LinkTitle}}{{ . |markdownify}}{{else}}{{ .Title | markdownify }}{{end}}</h1>
|
<h1 class="page-title">{{with .LinkTitle}}{{ . |markdownify}}{{else}}{{ .Title | markdownify }}{{end}}</h1>
|
||||||
|
<div class="content-header-links">
|
||||||
|
<a target="_blank" class="edit-link" href="{{.Site.Params.ghdocsrepo}}edit/master/content/{{.File.Path}}"><span class="edit">Edit Page</span><i class="icon-pencil" aria-hidden="true"></i></a>
|
||||||
|
{{- with .Params.godocref -}}
|
||||||
|
<a target="_blank" class="godoc-link" href="{{.}}" title="See the corresponding Golang Documentation for {{$.Title}}, {{$.Section}}."><span class="godocs">GoDocs</span>
|
||||||
|
{{ partial "svg-icons/godoc-icon.svg" .}}
|
||||||
|
</a>
|
||||||
|
{{- end -}}
|
||||||
|
</div>
|
||||||
{{with .Params.tags}}
|
{{with .Params.tags}}
|
||||||
<ul class="tags">
|
<ul class="tags">
|
||||||
<li><i class="icon-tags"></i></li>
|
<li><i class="icon-tags"></i></li>
|
||||||
{{range .}}
|
{{range .}}
|
||||||
<li><a class="tag" href="/tags/{{.|urlize}}">{{.}}</a></li>
|
<li><a class="tag" href="{{$base}}tags/{{.|urlize}}">{{.}}</a></li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|||||||
Reference in New Issue
Block a user