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

github.com/damiencaselli/hugo-journal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordashdashzako <d@dashdashzako.net>2019-09-02 15:09:53 +0300
committerdashdashzako <d@dashdashzako.net>2019-09-02 15:09:53 +0300
commitb4e1e41db0381fcda470628ea7db7214724f6ce2 (patch)
tree357931742708be97201ceb69062d7a392235ebc7
parent4597ab818bcf8fc1bd42efe799ae960443fba406 (diff)
Use global hugo helper function
-rw-r--r--layouts/partials/bottom.html2
-rw-r--r--layouts/partials/top.html70
2 files changed, 36 insertions, 36 deletions
diff --git a/layouts/partials/bottom.html b/layouts/partials/bottom.html
index 2c2a85d..bc84996 100644
--- a/layouts/partials/bottom.html
+++ b/layouts/partials/bottom.html
@@ -26,7 +26,7 @@
{{- end }}
</span>
- <!-- {{ .Hugo.BuildDate }} -->
+ <!-- {{ hugo.BuildDate }} -->
</footer>
</div>
diff --git a/layouts/partials/top.html b/layouts/partials/top.html
index b63eed4..33e5ff9 100644
--- a/layouts/partials/top.html
+++ b/layouts/partials/top.html
@@ -1,44 +1,44 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
- <head>
- <meta charset="utf-8">
- {{ .Hugo.Generator }}
+<head>
+ <meta charset="utf-8">
+ {{ hugo.Generator }}
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="author" content="{{ .Site.Author.name }}">
- <meta property="og:url" content="{{ .Permalink }}">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="author" content="{{ .Site.Author.name }}">
+ <meta property="og:url" content="{{ .Permalink }}">
- {{ if .IsHome -}}
- <title>{{ .Site.Title }}</title>
- <meta property="og:title" content="{{ .Site.Title }}">
- <meta property="og:type" content="website">
- <meta name="description" content="{{ .Site.Params.description }}">
- {{- else -}}
- <title>{{ .Title }} - {{ .Site.Title }}</title>
- <meta property="og:title" content="{{ .Title }} - {{ .Site.Title }}">
- <meta property="og:type" content="article">
- <meta name="description" content="{{ .Description }}">
- {{- end }}
+ {{ if .IsHome -}}
+ <title>{{ .Site.Title }}</title>
+ <meta property="og:title" content="{{ .Site.Title }}">
+ <meta property="og:type" content="website">
+ <meta name="description" content="{{ .Site.Params.description }}">
+ {{- else -}}
+ <title>{{ .Title }} - {{ .Site.Title }}</title>
+ <meta property="og:title" content="{{ .Title }} - {{ .Site.Title }}">
+ <meta property="og:type" content="article">
+ <meta name="description" content="{{ .Description }}">
+ {{- end }}
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Arvo:400,700">
- <link rel="stylesheet" href="{{ "css/highlight.css" | relURL }}">
- <link rel="stylesheet" href="{{ "css/journal.css" | relURL }}">
- <link href="{{ "index.xml" | relURL }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Arvo:400,700">
+ <link rel="stylesheet" href="{{ "css/highlight.css" | relURL }}">
+ <link rel="stylesheet" href="{{ "css/journal.css" | relURL }}">
+ <link href="{{ "index.xml" | relURL }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
- </head>
+</head>
- <body>
- <div class="container">
+<body>
+ <div class="container">
- {{ if .IsHome -}}
- <header class="site-header">
- <h1>{{ .Site.Title }}</h1>
- <p>{{ .Site.Params.tagline }}</p>
- </header>
- {{- else -}}
- <nav class="site-nav">
- <a href="{{ .Site.BaseURL }}">Index</a>
- </nav>
- {{- end }}
+ {{ if .IsHome -}}
+ <header class="site-header">
+ <h1>{{ .Site.Title }}</h1>
+ <p>{{ .Site.Params.tagline }}</p>
+ </header>
+ {{- else -}}
+ <nav class="site-nav">
+ <a href="{{ .Site.BaseURL }}">Index</a>
+ </nav>
+ {{- end }}