1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-04 07:40:09 +05:30

remove submodule and apply theme

This commit is contained in:
2023-07-19 15:51:46 +05:30
parent f4c5db16d2
commit 047aeb0b86
24 changed files with 904 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
{{ define "head" }}
<link rel="stylesheet" href='{{ "css/list.css" | absURL }}'>
{{ end }}
{{ define "main" }}
<main id="main" class="archive">
{{ $pages := where .Data.Pages "Type" "post" }}
{{ range $pages.GroupByDate "2006-01" }}
<div class="post-group">
<h2>{{ dateFormat "January 2006" (printf "%s-01" .Key) }}</h2>
<ul>
{{ range .Pages }}
<li>
<a class="link" href="{{ .RelPermalink }}">{{ .Title }}</a>
<time>{{ .PublishDate.Format .Site.Params.dateFormat }}</time>
</li>
{{ end }}
</ul>
</div>
{{ end }}
<div class="post-group">
<h2>...</h2>
</div>
</main>
{{ end }}