1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +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> <!DOCTYPE html>
<html lang="{{- default "" .Site.LanguageCode -}}"> <html lang="{{- default "" .Site.LanguageCode -}}">
{{- partial "head.html" . -}} {{- partial "head.html" . -}}
<body> <body>
{{- partial "header.html" . -}} {{- partial "header.html" . -}}
<main id="content"> <main id="content">
{{- block "main" . }}{{- end }} {{- block "main" . }}{{- end }}
</main> </main>
{{- partial "footer.html" . -}} {{- partial "footer.html" . -}}
</body> </body>
</html> </html>

View file

@ -19,6 +19,7 @@
<p> <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 <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> </p>
</section>
<hr> <hr>
{{ end }} {{ end }}

View file

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

View file

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

View file

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