Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
57
themes/docdock/layouts/partials/flex/body-beforecontent.html
Normal file
57
themes/docdock/layouts/partials/flex/body-beforecontent.html
Normal file
@@ -0,0 +1,57 @@
|
||||
<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}}
|
||||
|
||||
{{- partialCached "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>
|
||||
</div>
|
||||
{{- end}}
|
||||
|
||||
|
||||
{{if not .IsHome}}<h1>{{.Title}}</h1>{{end}}
|
||||
Reference in New Issue
Block a user