mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
First pass at new site template
This commit is contained in:
committed by
Chris Cummer
parent
215c7e571f
commit
d872a28cf7
8
_site/themes/docdock/layouts/partials/breadcrumb.html
Normal file
8
_site/themes/docdock/layouts/partials/breadcrumb.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{{define "breadcrumb"}}
|
||||
{{ if .page.Parent}}
|
||||
{{$value := (printf "<a href='%s'>%s</a> > %s" .page.Parent.URL .page.Parent.Title .value)}}
|
||||
{{ template "breadcrumb" dict "page" .page.Parent "value" $value }}
|
||||
{{else}}
|
||||
{{.value|safeHTML}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
@@ -0,0 +1,6 @@
|
||||
<footer class=" footline" >
|
||||
{{with .Params.LastModifierDisplayName}}
|
||||
<i class='fa fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{with $.Date}} <i class='fa fa-calendar'></i> {{ .Format "02/01/2006" }}{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
</footer>
|
||||
4
_site/themes/docdock/layouts/partials/custom-head.html
Normal file
4
_site/themes/docdock/layouts/partials/custom-head.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
|
||||
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
|
||||
<link rel="stylesheet" href="/css/custom.css">
|
||||
@@ -0,0 +1,54 @@
|
||||
<div class="chevrons">
|
||||
{{ partial "next-prev-page.html" . }}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<footer>
|
||||
|
||||
<div class="footline">
|
||||
{{if .Params.tags }}
|
||||
<div class="tags">
|
||||
{{ range $index, $tag := .Params.tags }}
|
||||
<a class="label label-default" href="{{$.Site.BaseURL}}tags/{{ $tag | urlize }}">{{ $tag }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{with .Params.LastModifierDisplayName}}
|
||||
<div class="author">
|
||||
<i class='fa fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{ if not .Page.Lastmod.IsZero }}
|
||||
<div class="date">
|
||||
<i class='fa fa-calendar'></i> {{T "last-update-on"}} {{ .Page.Lastmod.Format "02/01/2006" }}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<div class="github-link">
|
||||
<a href="{{ .Site.Params.editURL }}{{ replace .File.Dir "\\" "/" }}{{ .File.LogicalName }}" target="blank"><i class="fa fa-code-fork"></i>
|
||||
{{T "Edit-this-page"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
{{ $footer := print "_footer." .Lang }}
|
||||
{{ range where .Site.Pages "Source.BaseFileName" $footer }}
|
||||
{{ .Content }}
|
||||
{{else}}
|
||||
{{ if .Site.GetPage "page" "_footer.md" }}
|
||||
{{(.Site.GetPage "page" "_footer.md").Content}}
|
||||
{{else}}
|
||||
{{ T "create-footer-md" }}
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{{ partial "flex/scripts.html" . }}
|
||||
@@ -0,0 +1,68 @@
|
||||
<header>
|
||||
<div class="logo">
|
||||
{{ partial "header.html" . }}
|
||||
</div>
|
||||
<div class="burger"><a href="javascript:void(0);" style="font-size:15px;">☰</a></div>
|
||||
{{- with .Site.Menus.shortcuts}}
|
||||
<nav class="shortcuts">
|
||||
{{- range sort . "Weight"}}
|
||||
<li class="" role="">
|
||||
<a href="{{.URL}}" {{if eq $.Site.Params.menushortcutsnewtab true}}target="_blank"{{end}} rel="noopener">
|
||||
{{safeHTML .Name}}
|
||||
</a>
|
||||
</li>
|
||||
{{- end}}
|
||||
</nav>
|
||||
{{- end}}
|
||||
</header>
|
||||
<article>
|
||||
<aside>
|
||||
<ul class="menu">
|
||||
{{- if not .Site.Params.disableHomeIcon}}
|
||||
<li data-nav-id="{{"/" | relLangURL}}" class="dd-item">
|
||||
<a href="{{"/" | relLangURL}}">
|
||||
<i class="fa fa-fw fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
{{- end}}
|
||||
|
||||
{{- partial "menu.html" . }}
|
||||
|
||||
</ul>
|
||||
|
||||
{{- partial "language-selector.html" . }}
|
||||
<section>
|
||||
{{- partial "menu-footer.html" . }}
|
||||
</section>
|
||||
</aside>
|
||||
<section class="page">
|
||||
|
||||
<div class="nav-select">
|
||||
<center>Navigation :
|
||||
<select onchange="javascript:location.href = this.value;">
|
||||
{{partial "flex/selectnavigation.html" .}}
|
||||
</select>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
{{- if not .Site.Params.disableSearch}}
|
||||
<div>
|
||||
<div class="searchbox">
|
||||
<input data-search-input id="search-by" type="text" placeholder="{{T "Search-placeholder"}}">
|
||||
</div>
|
||||
<script type="text/javascript" src="{{"js/lunr.min.js" | relURL}}"></script>
|
||||
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}"></script>
|
||||
<link href="{{"css/auto-complete.css" | relURL}}" rel="stylesheet">
|
||||
<script type="text/javascript">
|
||||
{{ if .Site.IsMultiLingual }}
|
||||
var baseurl = "{{.Site.BaseURL}}{{.Site.LanguagePrefix}}";
|
||||
{{ else }}
|
||||
var baseurl = "{{.Site.BaseURL}}";
|
||||
{{ end }}
|
||||
</script>
|
||||
<script type="text/javascript" src="{{"js/search.js" | relURL}}"></script>
|
||||
</div>
|
||||
{{- end}}
|
||||
|
||||
|
||||
{{if not .IsHome}}<h1>{{.Title}}</h1>{{end}}
|
||||
17
_site/themes/docdock/layouts/partials/flex/head.html
Normal file
17
_site/themes/docdock/layouts/partials/flex/head.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
{{ .Hugo.Generator }}
|
||||
<title>{{ .Title }} :: {{ .Site.Title }}</title>
|
||||
<link rel="shortcut icon" href="{{"images/favicon.png" | relURL}}" type="image/x-icon" />
|
||||
<link href="{{"css/font-awesome.min.css" | relURL}}" rel="stylesheet">
|
||||
<link href="{{"css/nucleus.css" | relURL}}" rel="stylesheet">
|
||||
<link href="{{(printf "theme-%s/style.css" (.Site.Params.themeStyle| default "flex") ) | relURL}}" rel="stylesheet">
|
||||
{{with .Site.Params.themeVariant}}
|
||||
<link href="{{(printf "theme-%s/variant-%s.css" ($.Site.Params.themeStyle| default "flex") .) | relURL}}" rel="stylesheet">
|
||||
{{end}}
|
||||
<link rel="stylesheet" href="{{"css/bootstrap.min.css" | relURL}}">
|
||||
<script src="{{"js/jquery-2.x.min.js" | relURL}}"></script>
|
||||
<script type="text/javascript">
|
||||
var baseurl = "{{.Site.BaseURL}}";
|
||||
</script>
|
||||
{{ partial "custom-head.html" . }}
|
||||
11
_site/themes/docdock/layouts/partials/flex/scripts.html
Normal file
11
_site/themes/docdock/layouts/partials/flex/scripts.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<script src="{{"js/clipboard.min.js" | relURL}}"></script>
|
||||
|
||||
<link href="{{"css/featherlight.min.css" | relURL}}" rel="stylesheet">
|
||||
<script src="{{"js/featherlight.min.js" | relURL}}"></script>
|
||||
|
||||
{{if eq .Site.Params.highlightClientSide true}}
|
||||
<script src="{{"js/highlight.pack.js" | relURL}}"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
{{end}}
|
||||
|
||||
<script src="{{(printf "theme-%s/script.js" (.Site.Params.themeStyle| default "flex")) | relURL}}"></script>
|
||||
@@ -0,0 +1,58 @@
|
||||
{{- $currentNode := . }}
|
||||
{{- if eq .Site.Params.ordersectionsby "title"}}
|
||||
{{- range .Site.Home.Sections.ByTitle}}
|
||||
{{- template "menu-nav" dict "sect" . "currentnode" $currentNode "level" 1}}
|
||||
{{- end}}
|
||||
{{- else}}
|
||||
{{- range .Site.Home.Sections.ByWeight}}
|
||||
{{- template "menu-nav" dict "sect" . "currentnode" $currentNode "level" 1}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
|
||||
<!-- templates -->
|
||||
{{- define "menu-nav" }}
|
||||
{{- $currentNode := .currentnode }}
|
||||
{{- $level := .level }}
|
||||
{{- with .sect}}
|
||||
{{- if .IsSection}}
|
||||
<option value="{{ .RelPermalink}}" {{if eq .URL $currentNode.URL}} selected{{end}}>
|
||||
{{if gt $level 1 }}
|
||||
{{- range after 1 (seq $level)}}-{{ end }}
|
||||
{{end}} {{.Title}}</option>
|
||||
|
||||
{{- if or (.IsAncestor $currentNode) (.Params.alwaysopen) }} <!-- dig into sub levels only if active or menu is always ON-->
|
||||
|
||||
{{- $numberOfPages := (add (len .Pages) (len .Sections)) }}
|
||||
{{- if ne $numberOfPages 0 }}
|
||||
{{- .Scratch.Set "pages" .Pages }}
|
||||
{{- if .Sections}}
|
||||
{{- .Scratch.Set "pages" (.Pages | union .Sections) }}
|
||||
{{- end}}
|
||||
{{- $pages := (.Scratch.Get "pages") }}
|
||||
|
||||
{{- if eq .Site.Params.ordersectionsby "title"}}
|
||||
{{- range $pages.ByTitle }}
|
||||
{{- if and .Params.hidden (not $.showhidden) }}
|
||||
{{- else}}
|
||||
{{- template "menu-nav" dict "sect" . "currentnode" $currentNode }}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- else}}
|
||||
{{- range $pages.ByWeight }}
|
||||
{{- if and .Params.hidden (not $.showhidden) }}
|
||||
{{- else}}
|
||||
{{- template "menu-nav" dict "sect" . "currentnode" $currentNode "level" (add $level 1) }}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
|
||||
{{- end}}
|
||||
{{end}}
|
||||
{{- else}}
|
||||
{{- if not .Params.Hidden }}
|
||||
<option value="{{ .RelPermalink}}" {{if eq .URL $currentNode.URL}} selected{{end}}>
|
||||
{{- range after 1 (seq $level)}}-{{ end }} {{.Title}}</option>
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
10
_site/themes/docdock/layouts/partials/header.html
Normal file
10
_site/themes/docdock/layouts/partials/header.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ $header := print "_header." .Lang }}
|
||||
{{ range where .Site.Pages "Source.BaseFileName" $header }}
|
||||
{{ .Content }}
|
||||
{{else}}
|
||||
{{ if .Site.GetPage "page" "_header.md" }}
|
||||
{{(.Site.GetPage "page" "_header.md").Content}}
|
||||
{{else}}
|
||||
<a class="baselink" href="{{.Site.BaseURL}}">{{.Site.Title}}</a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
18
_site/themes/docdock/layouts/partials/language-selector.html
Normal file
18
_site/themes/docdock/layouts/partials/language-selector.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{- if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton)}}
|
||||
<select id="select-language" onchange="location = this.value;">
|
||||
{{ $siteLanguages := .Site.Languages}}
|
||||
{{ $pageLang := .Page.Lang}}
|
||||
{{ range .Page.AllTranslations }}
|
||||
{{ $translation := .}}
|
||||
{{ range $siteLanguages }}
|
||||
{{ if eq $translation.Lang .Lang }}
|
||||
{{ if eq $pageLang .Lang}}
|
||||
<option id="{{ $translation.Language }}" value="{{ $translation.URL }}" selected>{{ .LanguageName }}</option>
|
||||
{{ else }}
|
||||
<option id="{{ $translation.Language }}" value="{{ $translation.URL }}">{{ .LanguageName }}</option>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</select>
|
||||
{{- end }}
|
||||
82
_site/themes/docdock/layouts/partials/menu.html
Normal file
82
_site/themes/docdock/layouts/partials/menu.html
Normal file
@@ -0,0 +1,82 @@
|
||||
{{- $currentNode := . }}
|
||||
{{- $showvisitedlinks := .Site.Params.showVisitedLinks -}}
|
||||
|
||||
{{- if eq .Site.Params.ordersectionsby "title"}}
|
||||
{{- range .Site.Home.Sections.ByTitle}}
|
||||
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}}
|
||||
{{- end}}
|
||||
{{- else}}
|
||||
{{- range .Site.Home.Sections.ByWeight}}
|
||||
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
|
||||
<!-- templates -->
|
||||
{{- define "section-tree-nav" }}
|
||||
{{- $showvisitedlinks := .showvisitedlinks }}
|
||||
{{- $currentNode := .currentnode }}
|
||||
{{- with .sect}}
|
||||
{{- if and .IsSection (or (not .Params.hidden) $.showhidden)}}
|
||||
{{- $numberOfPages := (add (len .Pages) (len .Sections)) }}
|
||||
{{- safeHTML .Params.head}}
|
||||
<li data-nav-id="{{.URL}}" class="dd-item
|
||||
{{- if .IsAncestor $currentNode}} parent{{end}}
|
||||
{{- if eq .URL $currentNode.URL}} active{{end}}
|
||||
{{- if .Params.alwaysopen}} alwaysopen{{end -}}
|
||||
{{- if ne $numberOfPages 0 }} haschildren{{end}}
|
||||
">
|
||||
<div>
|
||||
<a href="{{ .RelPermalink}}">{{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}}</a>
|
||||
|
||||
{{- if ne $numberOfPages 0 }}
|
||||
{{- if or (.IsAncestor $currentNode) (.Params.alwaysopen) }}
|
||||
<i class="fa fa-angle-down fa-lg category-icon"></i>
|
||||
{{- else -}}
|
||||
<i class="fa fa-angle-right fa-lg category-icon"></i>
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
|
||||
{{- if $showvisitedlinks}}<i class="fa fa-circle-thin read-icon"></i>{{end}}
|
||||
</div>
|
||||
{{- if ne $numberOfPages 0 }}
|
||||
<ul>
|
||||
{{- .Scratch.Set "pages" .Pages }}
|
||||
{{- if .Sections}}
|
||||
{{- .Scratch.Set "pages" (.Pages | union .Sections) }}
|
||||
{{- end}}
|
||||
{{- $pages := (.Scratch.Get "pages") }}
|
||||
|
||||
{{- if eq .Site.Params.ordersectionsby "title"}}
|
||||
{{- range $pages.ByTitle }}
|
||||
{{- if and .Params.hidden (not $.showhidden) }}
|
||||
{{- else}}
|
||||
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- else}}
|
||||
{{- range $pages.ByWeight }}
|
||||
{{- if and .Params.hidden (not $.showhidden) }}
|
||||
{{- else}}
|
||||
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
</ul>
|
||||
{{- end}}
|
||||
</li>
|
||||
{{- else}}
|
||||
{{- if not .Params.Hidden }}
|
||||
<li data-nav-id="{{.URL}}" class="dd-item
|
||||
{{- if eq .URL $currentNode.URL}} active{{end -}}
|
||||
">
|
||||
<div>
|
||||
<a href="{{ .RelPermalink}}">
|
||||
{{safeHTML .Params.Pre}}{{.LinkTitle}}{{safeHTML .Params.Post}}
|
||||
</a>
|
||||
{{- if $showvisitedlinks}}<i class="fa fa-circle-thin read-icon"></i>{{end}}
|
||||
</div>
|
||||
</li>
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
44
_site/themes/docdock/layouts/partials/next-prev-page.html
Normal file
44
_site/themes/docdock/layouts/partials/next-prev-page.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<div id="navigation">
|
||||
<!-- Next prev page -->
|
||||
{{- $currentNode := . -}}
|
||||
|
||||
{{- template "menu-nextprev" dict "menu" .Site.Home "currentnode" $currentNode -}}
|
||||
|
||||
{{- define "menu-nextprev" -}}
|
||||
{{- $currentNode := .currentnode -}}
|
||||
{{- if ne .menu.Params.hidden true -}}
|
||||
{{- if hasPrefix $currentNode.URL .menu.URL -}}
|
||||
{{- $currentNode.Scratch.Set "NextPageOK" "OK" -}}
|
||||
{{- $currentNode.Scratch.Set "prevPage" ($currentNode.Scratch.Get "prevPageTmp") -}}
|
||||
{{- else -}}
|
||||
{{- if eq ($currentNode.Scratch.Get "NextPageOK") "OK" -}}
|
||||
{{- $currentNode.Scratch.Set "NextPageOK" nil -}}
|
||||
{{- $currentNode.Scratch.Set "nextPage" .menu -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- $currentNode.Scratch.Set "prevPageTmp" .menu -}}
|
||||
|
||||
{{- $currentNode.Scratch.Set "pages" .menu.Pages -}}
|
||||
{{- if .menu.IsHome -}}
|
||||
{{- $currentNode.Scratch.Set "pages" .menu.Sections -}}
|
||||
{{- else if .menu.Sections -}}
|
||||
{{- $currentNode.Scratch.Set "pages" (.menu.Pages | union .menu.Sections) -}}
|
||||
{{- end -}}
|
||||
{{- $pages := ($currentNode.Scratch.Get "pages") -}}
|
||||
|
||||
{{- range $pages.ByWeight -}}
|
||||
{{- template "menu-nextprev" dict "menu" . "currentnode" $currentNode -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{- if not $.Site.Params.disableNavChevron -}}
|
||||
{{- with ($.Scratch.Get "prevPage") -}}
|
||||
<a class="nav nav-prev" href="{{.URL}}" title="{{.Title}}"> <i class="fa fa-chevron-left"></i><label>{{.Title}}</label></a>
|
||||
{{ end -}}
|
||||
{{- with ($.Scratch.Get "nextPage") -}}
|
||||
<a class="nav nav-next" href="{{.URL}}" title="{{.Title}}" style="margin-right: 0px;"><label>{{.Title}}</label><i class="fa fa-chevron-right"></i></a>
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
{{ partial "custom-content-footer.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ partial "next-prev-page.html" . }}
|
||||
|
||||
</section>
|
||||
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
|
||||
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
|
||||
</div>
|
||||
|
||||
{{ partial "original/scripts.html" . }}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
<div id="headermain"></div>
|
||||
<nav id="sidebar" class="{{if $.Site.Params.showVisitedLinks }}showVisitedLinks{{end}}">
|
||||
|
||||
|
||||
|
||||
<div class="highlightable">
|
||||
<div id="header-wrapper">
|
||||
<div id="header">
|
||||
{{ partial "header.html" . }}
|
||||
</div>
|
||||
{{- if not .Site.Params.disableSearch}}
|
||||
<div class="searchbox">
|
||||
<label for="search-by"><i class="fa fa-search"></i></label>
|
||||
<input data-search-input id="search-by" type="text" placeholder="{{T "Search-placeholder"}}">
|
||||
<span data-search-clear=""><i class="fa fa-close"></i></span>
|
||||
</div>
|
||||
<script type="text/javascript" src="{{"js/lunr.min.js" | relURL}}"></script>
|
||||
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}"></script>
|
||||
<script type="text/javascript">
|
||||
{{ if .Site.IsMultiLingual }}
|
||||
var baseurl = "{{.Site.BaseURL}}{{.Site.LanguagePrefix}}";
|
||||
{{ else }}
|
||||
var baseurl = "{{.Site.BaseURL}}";
|
||||
{{ end }}
|
||||
</script>
|
||||
<script type="text/javascript" src="{{"js/search.js" | relURL}}"></script>
|
||||
{{- end}}
|
||||
</div>
|
||||
|
||||
<ul class="topics">
|
||||
{{- if not .Site.Params.disableHomeIcon}}
|
||||
<li data-nav-id="{{"/" | relLangURL}}" class="dd-item">
|
||||
<a href="{{"/" | relLangURL}}"><i class="fa fa-fw fa-home"></i></a>
|
||||
</li>
|
||||
{{- end}}
|
||||
|
||||
{{- partial "menu.html" . }}
|
||||
|
||||
{{- with .Site.Menus.shortcuts}}
|
||||
<section id="shortcuts">
|
||||
{{- range sort . "Weight"}}
|
||||
<li class="" role="">
|
||||
{{- .Pre -}}
|
||||
<a href="{{.URL}}" target="_blank" rel="noopener">{{safeHTML .Name}}</a>
|
||||
{{- .Post -}}
|
||||
</li>
|
||||
{{- end}}
|
||||
</section>
|
||||
|
||||
{{- if $.Site.Params.showVisitedLinks}}
|
||||
<a id="clear-history" class="" href="#" data-clear-history-toggle=""><i class="fa fa-history"></i> {{T "Clear-History"}}</a>
|
||||
{{- end}}
|
||||
|
||||
{{- end}}
|
||||
|
||||
<hr />
|
||||
<li>{{- partial "language-selector.html" . }}</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<section id="footer">
|
||||
{{- partial "menu-footer.html" . }}
|
||||
</section>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<section id="body">
|
||||
<div id="overlay"></div>
|
||||
<div class="padding highlightable">
|
||||
{{if not .IsHome}}
|
||||
<div id="top-bar">
|
||||
{{ if and (or .IsPage .IsSection) .Site.Params.editURL }}
|
||||
{{ $File := .File }}
|
||||
{{ $Site := .Site }}
|
||||
{{with $File.Path }}
|
||||
<div id="top-github-link">
|
||||
<a class="github-link" href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
|
||||
<i class="fa fa-code-fork"></i>
|
||||
{{T "Edit-this-page"}}
|
||||
</a>
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
<div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
|
||||
<span id="sidebar-toggle-span">
|
||||
<a href="#" id="sidebar-toggle" data-sidebar-toggle="">
|
||||
<i class="fa fa-bars"></i>
|
||||
</a>
|
||||
</span>
|
||||
<span id="toc-menu"><i class="fa fa-list-alt"></i></span>
|
||||
<span class="links">
|
||||
{{ template "breadcrumb" dict "page" . "value" .Title }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- TOC -->
|
||||
<div class="progress">
|
||||
<div class="wrapper">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- /TOC -->
|
||||
|
||||
</div>
|
||||
{{end}}
|
||||
{{if .Params.tags }}
|
||||
<div id="tags">
|
||||
{{ range $index, $tag := .Params.tags }}
|
||||
<a class="label label-default" href="{{$.Site.BaseURL}}tags/{{ $tag | urlize }}">{{ $tag }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{end}}
|
||||
<div id="body-inner">
|
||||
{{if not .IsHome}}
|
||||
<h1>{{.Title}}</h1>
|
||||
{{end}}
|
||||
|
||||
{{define "breadcrumb"}}
|
||||
{{ if .page.Parent}}
|
||||
{{$value := (printf "<a href='%s'>%s</a> > %s" .page.Parent.URL .page.Parent.Title .value)}}
|
||||
{{ template "breadcrumb" dict "page" .page.Parent "value" $value }}
|
||||
{{else}}
|
||||
{{.value|safeHTML}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
23
_site/themes/docdock/layouts/partials/original/head.html
Normal file
23
_site/themes/docdock/layouts/partials/original/head.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
{{ .Hugo.Generator }}
|
||||
|
||||
<title>{{ .Title }} :: {{ .Site.Title }}</title>
|
||||
<link rel="shortcut icon" href="{{"images/favicon.png" | relURL}}" type="image/x-icon" />
|
||||
<link href="{{"css/nucleus.css" | relURL}}" rel="stylesheet">
|
||||
<link href="{{"css/font-awesome.min.css" | relURL}}" rel="stylesheet">
|
||||
<link href="{{"css/hybrid.css" | relURL}}" rel="stylesheet">
|
||||
<link href="{{"css/featherlight.min.css" | relURL}}" rel="stylesheet">
|
||||
<link href="{{"css/auto-complete.css" | relURL}}" rel="stylesheet">
|
||||
<link href="{{"theme-original/style.css" | relURL}}" rel="stylesheet">
|
||||
{{with .Site.Params.themeVariant}}
|
||||
<link href="{{(printf "theme-original/variant-%s.css" .) | relURL}}" rel="stylesheet">
|
||||
{{end}}
|
||||
<link rel="stylesheet" href="{{"css/bootstrap.min.css" | relURL}}">
|
||||
<script src="{{"js/jquery-2.x.min.js" | relURL}}"></script>
|
||||
<style type="text/css">
|
||||
:root #header + #content > #left > #rlblock_left {
|
||||
display:none !important;
|
||||
}
|
||||
</style>
|
||||
{{ partial "custom-head.html" . }}
|
||||
10
_site/themes/docdock/layouts/partials/original/scripts.html
Normal file
10
_site/themes/docdock/layouts/partials/original/scripts.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<script src="{{"js/clipboard.min.js" | relURL}}"></script>
|
||||
<script src="{{"js/featherlight.min.js" | relURL}}"></script>
|
||||
<script src="{{"js/html5shiv-printshiv.min.js" | relURL}}"></script>
|
||||
{{if eq .Site.Params.highlightClientSide true}}
|
||||
<script src="{{"js/highlight.pack.js" | relURL}}"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
{{end}}
|
||||
<script src="{{"js/modernizr.custom.71422.js" | relURL}}"></script>
|
||||
<script src="{{"js/docdock.js" | relURL}}"></script>
|
||||
<script src="{{"theme-original/script.js" | relURL}}"></script>
|
||||
9
_site/themes/docdock/layouts/partials/pagination.html
Normal file
9
_site/themes/docdock/layouts/partials/pagination.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<nav class="pagination" role="navigation">
|
||||
{{if .HasPrev}}
|
||||
<a class="newer-posts" href="{{ .Prev.URL }}">← {{T "Previous-Pages"}}</a>
|
||||
{{end}}
|
||||
<span class="page-number">{{T "Page"}} {{ .PageNumber }} {{T "pagination-on"}} {{.TotalPages}}</span>
|
||||
{{if .HasNext}}
|
||||
<a class="older-posts" href="{{ .Next.URL }}">{{T "Next-Pages"}} →</a>
|
||||
{{end}}
|
||||
</nav>
|
||||
Reference in New Issue
Block a user