1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-24 01:42:10 +00:00

Formatting

This commit is contained in:
rohan kumar 2020-11-25 00:43:39 -08:00
parent b9abb9090c
commit 0d11909002
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
5 changed files with 31 additions and 30 deletions

View file

@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="{{- default "" .Site.LanguageCode -}}">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<main id="content">
{{- block "main" . }}{{- end }}
</main>
{{- partial "footer.html" . -}}
</body>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<main id="content">
{{- block "main" . }}{{- end }}
</main>
{{- partial "footer.html" . -}}
</body>
</html>

View file

@ -19,6 +19,7 @@
<p>
<a href="mailto:~seirdy/seirdy.one@lists.sr.ht">Send an email</a> to leave a comment in the <a href="https://lists.sr.ht/~seirdy/seirdy.one-comments">mailing list</a> for seirdy.one
</p>
</section>
<hr>
{{ end }}
{{ end }}

View file

@ -1,12 +1,12 @@
<header id="banner">
<h2><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h2>
<nav>
<ul>
{{ range .Site.Menus.main.ByWeight -}}
<li>
{{ .Pre }}<a href="{{ .URL }}" title="{{ .Title }}">{{- .Name -}}</a>{{ .Post }}
</li>
{{- end }}
</ul>
</nav>
<h2><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h2>
<nav>
<ul>
{{ range .Site.Menus.main.ByWeight -}}
<li>
{{ .Pre }}<a href="{{ .URL }}" title="{{ .Title }}">{{- .Name -}}</a>{{ .Post }}
</li>
{{- end }}
</ul>
</nav>
</header>

View file

@ -1,12 +1,12 @@
<h3>Posts</h3>
<ul id="posts">
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
<li>
<time>{{ .Date.Format "Jan 2, 2006" }}</time>
<br>
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
</li>
{{- end }}
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
<li>
<time>{{ .Date.Format "Jan 2, 2006" }}</time>
<br>
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
</li>
{{- end }}
</ul>

View file

@ -1,4 +1,4 @@
<aside id="toc">
<h4>Table of Contents</h4>
{{ .Page.TableOfContents }}
<h4>Table of Contents</h4>
{{ .Page.TableOfContents }}
</aside>