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

github.com/ExchangeRate-API/strange-case.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid M <565357+David-N55@users.noreply.github.com>2021-03-04 15:57:49 +0300
committerGitHub <noreply@github.com>2021-03-04 15:57:49 +0300
commit3ea1d7d50bd0c1a0fa50747ec012a845d59810a3 (patch)
tree0ab2d9d28e417f95328bf72836607865fb7ac62a /layouts
parent26404ab591859b728b677f00b31e2d42f6775311 (diff)
parentaa133bcfe83440b629d827306f04183fe3ac5c23 (diff)
Merge pull request #14 from jkaye2012/masterHEADmaster
Fix deprecation warnings and correct README
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/header.html6
-rw-r--r--layouts/partials/sidebar-content.html28
3 files changed, 21 insertions, 15 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 26fec55..a97dfa8 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -13,7 +13,7 @@
<div class="post-heading">
<h1>{{ .Title }}</h1>
- <span class="post-date"><a href="{{ .Permalink }}"># {{ .Date.Format "Jan 2, 2006" }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</a></span>
+ <span class="post-date"># {{ .Date.Format "Jan 2, 2006" }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</span>
</div>
{{ .Content }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 34377c7..e76b8ed 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
- {{ .Hugo.Generator }}
+ {{ hugo.Generator }}
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>{{ .Title }} - {{ .Site.Params.description }}</title>
@@ -24,6 +24,6 @@
{{ "<![endif]-->" | safeHTML }}
<!-- RSS -->
- <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+ <link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
</head>
-<body class="{{ .Site.Params.colorScheme }}"> \ No newline at end of file
+<body class="{{ .Site.Params.colorScheme }}">
diff --git a/layouts/partials/sidebar-content.html b/layouts/partials/sidebar-content.html
index a76501d..6f1343d 100644
--- a/layouts/partials/sidebar-content.html
+++ b/layouts/partials/sidebar-content.html
@@ -10,20 +10,26 @@
</div>
{{ end }}
+ <ul class="sidebar-menus sidebar-icons">
+ {{ range .Site.Menus.icons }}
+ <li><a href="{{.URL}}">{{ .Post }}</a></li>
+ {{end}}
+ </ul>
+
<ul class="sidebar-menus">
- {{ range .Site.Menus.main }}
- <li>&#187; <a href="{{.URL}}">{{ .Name }}</a> {{ .Post }}</li>
- {{end}}
- </ul>
+ {{ range .Site.Menus.main }}
+ <li>&#187; <a href="{{.URL}}">{{ .Name }}</a>{{ .Post }}</li>
+ {{end}}
+ </ul>
<div class="sidebar-recent hidden-xs">
- <p>Recent Posts:</p>
- <ul>
- {{ range first 5 .Site.Pages }}
- <li><a href="{{.Permalink}}">{{ .Title }}</a></li>
- {{ end }}
- </ul>
- </div>
+ <p>Recent Posts:</p>
+ <ul>
+ {{ range first 5 (where .Site.RegularPages "Section" "posts") }}
+ <li><a href="{{.Permalink}}">{{ .Title }}</a></li>
+ {{ end }}
+ </ul>
+ </div>
{{ if .Site.Params.contact_email }}
<div class="sidebar-contact">