mirror of
https://github.com/TeamPiped/hugo-whisper-theme.git
synced 2024-08-14 23:57:00 +00:00
first commit
This commit is contained in:
commit
dcdde20b7c
179 changed files with 16070 additions and 0 deletions
11
layouts/partials/docs-menu.html
Normal file
11
layouts/partials/docs-menu.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{$currentNode := .}}
|
||||
<div class="docs-menu">
|
||||
<h4>Docs</h4>
|
||||
<ul>
|
||||
{{ range (where .Site.Pages "Section" "docs") sort .Site.Pages ".Weight" }}
|
||||
<li class="{{ if eq .UniqueID $currentNode.UniqueID }}active {{ end }}">
|
||||
<a href="{{ .URL }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
14
layouts/partials/footer.html
Normal file
14
layouts/partials/footer.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<div class="footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="footer-inner">
|
||||
<ul class="footer-menu">
|
||||
<li><a href="{{ .Site.BaseURL }}">Home</a></li>
|
||||
<li><a href="{{ .Site.BaseURL }}contact">Contact</a></li>
|
||||
<li class="copyright">© {{ now.Format "2006" }} {{.Site.Title}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
26
layouts/partials/google-analytics.html
Normal file
26
layouts/partials/google-analytics.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
{{- if .Site.IsServer -}}
|
||||
<!-- Dont add Google analytics to localhost -->
|
||||
{{ else }}
|
||||
{{ $gid := (getenv "HUGO_GOOGLE_ANALYTICS_ID") }}
|
||||
{{ if $gid }}
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{- $gid -}}"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', '{{- $gid -}}');
|
||||
</script>
|
||||
{{ else }}
|
||||
{{ if .Site.Params.google_analytics_id }}
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{- .Site.Params.google_analytics_id -}}"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', '{{- .Site.Params.google_analytics_id -}}');
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ end}}
|
||||
{{ end }}
|
5
layouts/partials/hamburger.html
Normal file
5
layouts/partials/hamburger.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<button id="toggle-main-menu-mobile" class="hamburger hamburger--slider" type="button">
|
||||
<span class="hamburger-box">
|
||||
<span class="hamburger-inner"></span>
|
||||
</span>
|
||||
</button>
|
12
layouts/partials/header.html
Normal file
12
layouts/partials/header.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<div class='header'>
|
||||
<div class="container">
|
||||
<div class="logo">
|
||||
<a href="{{ .Site.BaseURL }}"><img alt="Figurit Homepage" src="{{ .Site.BaseURL }}images/logo.svg" /></a>
|
||||
</div>
|
||||
<div class="logo-mobile">
|
||||
<a href="{{ .Site.BaseURL }}"><img alt="Figurit Homepage" src="{{ .Site.BaseURL }}images/logo-mobile.svg" /></a>
|
||||
</div>
|
||||
{{ partial "main-menu.html" . }}
|
||||
{{ partial "hamburger.html" . }}
|
||||
</div>
|
||||
</div>
|
13
layouts/partials/main-menu-mobile.html
Normal file
13
layouts/partials/main-menu-mobile.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<div id="main-menu-mobile" class="main-menu-mobile">
|
||||
<ul>
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
<li class="menu-item-{{ .Name | lower }}{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}">
|
||||
<a href="{{.URL}}">
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</div>
|
13
layouts/partials/main-menu.html
Normal file
13
layouts/partials/main-menu.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<div id="main-menu" class="main-menu">
|
||||
<ul>
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
<li class="menu-item-{{ .Name | lower }}{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}">
|
||||
<a href="{{.URL}}">
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</div>
|
18
layouts/partials/sub-footer.html
Normal file
18
layouts/partials/sub-footer.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<div class="sub-footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="sub-footer-inner">
|
||||
<ul>
|
||||
<li><strong>Phone: </strong>{{ .Site.Data.contact.phone }}</li>
|
||||
<li><strong>Email: </strong><a href="mailto:{{ .Site.Data.contact.email }}">
|
||||
{{ .Site.Data.contact.email }}</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li class="zerostatic"><a href="https://www.zerostatic.io">www.zerostatic.io</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue