summaryrefslogtreecommitdiffstats
path: root/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/page.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/page.html')
-rw-r--r--docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/page.html33
1 files changed, 22 insertions, 11 deletions
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/page.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/page.html
index 898d7c8f4..108d32323 100644
--- a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/page.html
+++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/page.html
@@ -1,23 +1,30 @@
<header class="flex-none w-100">
- {{ if .Params.categories }}
+ {{ if in (slice "functions" "methods") .Type }}
+ {{ with .FirstSection }}
+ <a href="{{ .RelPermalink }}" class="f6 fw8 mb0 link mid-gray dim mr3">
+ {{ humanize .Title | upper }}
+ </a>
+ {{ end }}
+ {{ with .CurrentSection }}
+ <a href="{{ .RelPermalink }}" class="f6 fw8 mb0 link mid-gray dim mr3">
+ {{ humanize .Title | upper }}
+ </a>
+ {{ end }}
+ {{ else }}
{{ range .Params.categories }}
<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}" class="f6 fw8 mb0 link mid-gray dim mr3">
- {{ humanize . | upper }}
+ {{ humanize . | upper }}
</a>
{{ end }}
- {{end}}
+ {{ end }}
<h1 class="lh-title mb3 mv0 pt3 primary-color-dark">
- {{- if eq .Section "functions" -}}
- {{ .LinkTitle }}
- {{- else -}}
- {{ .Title }}
- {{- end -}}
+ {{ .Title }}
</h1>
</header>
<aside class="bt bw1 pt3 mt2 mid-gray b--mid-gray fn w-100">
{{ with .Params.description }}
- <div class="f4 fw4 lh-copy">
+ <div class="mb4 f4 fw4 lh-copy">
{{ . | markdownify }}
</div>
{{ end }}
@@ -31,7 +38,11 @@
<img src="{{ . }}" alt="Featured Image for {{ $.Title }}" class="mw-100">
{{ end }}
-<div class="prose prose-{{ .Type }}" id="prose">
- {{- partial "docs/functions-signature.html" . -}}
+<div class="prose" id="prose">
+ <div class="mb4">
+ {{- partial "docs/functions-signatures.html" . -}}
+ {{- partial "docs/functions-return-type.html" . -}}
+ {{- partial "docs/functions-aliases.html" . -}}
+ </div>
{{ .Content }}
</div>