Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/darshanbaral/mero.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/section.html')
-rw-r--r--layouts/_default/section.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
new file mode 100644
index 0000000..31d49a0
--- /dev/null
+++ b/layouts/_default/section.html
@@ -0,0 +1,28 @@
+{{ define "main" }}
+<main>
+ <div class="row row-eq-height">
+ {{ $sectionName := .Title | lower }}
+ {{ range $key, $taxonomy := .Site.Taxonomies.categories.ByCount }}
+ <div class="col-md-6 mt-3">
+ <h2>
+ <a href="/categories/{{ .Name }}/">
+ {{ .Name }}
+ </a>
+ </h2>
+ <div class="border rounded p-2">
+ {{ range where $taxonomy.Pages.ByDate "Section" $sectionName }}
+ <h4 class="ml-2">
+ <a href="{{ .Permalink }}">
+ {{ .Title }}
+ </a>
+ </h4>
+ <p class="ml-4">{{ .Description }}</p>
+ {{ end }}
+ </div>
+ </div>
+ {{ end }}
+ </div>
+</main>
+
+{{ partial "footer.html" . }}
+{{ end }}