nextDESIGN/layouts/index.html

58 lines
1.4 KiB
HTML
Raw Normal View History

2020-05-15 20:17:59 +02:00
{{ define "main" }}
<header>
<h1>{{ .Site.Title }}</h1>
<h3>{{ .Site.Params.about }}</h3>
2020-05-15 20:17:59 +02:00
</header>
{{ .Content }}
2021-08-18 22:34:57 +02:00
<h4>Read more from me</h3>
2020-05-15 20:17:59 +02:00
{{ with .Site.GetPage "/about" }}
<a class="btn" href="{{ .Permalink }}">More about me</a>
{{ end }}
{{ with .Site.GetPage "/blog" }}
<a class="btn" href="{{ .Permalink }}">My blog</a>
{{ end }}
{{ with .Site.GetPage "/projects" }}
<a class="btn" href="{{ .Permalink }}">My projects</a>
{{ end }}
2023-09-24 13:18:27 +02:00
{{ with .Site.Params.social.scribbles }}
<a class="btn" href="{{ . }}">My scribbles</a>
{{- end -}}
2021-08-18 22:34:57 +02:00
<h4>Find me on other places</h3>
2020-05-15 20:17:59 +02:00
{{ with .OutputFormats.Get "rss" }}
<a class="btn" href="{{ .Permalink }}">RSS Feed</a>
{{- end -}}
2020-05-15 20:17:59 +02:00
{{ with .Site.Params.social.mastodon }}
<a class="btn" href="{{ . }}">Mastodon</a>
{{- end -}}
{{ with .Site.Params.social.gitea }}
<a class="btn" href="{{ . }}">Repos on Gitea</a>
2020-05-15 20:17:59 +02:00
{{- end -}}
{{ with .Site.Params.social.gitlab }}
<a class="btn" href="{{ . }}">Repos on GitLab</a>
2020-05-15 20:17:59 +02:00
{{- end -}}
2021-08-18 22:34:57 +02:00
<h2>Latest Posts</h2>
2020-05-15 20:17:59 +02:00
{{ range first 3 .Site.RegularPages }}
<article>
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
{{ partial "list-post.html" . }}
</article>
{{ end }}
{{ with .Site.GetPage "/blog" }}
<a class="btn" href="{{ .Permalink }}">Read more posts</a>
2020-05-15 20:17:59 +02:00
{{ end }}
{{ end }}