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
35
layouts/404/404.html
Normal file
35
layouts/404/404.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>Page Not Found</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link href='/css/style.min.css' rel='stylesheet' />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="wrapper" class="wrapper">
|
||||
|
||||
<div class="container pt-9 pb-9 pt-md-13 pb-md-13">
|
||||
<div class="row justify-content-center align-content-between">
|
||||
<div class="col-9 text-center">
|
||||
<h1 class="display-1 text-primary mb-4">Page not found</h1>
|
||||
</div>
|
||||
<div class="col-9 text-center mb-2">
|
||||
<a href="/" class="btn btn-primary">Home</a>
|
||||
</div>
|
||||
<div class="col-9 text-center mb-2">
|
||||
<a href="/contact" class="btn btn-primary">Contact Us</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
65
layouts/_default/baseof.html
Normal file
65
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,65 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>{{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{{ block "meta_tags" . }}{{end}}
|
||||
<link rel="icon" href="{{ .Site.BaseURL }}favicon.png">
|
||||
|
||||
{{ if .Site.IsServer }}
|
||||
{{ $style := resources.Get "scss/style.scss" | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" true) }}
|
||||
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
|
||||
{{ else }}
|
||||
{{ $style := resources.Get "scss/style.scss" | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" false) }}
|
||||
<link rel="stylesheet" href="{{ ($style | minify | fingerprint).RelPermalink }}">
|
||||
{{ end }}
|
||||
|
||||
{{ block "header_css" . }}{{ end }}
|
||||
|
||||
</head>
|
||||
|
||||
<body class='page {{ block "body_classes" . }}{{ end }}'>
|
||||
{{ partial "main-menu-mobile.html" . }}
|
||||
<div id="wrapper" class="wrapper">
|
||||
{{ partial "header.html" . }}
|
||||
{{ if eq .Section "docs" }}
|
||||
<div class="container pt-3 pt-md-6">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-3 mb-2">
|
||||
<div class="sidebar">
|
||||
{{ partial "docs-menu.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-9">
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
{{ end}}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{{ $scripts := resources.Get "js/scripts.js" }}
|
||||
|
||||
{{ block "footer_js" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.IsServer }}
|
||||
<script type="text/javascript" src="{{ $scripts.RelPermalink }}"></script>
|
||||
{{ else }}
|
||||
<script type="text/javascript" src="{{ ($scripts | minify | fingerprint).RelPermalink }}"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "google-analytics.html" . }}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
16
layouts/_default/list.html
Normal file
16
layouts/_default/list.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{{ define "header_css" }}{{ end }} {{ define "body_classes" }}{{ end }}
|
||||
{{ define "header_classes" }}{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
<span class="overview">Overview</span>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ range.Pages }}
|
||||
<div class="content">{{.Content}}</div>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
11
layouts/_default/single.html
Normal file
11
layouts/_default/single.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{ define "header_css" }}{{ end }}
|
||||
{{ define "body_classes" }}{{ end }}
|
||||
{{ define "header_classes" }}{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<h1 class="title">{{.Title}}</h1>
|
||||
<div class="content">
|
||||
{{.Content}}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
7
layouts/_default/summary.html
Normal file
7
layouts/_default/summary.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<div class="summary">
|
||||
{{ if .Params.image }}
|
||||
<img alt="{{ .Title }}" src="{{ .Params.image }}" />
|
||||
{{ end}}
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
{{ .Content | truncate 100 }}
|
||||
</div>
|
40
layouts/index.html
Normal file
40
layouts/index.html
Normal file
|
@ -0,0 +1,40 @@
|
|||
{{ define "title" }}Hugo Hero Theme Demo{{ end}}
|
||||
{{ define "header_css" }}{{ end }}
|
||||
{{ define "body_classes" }}page-home{{ end }}
|
||||
{{ define "header_classes" }}header-transparent{{ end }}
|
||||
|
||||
{{ define "meta_tags" }}
|
||||
<meta name="description" content="{{ .Site.Params.homepage_meta_tags.meta_description }}" />
|
||||
<meta property="og:title" content="{{ .Site.Params.homepage_meta_tags.meta_og_title }}" />
|
||||
<meta property="og:type" content="{{ .Site.Params.homepage_meta_tags.meta_og_type }}" />
|
||||
<meta property="og:url" content="{{ .Site.Params.homepage_meta_tags.meta_og_url }}" />
|
||||
<meta property="og:image" content="{{ .Site.Params.homepage_meta_tags.meta_og_image }}" />
|
||||
<meta property="og:description" content="{{ .Site.Params.homepage_meta_tags.meta_og_description }}" />
|
||||
<meta name="twitter:card" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_card }}" />
|
||||
<meta name="twitter:site" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_site }}" />
|
||||
<meta name="twitter:creator" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_creator }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<div class="strip">
|
||||
<div class="container pt-6 pb-16">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h1 class="title">{{.Title}}</h1>
|
||||
<div class="content">
|
||||
{{.Content}}
|
||||
</div>
|
||||
<a class="button button-primary mb-2" href="{{ .Site.BaseURL }}docs">Read The Docs</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="strip strip-grey pt-4 pb-4">
|
||||
<div class="terminal">
|
||||
<img src="{{ .Site.BaseURL }}images/terminal-white.gif" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer_js" }}
|
||||
{{ end }}
|
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