Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/JugglerX/hugo-whisper-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Austin <rob@jugglerdigital.com>2019-02-17 09:55:16 +0300
committerRobert Austin <rob@jugglerdigital.com>2019-02-17 09:55:16 +0300
commitdcdde20b7cce91da456d52396610c8cb4794a531 (patch)
treeeeb1bdacd249b60dc353150734a2ffa0f96b1589 /layouts
first commit
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404/404.html35
-rw-r--r--layouts/_default/baseof.html65
-rw-r--r--layouts/_default/list.html16
-rw-r--r--layouts/_default/single.html11
-rw-r--r--layouts/_default/summary.html7
-rw-r--r--layouts/index.html40
-rw-r--r--layouts/partials/docs-menu.html11
-rw-r--r--layouts/partials/footer.html14
-rw-r--r--layouts/partials/google-analytics.html26
-rw-r--r--layouts/partials/hamburger.html5
-rw-r--r--layouts/partials/header.html12
-rw-r--r--layouts/partials/main-menu-mobile.html13
-rw-r--r--layouts/partials/main-menu.html13
-rw-r--r--layouts/partials/sub-footer.html18
14 files changed, 286 insertions, 0 deletions
diff --git a/layouts/404/404.html b/layouts/404/404.html
new file mode 100644
index 0000000..edd821d
--- /dev/null
+++ b/layouts/404/404.html
@@ -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> \ No newline at end of file
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..1b11532
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -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> \ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..5eb70fd
--- /dev/null
+++ b/layouts/_default/list.html
@@ -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 }} \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..86dc697
--- /dev/null
+++ b/layouts/_default/single.html
@@ -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 }} \ No newline at end of file
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
new file mode 100644
index 0000000..0bb323f
--- /dev/null
+++ b/layouts/_default/summary.html
@@ -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> \ No newline at end of file
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..e188328
--- /dev/null
+++ b/layouts/index.html
@@ -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 }} \ No newline at end of file
diff --git a/layouts/partials/docs-menu.html b/layouts/partials/docs-menu.html
new file mode 100644
index 0000000..adbbac4
--- /dev/null
+++ b/layouts/partials/docs-menu.html
@@ -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> \ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..13054e6
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -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> \ No newline at end of file
diff --git a/layouts/partials/google-analytics.html b/layouts/partials/google-analytics.html
new file mode 100644
index 0000000..63c84ab
--- /dev/null
+++ b/layouts/partials/google-analytics.html
@@ -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 }} \ No newline at end of file
diff --git a/layouts/partials/hamburger.html b/layouts/partials/hamburger.html
new file mode 100644
index 0000000..a6d7de9
--- /dev/null
+++ b/layouts/partials/hamburger.html
@@ -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> \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..9038b21
--- /dev/null
+++ b/layouts/partials/header.html
@@ -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> \ No newline at end of file
diff --git a/layouts/partials/main-menu-mobile.html b/layouts/partials/main-menu-mobile.html
new file mode 100644
index 0000000..2aae467
--- /dev/null
+++ b/layouts/partials/main-menu-mobile.html
@@ -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> \ No newline at end of file
diff --git a/layouts/partials/main-menu.html b/layouts/partials/main-menu.html
new file mode 100644
index 0000000..924c91b
--- /dev/null
+++ b/layouts/partials/main-menu.html
@@ -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> \ No newline at end of file
diff --git a/layouts/partials/sub-footer.html b/layouts/partials/sub-footer.html
new file mode 100644
index 0000000..caffd84
--- /dev/null
+++ b/layouts/partials/sub-footer.html
@@ -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> \ No newline at end of file