2016-03-17 11:01:39 +00:00
|
|
|
<!DOCTYPE html>
|
2022-04-03 16:33:50 +00:00
|
|
|
<html lang="{{ .Page.Language | default "en" }}">
|
2016-03-17 11:01:39 +00:00
|
|
|
<head>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- partial "meta.html" . }}
|
2022-02-24 22:09:49 +00:00
|
|
|
<title>{{ if and .Title (not (eq .Title .Site.Title)) }}{{ .Title }} {{ default "::" .Site.Params.titleSeparator }} {{ end}}{{ .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-04-02 13:29:34 +00:00
|
|
|
<body class="mobile-support{{ if eq (.Scratch.Get "relearnOutputFormat") "PRINT" }} print{{ end }}" data-url="{{ .RelPermalink }}">
|
2022-02-13 00:53:23 +00:00
|
|
|
<div id="body" class="default-animation">
|
2022-02-27 08:59:38 +00:00
|
|
|
<div id="sidebar-overlay"></div>
|
2022-02-28 00:19:32 +00:00
|
|
|
<div id="toc-overlay"></div>
|
|
|
|
<nav id="topbar" class="highlightable">
|
2022-02-27 09:27:12 +00:00
|
|
|
<div>
|
2022-02-17 23:09:06 +00:00
|
|
|
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}
|
|
|
|
{{- if $showPrevNext }}
|
2022-02-18 01:13:35 +00:00
|
|
|
{{- $parent := .Parent }}
|
|
|
|
{{- $ispublished := true }}
|
|
|
|
{{- if $parent }}
|
|
|
|
{{- $ispublished = gt (int (len $parent.Permalink)) 0 }}
|
|
|
|
{{- end }}
|
2022-02-17 23:09:06 +00:00
|
|
|
<div class="navigation">
|
2022-02-18 01:13:35 +00:00
|
|
|
{{- if and $ispublished ($.Scratch.Get "relearnNextPage") }}
|
2022-02-17 23:09:06 +00:00
|
|
|
{{- with ($.Scratch.Get "relearnNextPage") }}
|
2022-03-07 17:25:33 +00:00
|
|
|
<a class="nav nav-next" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fas fa-chevron-right fa-fw"></i></a>
|
2022-02-17 23:09:06 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- else }}
|
2022-03-07 17:25:33 +00:00
|
|
|
<span class="nav nav-next"><i class="fa fa-chevron-right fa-fw"></i></span>
|
2022-02-17 23:09:06 +00:00
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
<div class="navigation">
|
2022-02-18 01:13:35 +00:00
|
|
|
{{- if and $ispublished ($.Scratch.Get "relearnPrevPage") }}
|
2022-02-17 23:09:06 +00:00
|
|
|
{{- with ($.Scratch.Get "relearnPrevPage") }}
|
2022-03-07 17:25:33 +00:00
|
|
|
<a class="nav nav-prev" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fas fa-chevron-left fa-fw"></i></a>
|
2022-02-17 23:09:06 +00:00
|
|
|
{{- end}}
|
|
|
|
{{- else }}
|
2022-03-07 17:25:33 +00:00
|
|
|
<span class="nav nav-prev"><i class="fa fa-chevron-left fa-fw"></i></span>
|
2022-02-17 23:09:06 +00:00
|
|
|
{{- end}}
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
2022-04-02 13:29:34 +00:00
|
|
|
{{- with .OutputFormats.Get "PRINT" }}
|
|
|
|
<div id="top-print-link">
|
|
|
|
<a class="print-link" title='{{ T "Print-this-chapter" }}' href="{{ .RelPermalink }}">
|
|
|
|
<i class="fas fa-print fa-fw"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{- end -}}
|
2022-02-17 23:09:06 +00:00
|
|
|
{{- if .Site.Params.editURL }}
|
2021-09-23 19:25:45 +00:00
|
|
|
{{- $File := .File }}
|
|
|
|
{{- $Site := .Site }}
|
2022-02-23 19:21:48 +00:00
|
|
|
{{- if $File }}
|
|
|
|
{{- with $File.Path }}
|
2021-09-23 19:25:45 +00:00
|
|
|
<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">
|
2022-02-23 11:40:16 +00:00
|
|
|
<i class="fas fa-pen fa-fw"></i>
|
2021-09-23 19:25:45 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2022-02-23 19:21:48 +00:00
|
|
|
{{- end }}
|
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 }}
|
2022-02-15 19:28:29 +00:00
|
|
|
{{- $hastoc := not (eq 0 (int (len (.TableOfContents | plainify)))) }}
|
|
|
|
{{- $toc := (and $hastoc (not $currentDisableToc) (not .Params.chapter)) }}
|
2021-09-23 19:25:45 +00:00
|
|
|
<div id="breadcrumbs">
|
|
|
|
<span id="sidebar-toggle-span">
|
2022-02-28 00:19:32 +00:00
|
|
|
<a href="#" id="sidebar-toggle" title='{{ T "Navigation-toggle" }}'><i class="fas fa-bars fa-fw"></i></a>
|
2021-09-23 19:25:45 +00:00
|
|
|
</span>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- if $toc }}
|
2022-02-28 00:19:32 +00:00
|
|
|
<span id="toc-menu" title='{{ T "Toc-toggle" }}'><i class="fas fa-list-alt fa-fw"></i></span>
|
2021-09-23 19:25:45 +00:00
|
|
|
{{- 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-27 09:27:12 +00:00
|
|
|
</div>
|
2022-02-28 00:19:32 +00:00
|
|
|
</nav>
|
2022-04-02 13:29:34 +00:00
|
|
|
<main id="body-inner" class="highlightable{{if .Params.chapter}} chapter{{end}}">
|
2022-02-28 00:19:32 +00:00
|
|
|
<div class="flex-block-wrapper">
|
|
|
|
<div id="head-tags">
|
2022-02-17 23:38:32 +00:00
|
|
|
{{- partial "tags.html" . }}
|
2022-02-28 00:19:32 +00:00
|
|
|
</div>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- define "breadcrumb" }}
|
|
|
|
{{- $parent := .page.Parent }}
|
2022-02-17 13:19:34 +00:00
|
|
|
{{- $ispublished := gt (int (len .page.Permalink)) 0 }}
|
|
|
|
{{- $depth := .depth }}
|
|
|
|
{{- if $ispublished }}
|
|
|
|
{{- $depth = add $depth 1 }}
|
|
|
|
{{- end }}
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- if $parent }}
|
|
|
|
{{- template "breadcrumb" dict "page" $parent "depth" $depth }}
|
|
|
|
{{- end }}
|
2022-02-17 13:19:34 +00:00
|
|
|
{{- if $ispublished }}
|
2022-02-24 22:09:49 +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">{{if .page.Title}}{{ .page.Title }}{{else}}{{ .page.Site.Title }}{{end}}</span></a>{{ if .depth }} > {{ end }}</li>
|
2022-02-17 13:19:34 +00:00
|
|
|
{{- end }}
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- end }}
|