Skip to content
Snippets Groups Projects
Commit 90d15ebc authored by micressor's avatar micressor
Browse files

Base briar template optimization

parent d16099e9
No related branches found
No related tags found
1 merge request!24Feature hugo migration
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{- partial "head.html" . -}}
<body>
<div id="wrapper">
{{- partial "header.html" . -}}
<div id="container">
<div id="content">
{{- block "main" . }}{{- end }}
</div>
</div>
{{- partial "footer.html" . -}}
{{- partial "head.html" . -}}
<body>
<div id="wrapper">
{{- partial "header.html" . -}}
<div id="container">
<div id="content">
{{- block "main" . }}{{- end }}
</div>
</body>
</div>
{{- partial "footer.html" . -}}
</div>
</body>
</html>
{{ define "main" }}
<h1>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }}</h1>
{{ range first 1 .Pages.ByDate.Reverse }}
<h3 itemprop="headline" class="blog-post-title">
<a href="{{.Permalink}}">{{.Title}}</a>
</h3>
<h1>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }}</h1>
{{ range first 1 .Pages.ByDate.Reverse }}
<h3 itemprop="headline" class="blog-post-title">
<a href="{{.Permalink}}">{{.Title}}</a>
</h3>
<p class="blog-post-meta">{{.Date.Format "2006-01-02"}}
{{ if (isset .Params "author") }}
by {{ markdownify .Params.author }}
{{ end }}
</p>
{{ end }}
{{ .Content }}
{{ if (isset .Params "author") }}
by {{ markdownify .Params.author }}
{{ end }}
</p>
{{ end }}
{{ .Content }}
{{ end }}
{{ define "main" }}
<h1>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }}</h1>
{{ range first 10 .Pages.ByDate.Reverse }}
<h3 itemprop="headline" class="blog-post-title">
<a href="{{.Permalink}}">{{.Title}}</a>
</h3>
<h1>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }}</h1>
{{ range first 10 .Pages.ByDate.Reverse }}
<h3 itemprop="headline" class="blog-post-title">
<a href="{{.Permalink}}">{{.Title}}</a>
</h3>
<p class="blog-post-meta">{{.Date.Format "2006-01-02"}}
{{ if (isset .Params "author") }}
by {{ markdownify .Params.author }}
{{ end }}
</p>
{{ end }}
{{ .Content }}
{{ if (isset .Params "author") }}
by {{ markdownify .Params.author }}
{{ end }}
</p>
{{ end }}
{{ .Content }}
{{ end }}
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ .Content }}
<h2>{{ .Title }}</h2>
{{ .Content }}
{{ end }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment