doc theme
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<!-- Partial intended to be overwritten for content footers like commenting systems -->
|
||||
@@ -0,0 +1 @@
|
||||
<!-- Partial intended to be overwritten to add javacript -->
|
||||
@@ -0,0 +1 @@
|
||||
<!-- Partial intended to be overwritten to add CSS -->
|
||||
@@ -0,0 +1,62 @@
|
||||
|
||||
|
||||
{{ partial "custom-content-footer.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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 }}
|
||||
|
||||
|
||||
{{with ($.Scratch.Get "prevPage")}}
|
||||
<a class="nav nav-prev" href="{{.URL}}" title="{{.Title}}"> <i class="fa fa-chevron-left"></i></a>
|
||||
{{end}}
|
||||
{{with ($.Scratch.Get "nextPage")}}
|
||||
<a class="nav nav-next" href="{{.URL}}" title="{{.Title}}" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
</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 "scripts.html" . }}
|
||||
{{ partial "custom-footer.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,88 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Page.Language | default "en" }}" class="js csstransforms3d">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
{{ .Hugo.Generator }}
|
||||
{{ partial "meta.html" . }}
|
||||
<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/horsey.css" | relURL}}" rel="stylesheet">
|
||||
{{with .Site.Params.themeStyle}}
|
||||
<link href="{{(printf "css/%s.css" .) | relURL}}" rel="stylesheet">
|
||||
{{else}}
|
||||
<link href="{{"css/theme.css" | relURL}}" rel="stylesheet">
|
||||
{{end}}
|
||||
{{with .Site.Params.themeVariant}}
|
||||
<link href="{{(printf "css/theme-%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" . }}
|
||||
</head>
|
||||
<body class="" data-url="{{ .RelPermalink }}">
|
||||
{{ partial "menu.html" . }}
|
||||
<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>
|
||||
{{ partial "toc.html" . }}
|
||||
</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}}
|
||||
@@ -0,0 +1,10 @@
|
||||
{{ range where .Site.Pages "Source.BaseFileName" "_header" }}
|
||||
{{ .Content }}
|
||||
{{else}}
|
||||
<span style="font-size:smaller">
|
||||
<a id="logo" href="{{.Site.BaseURL}}">
|
||||
<span class="fa fa-gears" style="font-size:large"></span>
|
||||
</a>
|
||||
{{ T "create-header-md" }}
|
||||
</small>
|
||||
{{end}}
|
||||
@@ -0,0 +1,126 @@
|
||||
<nav id="sidebar" class="{{if $.Site.Params.showVisitedLinks }}showVisitedLinks{{end}}">
|
||||
|
||||
|
||||
|
||||
{{ $currentNode := . }}
|
||||
{{ $showvisitedlinks := .Site.Params.showVisitedLinks }}
|
||||
<div class="highlightable">
|
||||
<div id="header-wrapper">
|
||||
<div id="header">
|
||||
{{ partial "logo.html" . }}
|
||||
</div>
|
||||
{{if not .Site.Params.noSearch}}
|
||||
{{ partial "search.html" . }}
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
|
||||
<ul class="topics">
|
||||
{{if not .Site.Params.noHomeIcon}}
|
||||
<li data-nav-id="{{"/" | relURL}}" class="dd-item">
|
||||
<a href="{{"/" | relURL}}"><i class="fa fa-fw fa-home"></i></a>
|
||||
</li>
|
||||
{{end}}
|
||||
|
||||
{{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}}
|
||||
|
||||
{{with .Site.Menus.shortcuts}}
|
||||
<section id="shortcuts">
|
||||
{{ range sort . "Weight"}}
|
||||
<li class="" role="">
|
||||
{{.Pre}}
|
||||
<a href="{{.URL}}">{{safeHTML .Name}}</a>
|
||||
{{.Post}}
|
||||
</li>
|
||||
{{end}}
|
||||
</section>
|
||||
|
||||
{{ if $.Site.Params.showVisitedLinks}}
|
||||
<a class="" href="#" data-clear-history-toggle=""><i class="fa fa-history"></i> {{T "Clear-History"}}</a>
|
||||
{{ end }}
|
||||
|
||||
{{end}}
|
||||
</ul>
|
||||
|
||||
|
||||
<section id="footer">
|
||||
{{ partial "menu-footer.html" . }}
|
||||
</section>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- templates -->
|
||||
{{ define "section-tree-nav" }}
|
||||
{{ $showvisitedlinks := .showvisitedlinks }}
|
||||
{{ $currentNode := .currentnode }}
|
||||
{{with .sect}}
|
||||
{{if .IsSection}}
|
||||
{{safeHTML .Params.head}}
|
||||
<li data-nav-id="{{.URL}}" class="dd-item
|
||||
{{if .IsAncestor $currentNode }}parent{{end}}
|
||||
{{if eq .UniqueID $currentNode.UniqueID}}active{{end}}
|
||||
{{if .Params.alwaysopen}}parent{{end}}
|
||||
">
|
||||
<a href="{{ .RelPermalink}}">
|
||||
<span>{{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}}</span>
|
||||
|
||||
{{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
|
||||
{{ 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 style="color:grey" class="fa fa-circle-thin read-icon"></i>{{end}}
|
||||
</a>
|
||||
{{ 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 .UniqueID $currentNode.UniqueID}}active{{end}}
|
||||
">
|
||||
<a href="{{ .RelPermalink}}">
|
||||
<span>{{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}}</span>
|
||||
{{ if $showvisitedlinks}}<i style="color:grey" class="fa fa-circle-thin read-icon"></i>{{end}}
|
||||
</a></li>
|
||||
{{ end }}
|
||||
{{end}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,2 @@
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
|
||||
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
@@ -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>
|
||||
@@ -0,0 +1,13 @@
|
||||
<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>
|
||||
<script src="{{"js/highlight.pack.js" | relURL}}"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
<script src="{{"js/modernizr.custom.71422.js" | relURL}}"></script>
|
||||
<script src="{{"js/learn.js" | relURL}}"></script>
|
||||
<script src="{{"js/hugo-learn.js" | relURL}}"></script>
|
||||
|
||||
|
||||
<link href="{{"mermaid/mermaid.css" | relURL}}" type="text/css" rel="stylesheet"/>
|
||||
<script src="{{"mermaid/mermaid.js" | relURL}}"></script>
|
||||
<script>mermaid.initialize({startOnLoad:true});</script>
|
||||
@@ -0,0 +1,11 @@
|
||||
<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/horsey.js" | relURL}}"></script>
|
||||
<script type="text/javascript">
|
||||
var baseurl = "{{.Site.BaseURL}}";
|
||||
</script>
|
||||
<script type="text/javascript" src="{{"js/search.js" | relURL}}"></script>
|
||||
@@ -0,0 +1,5 @@
|
||||
<div class="progress">
|
||||
<div class="wrapper">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user