diff options
Diffstat (limited to 'site/layouts')
| -rw-r--r-- | site/layouts/_default/baseof.html | 9 | ||||
| -rw-r--r-- | site/layouts/_default/li.html | 5 | ||||
| -rw-r--r-- | site/layouts/_default/list.html | 5 | ||||
| -rw-r--r-- | site/layouts/_default/single.html | 9 | ||||
| -rw-r--r-- | site/layouts/index.html | 6 | ||||
| -rw-r--r-- | site/layouts/partials/head.html | 46 | ||||
| -rw-r--r-- | site/layouts/post/single.html | 6 | ||||
| -rw-r--r-- | site/layouts/section/contact.html | 6 | ||||
| -rw-r--r-- | site/layouts/section/products.html | 5 | ||||
| -rw-r--r-- | site/layouts/section/values.html | 6 |
10 files changed, 50 insertions, 53 deletions
diff --git a/site/layouts/_default/baseof.html b/site/layouts/_default/baseof.html new file mode 100644 index 0000000..c068832 --- /dev/null +++ b/site/layouts/_default/baseof.html @@ -0,0 +1,9 @@ +<!doctype html> +<html lang="en"> + {{ partial "head" . }} + <body class="sans-serif"> + {{ partial "nav" . }} + {{ block "main" . }}{{ end }} + {{ partial "footer" . }} + </body> +</html>
\ No newline at end of file diff --git a/site/layouts/_default/li.html b/site/layouts/_default/li.html index e5fca8e..e3d57de 100644 --- a/site/layouts/_default/li.html +++ b/site/layouts/_default/li.html @@ -1,9 +1,6 @@ <a href="{{ .Permalink }}" class="no-underline pa3 bg-grey-1 br1 mb2 db raise w-100"> - - <h2 class="f3 b lh-title mb1 primary">{{ .Title }}</h2 - > + <h2 class="f3 b lh-title mb1 primary">{{ .Title }}</h2> <p class="mid-gray lh-title mb2">{{ .Date.Format "Mon, Jan 2, 2006" }}</p> <p class="mb0">{{ .Description }}</p> <p class="link b dib black mb0">Read more →</p> - </a> diff --git a/site/layouts/_default/list.html b/site/layouts/_default/list.html index 33d722a..c23fa0c 100644 --- a/site/layouts/_default/list.html +++ b/site/layouts/_default/list.html @@ -1,5 +1,4 @@ -{{ partial "head" . }} -{{ partial "nav" . }} +{{ define "main" }} {{ partial "jumbotron" (dict "imageUrl" "/img/blog-index.jpg" "title" "Latest stories") }} @@ -13,4 +12,4 @@ </ul> </div> -{{ partial "footer" . }} +{{end}}
\ No newline at end of file diff --git a/site/layouts/_default/single.html b/site/layouts/_default/single.html index 2126d61..159e454 100644 --- a/site/layouts/_default/single.html +++ b/site/layouts/_default/single.html @@ -1,5 +1,6 @@ -{{ partial "head" . }} -{{ partial "nav" . }} +{{ define "main" }} + {{ partial "jumbotron" (dict "imageUrl" "/img/7.jpg" "title" "This is where the heading goes" "subtitle" "This is where the subtitle goes") }} - {{ .Content }} -{{ partial "footer" . }} +{{ .Content }} + +{{ end }} diff --git a/site/layouts/index.html b/site/layouts/index.html index a21df24..d4e1902 100644 --- a/site/layouts/index.html +++ b/site/layouts/index.html @@ -1,6 +1,4 @@ -{{ partial "head" . }} - -{{ partial "nav" . }} +{{ define "main" }} {{ partial "jumbotron" (dict "imageUrl" .Params.image "title" .Title "subtitle" .Params.subtitle) }} @@ -12,4 +10,4 @@ {{ partial "blog" . }} -{{ partial "footer" . }} +{{ end }} diff --git a/site/layouts/partials/head.html b/site/layouts/partials/head.html index 9e75f44..f65ee56 100644 --- a/site/layouts/partials/head.html +++ b/site/layouts/partials/head.html @@ -1,31 +1,27 @@ -<!doctype html> -<html lang="en-US"> - <head> +<head> - <title>{{ .Title }} | Kaldi</title> - <link rel="stylesheet" href="/css/main.css"/> + <title>{{ .Title }} | Kaldi</title> + <link rel="stylesheet" href="/css/main.css" /> - <meta charset="utf-8"> - <meta http-equiv="x-ua-compatible" content="ie=edge"> - <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta charset="utf-8"> + <meta http-equiv="x-ua-compatible" content="ie=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> - <link href="https://fonts.googleapis.com/css?family=Nunito+Sans:400,700" rel="stylesheet"> + <link href="https://fonts.googleapis.com/css?family=Nunito+Sans:400,700" rel="stylesheet"> - <!-- Favicons --> - <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png"> - <link rel="icon" type="image/png" href="/img/favicon-32x32.png" sizes="32x32"> - <link rel="icon" type="image/png" href="/img/favicon-16x16.png" sizes="16x16"> - <link rel="manifest" href="/manifest.json"> - <link rel="mask-icon" href="/img/safari-pinned-tab.svg" color="#ff4400"> - <meta name="theme-color" content="#fff"> + <!-- Favicons --> + <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png"> + <link rel="icon" type="image/png" href="/img/favicon-32x32.png" sizes="32x32"> + <link rel="icon" type="image/png" href="/img/favicon-16x16.png" sizes="16x16"> + <link rel="manifest" href="/manifest.json"> + <link rel="mask-icon" href="/img/safari-pinned-tab.svg" color="#ff4400"> + <meta name="theme-color" content="#fff"> - <!-- Open Graph --> - <meta property="og:type" content="business.business"> - <meta property="og:title" content="Kaldi | Great coffee with a conscience"> - <meta property="og:url" content="/"> - <meta property="og:image" content="/img/og-image.jpg"> + <!-- Open Graph --> + <meta property="og:type" content="business.business"> + <meta property="og:title" content="Kaldi | Great coffee with a conscience"> + <meta property="og:url" content="/"> + <meta property="og:image" content="/img/og-image.jpg"> - <script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script> - </head> - - <body class="sans-serif"> + <script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script> +</head>
\ No newline at end of file diff --git a/site/layouts/post/single.html b/site/layouts/post/single.html index 75a355f..bc34c45 100644 --- a/site/layouts/post/single.html +++ b/site/layouts/post/single.html @@ -1,5 +1,5 @@ -{{ partial "head" . }} -{{ partial "nav" . }} +{{ define "main" }} + <div class="mw6 center ph3 pv4"> <h1 class="f2 lh-title b mb3">{{.Title}}</h1> <div class="flex justify-between grey-3"> @@ -12,4 +12,4 @@ {{ .Content }} </div> </div> -{{ partial "footer" . }} +{{ end }} diff --git a/site/layouts/section/contact.html b/site/layouts/section/contact.html index 205d92e..8b5d45c 100644 --- a/site/layouts/section/contact.html +++ b/site/layouts/section/contact.html @@ -1,6 +1,4 @@ -{{ partial "head" . }} - -{{ partial "nav" . }} +{{ define "main" }} <div class="ph3 bg-off-white"> <div class="center mw6 pv3"> @@ -23,4 +21,4 @@ </div> </div> -{{ partial "footer" . }} +{{ end }} diff --git a/site/layouts/section/products.html b/site/layouts/section/products.html index bf430ca..6a1243b 100644 --- a/site/layouts/section/products.html +++ b/site/layouts/section/products.html @@ -1,5 +1,4 @@ -{{ partial "head" . }} -{{ partial "nav" . }} +{{ define "main" }} {{ partial "jumbotron" (dict "imageUrl" .Params.image "title" .Title) }} @@ -29,4 +28,4 @@ {{ partial "table" .Params.pricing }} -{{ partial "footer" . }} +{{ end }} diff --git a/site/layouts/section/values.html b/site/layouts/section/values.html index 9b6fa13..93913e5 100644 --- a/site/layouts/section/values.html +++ b/site/layouts/section/values.html @@ -1,5 +1,5 @@ -{{ partial "head" . }} -{{ partial "nav" . }} +{{ define "main" }} + {{ partial "jumbotron" (dict "imageUrl" .Params.image "title" .Title) }} <div class="mw7 center ph3 pt4"> @@ -14,4 +14,4 @@ </div> -{{ partial "footer" . }} +{{ end }} |
