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

github.com/cssandstuff/hugo-theme-winning.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcssandstuff <github@cssandstuff.com>2018-07-06 06:07:02 +0300
committercssandstuff <github@cssandstuff.com>2018-07-06 06:07:02 +0300
commit4083c3c029a6a085844c3e229326c49c3229fa90 (patch)
treeebbbe0b1d74d7647ebf698905a2a3ea3cb0ce402 /layouts
parentea234a3868cab4abf1df76f6c205f6295667166d (diff)
changed structure
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html0
-rwxr-xr-xlayouts/_default/baseof.html54
-rw-r--r--layouts/_default/list.html0
-rw-r--r--layouts/_default/single.html6
-rw-r--r--layouts/index.html3
-rw-r--r--layouts/partials/site-favicon.html1
-rwxr-xr-xlayouts/partials/site-footer.html11
-rwxr-xr-xlayouts/partials/site-header.html2
-rw-r--r--layouts/partials/site-navigation.html14
-rw-r--r--layouts/robots.txt7
-rw-r--r--layouts/shortcodes/br.html1
-rw-r--r--layouts/shortcodes/column.html3
-rw-r--r--layouts/shortcodes/dd.html8
-rw-r--r--layouts/shortcodes/grid.html3
-rw-r--r--layouts/shortcodes/printonly.html3
15 files changed, 116 insertions, 0 deletions
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/404.html
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100755
index 0000000..bde0cfc
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ {{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
+ <title>{{ block "title" . }}{{ .Site.Title }}{{end}}</title>
+
+ <meta name="HandheldFriendly" content="True">
+ <meta name="MobileOptimized" content="320">
+ <meta name="viewport" content="initial-scale=1, maximum-scale=1">
+ {{ .Hugo.Generator }}
+ {{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}}
+ {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
+ <META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
+ {{ else }}
+ <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
+ {{ end }}
+ <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400i,500,800" rel="stylesheet">
+ {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
+ <link href='{{ "css/belmu.min.css" | absURL }}?{{ now.UnixNano }}' rel='stylesheet' type="text/css" />
+ <link href='{{ "css/main.min.css" | absURL }}?{{ now.UnixNano }}' rel='stylesheet' type="text/css" />
+ {{ else }}
+ <link href='{{ "css/belmu.css" | absURL }}?{{ now.UnixNano }}' rel='stylesheet' type="text/css" />
+ <link href='{{ "css/main.css" | absURL }}?{{ now.UnixNano }}' rel='stylesheet' type="text/css" />
+ {{ end }}
+
+ {{ block "favicon" . }}
+ {{ partial "site-favicon.html" . }}
+ {{ end }}
+
+ {{ if .RSSLink }}
+ <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+ <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
+ {{ end }}
+
+ {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
+ {{ template "_internal/google_analytics_async.html" . }}
+ {{ end }}
+ <link href="https://fonts.googleapis.com/css?family=Fira+Sans:200,400,400i,600,900" rel="stylesheet">
+ </head>
+
+ <body class="ma0 {{ $.Param "body_classes"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
+ <div class="grid-layout-1">
+ {{ block "header" . }}{{ partial "site-header.html" .}}{{ end }}
+ <main class="main" role="main" id="mainContent">
+ {{ block "main" . }}{{ end }}
+ <div id="drawing"></div>
+ </main>
+ {{ block "footer" . }}{{ partial "site-footer.html" . }}{{ end }}
+ </div>
+ </div>
+ </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..e69de29
--- /dev/null
+++ b/layouts/_default/list.html
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..c0ddd83
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+ {{ .Content }}
+ <style>
+ .header, .footer{display: none !important;}
+ </style>
+{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..9ce1091
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+ {{ .Content }}
+{{ end }} \ No newline at end of file
diff --git a/layouts/partials/site-favicon.html b/layouts/partials/site-favicon.html
new file mode 100644
index 0000000..3a059ec
--- /dev/null
+++ b/layouts/partials/site-favicon.html
@@ -0,0 +1 @@
+<link rel="shortcut icon" href="/favicon.png" type="image/x-icon" /> \ No newline at end of file
diff --git a/layouts/partials/site-footer.html b/layouts/partials/site-footer.html
new file mode 100755
index 0000000..3399972
--- /dev/null
+++ b/layouts/partials/site-footer.html
@@ -0,0 +1,11 @@
+<footer class="-m-auto -border-top -em-08 -lineheight-1-3 footer -text-left">
+
+ <div class="-text-center -print-hidden"><a href="assets/tim-clulow-cv.pdf" class="download"><span class="download-icon"></span> Download this as a pdf <span class="-em-07 ">(generated using node-html-pdf)</span></a>
+ </div>
+
+ <div class="-clearfix -text-center -print-only">
+ <em>This was generated using node-html-pdf, and is rather static. <br/>Please check out the online version where possible. <a href="/urlhere">Url here.</a>
+ </em>
+ </div>
+ <em class="-clearfix -text-center lastpublished -em-07">Last Published {{ dateFormat "Monday, Jan 2, 2006" now }}, Portfolio upon request.</em>
+</footer> \ No newline at end of file
diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html
new file mode 100755
index 0000000..ccc44c4
--- /dev/null
+++ b/layouts/partials/site-header.html
@@ -0,0 +1,2 @@
+<div class="header">
+</div> \ No newline at end of file
diff --git a/layouts/partials/site-navigation.html b/layouts/partials/site-navigation.html
new file mode 100644
index 0000000..e37e6d6
--- /dev/null
+++ b/layouts/partials/site-navigation.html
@@ -0,0 +1,14 @@
+<nav role="navigation">
+ {{ if .Site.Menus.main }}
+ <ul>
+ {{ $currentPage := . }}
+ {{ range .Site.Menus.main }}
+ <li class="{{if $currentPage.IsMenuCurrent "main" . }} selected{{end}}">
+ <a href="{{ .URL }}" title="{{ .Name }}">
+ {{ .Name }}
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ end }}
+</nav> \ No newline at end of file
diff --git a/layouts/robots.txt b/layouts/robots.txt
new file mode 100644
index 0000000..b18c6e9
--- /dev/null
+++ b/layouts/robots.txt
@@ -0,0 +1,7 @@
+User-agent: *
+# robotstxt.org - if ENV production variable is false robots will be disallowed.
+{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
+ Disallow:
+{{ else }}
+ Disallow: /
+{{ end }}
diff --git a/layouts/shortcodes/br.html b/layouts/shortcodes/br.html
new file mode 100644
index 0000000..4bbea23
--- /dev/null
+++ b/layouts/shortcodes/br.html
@@ -0,0 +1 @@
+<br/> \ No newline at end of file
diff --git a/layouts/shortcodes/column.html b/layouts/shortcodes/column.html
new file mode 100644
index 0000000..6128a22
--- /dev/null
+++ b/layouts/shortcodes/column.html
@@ -0,0 +1,3 @@
+<div class="col {{ .Get 0 }} {{ .Get 1 }}">
+ {{.Inner}}
+</div> \ No newline at end of file
diff --git a/layouts/shortcodes/dd.html b/layouts/shortcodes/dd.html
new file mode 100644
index 0000000..cbf5228
--- /dev/null
+++ b/layouts/shortcodes/dd.html
@@ -0,0 +1,8 @@
+{{ $str := print .Inner }}
+{{ $str := replace $str "<ul>" "<dl>"}}
+{{ $str := replace $str "</ul>" "</dl>"}}
+{{ $str := replace $str "<ol>\n<li>" "<dd>" }}
+{{ $str := replace $str "</li>\n</ol>" "</dd>" }}
+{{ $str := replace $str "<li>" "<dt>" }}
+{{ $str := replace $str "</li>" "</dt>" }}
+{{ markdownify $str }} \ No newline at end of file
diff --git a/layouts/shortcodes/grid.html b/layouts/shortcodes/grid.html
new file mode 100644
index 0000000..ff1cca2
--- /dev/null
+++ b/layouts/shortcodes/grid.html
@@ -0,0 +1,3 @@
+<div class="grid">
+ {{.Inner}}
+</div> \ No newline at end of file
diff --git a/layouts/shortcodes/printonly.html b/layouts/shortcodes/printonly.html
new file mode 100644
index 0000000..03e3cf8
--- /dev/null
+++ b/layouts/shortcodes/printonly.html
@@ -0,0 +1,3 @@
+<div class="-print-only">
+ {{.Inner}}
+</div> \ No newline at end of file