2016-03-17 11:01:39 +00:00
|
|
|
<!DOCTYPE html>
|
2017-07-27 19:42:07 +00:00
|
|
|
<html lang="{{ .Page.Language | default "en" }}" class="js csstransforms3d">
|
2016-03-17 11:01:39 +00:00
|
|
|
<head>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- partial "meta.html" . }}
|
2020-09-11 08:31:22 +00:00
|
|
|
<title>{{ .Title }} {{ default "::" .Site.Params.titleSeparator }} {{ .Site.Title }}</title>
|
2018-02-19 16:09:45 +00:00
|
|
|
|
2022-02-06 12:51:54 +00:00
|
|
|
{{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
|
|
|
|
{{- else }}
|
|
|
|
{{- range .AlternativeOutputFormats }}
|
|
|
|
{{- if ne .Name "JSON" }}
|
|
|
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | relURL }}" title="{{ $.Site.Title | safeHTML }}" />
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2020-03-09 15:50:24 +00:00
|
|
|
{{- end }}
|
2022-02-06 12:51:54 +00:00
|
|
|
{{- if and (ne .Site.Params.disableSeoHiddenPages true) (ne .Site.Params.disableSearchHiddenPages true) }}
|
|
|
|
{{- range .AlternativeOutputFormats }}
|
|
|
|
{{- if eq .Name "JSON" }}
|
|
|
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | relURL }}" title="{{ $.Site.Title | safeHTML }}" />
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2021-11-24 11:03:11 +00:00
|
|
|
{{- end }}
|
2022-02-06 12:51:54 +00:00
|
|
|
|
|
|
|
{{- partial "favicon.html" . }}
|
|
|
|
{{- partial "stylesheet.html" . }}
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- partial "custom-header.html" . }}
|
2016-03-17 11:01:39 +00:00
|
|
|
</head>
|
2022-02-13 08:45:11 +00:00
|
|
|
<body class="default-animation" data-url="{{ .RelPermalink }}">
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- partial "menu.html" . }}
|
2022-02-13 00:53:23 +00:00
|
|
|
<div id="body" class="default-animation">
|
2021-09-11 22:40:03 +00:00
|
|
|
<div id="overlay"></div>
|
|
|
|
<div class="padding highlightable">
|
|
|
|
{{- if not .IsHome }}
|
2022-02-10 23:59:40 +00:00
|
|
|
<div id="top-bar"><div>
|
2021-09-23 19:25:45 +00:00
|
|
|
{{- if and (or .IsPage .IsSection) .Site.Params.editURL }}
|
|
|
|
{{- $File := .File }}
|
|
|
|
{{- $Site := .Site }}
|
|
|
|
{{- with $File.Path }}
|
|
|
|
<div id="top-github-link">
|
|
|
|
<a class="github-link" title='{{ T "Edit-this-page" }}' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
|
|
|
|
<i class="fas fa-code-branch"></i>
|
|
|
|
<span id="top-github-link-text">{{T "Edit-this-page"}}</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- end }}
|
2021-09-23 19:25:45 +00:00
|
|
|
{{- end }}
|
2021-11-03 19:44:23 +00:00
|
|
|
{{- $defaultDisableToc := .Site.Params.disableToc | default false }}
|
|
|
|
{{- $currentDisableToc := .Params.disableToc | default $defaultDisableToc }}
|
|
|
|
{{- $toc := (and (not $currentDisableToc) (not .Params.chapter)) }}
|
2021-09-23 19:25:45 +00:00
|
|
|
<div id="breadcrumbs">
|
|
|
|
<span id="sidebar-toggle-span">
|
|
|
|
<a href="#" id="sidebar-toggle" data-sidebar-toggle="">
|
|
|
|
<i class="fas fa-bars"></i>
|
|
|
|
</a>
|
|
|
|
</span>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- if $toc }}
|
2021-09-23 19:25:45 +00:00
|
|
|
<span id="toc-menu"><i class="fas fa-list-alt"></i></span>
|
|
|
|
{{- end }}
|
|
|
|
{{- $showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb)) }}
|
|
|
|
{{- if $showBreadcrumb }}
|
|
|
|
<ol class="links" itemscope itemtype="http://schema.org/BreadcrumbList">
|
|
|
|
<meta itemprop="itemListOrder" content="Descending" />
|
|
|
|
{{- template "breadcrumb" dict "page" . "depth" 0 }}
|
|
|
|
</ol>
|
|
|
|
{{- else }}
|
|
|
|
<span class="links">
|
|
|
|
{{ .Title }}
|
|
|
|
</span>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- end }}
|
2021-09-13 17:39:20 +00:00
|
|
|
</div>
|
2021-09-23 19:25:45 +00:00
|
|
|
{{- if $toc }}
|
|
|
|
{{- partial "toc.html" . }}
|
|
|
|
{{- end }}
|
2022-02-10 23:59:40 +00:00
|
|
|
</div></div>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- end }}
|
2021-09-13 17:39:20 +00:00
|
|
|
<div id="head-tags">
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- partial "tags.html" . }}
|
2021-09-13 17:39:20 +00:00
|
|
|
</div>
|
|
|
|
{{- if .Params.chapter }}
|
|
|
|
<div id="chapter">
|
|
|
|
{{- end }}
|
|
|
|
<main id="body-inner">
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- if and (not .IsHome) (not .Params.chapter) }}
|
2021-09-13 17:39:20 +00:00
|
|
|
<h1>{{ if eq .Kind "term" }}{{ .Data.Singular }} :: {{ end }}{{ .Title }}</h1>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- end }}
|
2021-09-13 17:39:20 +00:00
|
|
|
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- define "breadcrumb" }}
|
|
|
|
{{- $parent := .page.Parent }}
|
|
|
|
{{- $depth := add .depth 1 }}
|
|
|
|
{{- if $parent }}
|
|
|
|
{{- template "breadcrumb" dict "page" $parent "depth" $depth }}
|
|
|
|
{{- end }}
|
2022-02-06 15:47:00 +00:00
|
|
|
<li itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><meta itemprop="position" content="{{ $depth }}" /><a itemprop="item" href="{{ .page.RelPermalink }}"{{if not .depth}} aria-disabled="true"{{end}}><span itemprop="name">{{ .page.Title }}</span></a>{{ if .depth }} > {{ end }}</li>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- end }}
|