forked from mirror/Mainroad
Fix formatting
This commit is contained in:
parent
44f86110d3
commit
2be21f97cb
5 changed files with 10 additions and 10 deletions
layouts
|
@ -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 }}
|
|
@ -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">
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 -}}
|
|
@ -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">« {{ 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">« {{ 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" }} »</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" }} »</span><p class="post-nav__post-title">{{ .NextInSection.Title }}</p></a>
|
||||
</div>
|
||||
{{- end }}
|
||||
</nav>
|
||||
|
|
Loading…
Add table
Reference in a new issue