mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 23:38:53 +00:00
24 lines
645 B
HTML
24 lines
645 B
HTML
{{ define "main" }}
|
|
{{$title := .Title}}
|
|
<main class="main">
|
|
<div class="content">
|
|
<header class="content-header">
|
|
{{partial "breadcrumb.html" . }}
|
|
<h1 class="page-title {{if eq .Kind "page"}}{{.Section}}{{end}}" id="{{ .Title | urlize }}">
|
|
{{- .Title | markdownify -}}</h1>
|
|
{{partial "content-header-links.html" . }}
|
|
{{partial "tags.html" . }}
|
|
</header>
|
|
<div class="body-copy">
|
|
{{.Content}}
|
|
{{ if ne .Section "functions"}}
|
|
{{- partial "contents-list.html" . -}}
|
|
{{ else }}
|
|
{{- partial "functions-quick-reference.html" . -}}
|
|
{{ end }}
|
|
</div>
|
|
{{partial "content-footer.html" . }}
|
|
</div>
|
|
|
|
</main>
|
|
{{ end }} |