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

github.com/Vimux/mainroad.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimux <vimux@protonmail.com>2019-06-18 19:16:15 +0300
committervimux <vimux@protonmail.com>2019-06-18 19:16:15 +0300
commit2be21f97cbe8bec76099f76045c9c1d4e8207dc0 (patch)
tree798503e78b9a4afe9cbcb94336d07cffbb1e807e /layouts
parent44f86110d3476ede0a7e14aa17a73be62aa66ce9 (diff)
Fix formatting
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html2
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/partials/menu.html4
-rw-r--r--layouts/partials/post_meta/date.html8
-rw-r--r--layouts/partials/post_nav.html4
5 files changed, 10 insertions, 10 deletions
diff --git a/layouts/404.html b/layouts/404.html
index cd5dea1..c97f9ae 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -2,7 +2,7 @@
<main class="main" role="main">
<div class="warning">
<h1 class="warning__headline">{{ T "404_title" }}</h1>
- <p class="warning__text">{{ T "404_text" }} <a href="{{ "" | relLangURL }}">{{ T "404_linktext" }}</a>.</p>
+ <p class="warning__text">{{ T "404_text" }} <a href="{{ "" | relLangURL }}">{{ T "404_linktext" }}</a>.</p>
</div>
</main>
{{ end }} \ No newline at end of file
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index fabad2e..b1f71a9 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ block "title" . }}{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}{{ end }}</title>
<script>(function(d,e){d[e]=d[e].replace("no-js","js");})(document.documentElement,"className");</script>
- <meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{else}}{{ .Params.Description }}{{end}}">
+ <meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Params.Description }}{{ end }}">
{{ if .Site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end }}
{{ if .Site.Params.twitter_cards }}{{ template "_internal/twitter_cards.html" . }}{{ end }}
<link rel="dns-prefetch" href="//fonts.googleapis.com">
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index b0da1e2..529a825 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -6,8 +6,8 @@
<ul class="menu__list">
{{- $currentNode := . }}
{{- range sort .Site.Menus.main }}
- {{- if .Name}}
- <li class="menu__item{{if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }} menu__item--active{{end}}">
+ {{- if .Name }}
+ <li class="menu__item{{ if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }} menu__item--active{{ end }}">
<a class="menu__link" href="{{ .URL }}">{{ .Name }}</a>
</li>
{{- end }}
diff --git a/layouts/partials/post_meta/date.html b/layouts/partials/post_meta/date.html
index 2e5f9f0..a1a1d76 100644
--- a/layouts/partials/post_meta/date.html
+++ b/layouts/partials/post_meta/date.html
@@ -1,9 +1,9 @@
{{- if not .Date.IsZero }}
<div class="meta__item-datetime meta__item">
{{ partial "svg/time.svg" (dict "class" "meta__icon") }}
- <time class="meta__text" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</time>
-{{- if ne .Date .Lastmod }}
- <time class="meta__text" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05" }}"> ({{ T "meta_lastmod" }}: {{.Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006")}})</time>
-{{- end }}
+ <time class="meta__text" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format ( .Site.Params.dateformat | default "January 02, 2006") }}</time>
+ {{- if ne .Date .Lastmod }}
+ <time class="meta__text" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05" }}"> ({{ T "meta_lastmod" }}: {{ .Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006") }})</time>
+ {{- end }}
</div>
{{ end -}} \ No newline at end of file
diff --git a/layouts/partials/post_nav.html b/layouts/partials/post_nav.html
index 9646ab8..1d4e9e4 100644
--- a/layouts/partials/post_nav.html
+++ b/layouts/partials/post_nav.html
@@ -3,12 +3,12 @@
<nav class="post-nav flex">
{{- if .PrevInSection }}
<div class="post-nav__item post-nav__item--prev">
- <a class="post-nav__link" href="{{.PrevInSection.RelPermalink}}" rel="prev"><span class="post-nav__caption">«&thinsp;{{ T "post_nav_prev" }}</span><p class="post-nav__post-title">{{.PrevInSection.Title}}</p></a>
+ <a class="post-nav__link" href="{{ .PrevInSection.RelPermalink }}" rel="prev"><span class="post-nav__caption">«&thinsp;{{ T "post_nav_prev" }}</span><p class="post-nav__post-title">{{ .PrevInSection.Title }}</p></a>
</div>
{{- end }}
{{- if .NextInSection }}
<div class="post-nav__item post-nav__item--next">
- <a class="post-nav__link" href="{{.NextInSection.RelPermalink}}" rel="next"><span class="post-nav__caption">{{ T "post_nav_next" }}&thinsp;»</span><p class="post-nav__post-title">{{.NextInSection.Title}}</p></a>
+ <a class="post-nav__link" href="{{ .NextInSection.RelPermalink }}" rel="next"><span class="post-nav__caption">{{ T "post_nav_next" }}&thinsp;»</span><p class="post-nav__post-title">{{ .NextInSection.Title }}</p></a>
</div>
{{- end }}
</nav>