Rearchitect theme directory (#59)

* Rearchitect theme directory

* Fix symlink
This commit is contained in:
Yash Mehrotra
2021-08-14 02:41:02 +05:30
committed by GitHub
parent 8aa9fc4061
commit e8b9e86fc5
25 changed files with 1 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
{{- partial "head.html" . -}}
<body>
<script type="text/javascript">
// Immediately set theme on page load
setThemeByUserPref();
</script>
{{- partial "header.html" . -}}
<main id="content">
{{- block "main" . }}{{- end }}
</main>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@@ -0,0 +1,7 @@
{{ define "main" }}
{{ if eq .Type "page" }}
{{- partial "page.html" . -}}
{{ else }}
{{- partial "list.html" . -}}
{{ end }}
{{ end }}

View File

@@ -0,0 +1,9 @@
{{ define "main" }}
{{ if eq .Type "post" }}
{{- partial "post.html" . -}}
{{ end }}
{{ if eq .Type "page" }}
{{- partial "page.html" . -}}
{{ end }}
{{ end }}

View File

@@ -0,0 +1,17 @@
{{ define "main" }}
<div class="container tags-list">
<h1 class="list-title">Tags</h1>
<ul class="post-tags">
{{ range $.Site.Taxonomies.tags.ByCount }}
<li class="post-tag">
<a href="/tags/{{ .Name | urlize }}/">
<div class="tag-name">{{ .Name }}</div>
<div class="tag-posts-count">{{ .Count }}</div>
</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}