On this page:
{{ $tocStartLevel := .Params.toc_start_level }}
{{ if not $tocStartLevel }}
{{ $tocStartLevel = default 1 $.Parent.Params.toc_start_level }}
{{ end }}
{{ $tocEndLevel := default 3 .Params.toc_end_level }}
{{ $tocOrdered := false }}
{{ .Fragments.ToHTML $tocStartLevel $tocEndLevel $tocOrdered | safeHTML }}
{{ if or (eq .Section "documentation") (eq .Section "articles") }}
-
{{ partial "svg" "github.svg" }}
Edit on Github
-
{{ partial "svg" "bug.svg" }}
Create an issue
{{ end }}
{{ if eq .Section "blog" }}
{{ $link := urlquery .Permalink }}
{{ $title := .Title }}
{{ with (.Site.GetPage "/headless/share-buttons") }}
{{ range .Params.buttons }}
{{ $url := .url | replaceRE "\\{\\{\\s*\\$link\\s*\\}\\}" $link | replaceRE "\\{\\{\\s*\\$title\\s*\\}\\}" $title }}
-
{{ .icon | safeHTML }}
{{ .subtitle }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}