summaryrefslogtreecommitdiffstats
path: root/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-05-31 12:43:33 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-05-31 12:43:33 +0200
commit626b16e0240f9f106ba89af58bfd15b48e4e644f (patch)
tree702ccf24300127cd24e0916db2bfa2037bb74b1a /docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts
parent2919a6a503f7b369154d6eb787023a1fe58a9ad4 (diff)
parent9e1dcefc5f559944b70d2fa520f6acd5c56a69f2 (diff)
Diffstat (limited to 'docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts')
-rw-r--r--docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/_markup/render-heading.html5
-rw-r--r--docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html1
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/_markup/render-heading.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/_markup/render-heading.html
new file mode 100644
index 000000000..6f944aee3
--- /dev/null
+++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,5 @@
+<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}
+{{- if and (ge .Level 2) (le .Level 4) }}{{" " -}}
+<a class="header-link" href="#{{ .Anchor | safeURL }}"><svg class="fill-current o-60 hover-accent-color-light" height="22px" viewBox="0 0 24 24" width="22px" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg></a>
+{{- end -}}
+</h{{ .Level }}>
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
index ecd585165..a83d3f662 100644
--- a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
+++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
@@ -67,7 +67,6 @@
{{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }}
-
</body>
</html> \ No newline at end of file