From d7da16ecfa5cadb643df78694db44963ba665cbe Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Wed, 8 Feb 2023 16:19:28 -0800 Subject: init --- layouts/_default/baseof.html | 11 +++++++++++ layouts/_default/list.html | 17 +++++++++++++++++ layouts/_default/single.html | 33 +++++++++++++++++++++++++++++++++ layouts/_default/term.html | 15 +++++++++++++++ layouts/_default/terms.html | 20 ++++++++++++++++++++ 5 files changed, 96 insertions(+) create mode 100755 layouts/_default/baseof.html create mode 100755 layouts/_default/list.html create mode 100755 layouts/_default/single.html create mode 100755 layouts/_default/term.html create mode 100755 layouts/_default/terms.html (limited to 'layouts/_default') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100755 index 0000000..b941097 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "header.html" . -}} + +
+ {{- partial "head.html" . -}} + {{- block "main" . }}{{- end }} + {{- partial "footer.html" . -}} +
+ + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100755 index 0000000..41a4c6f --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,17 @@ +{{ define "main" }} +{{ if isset .Data "Term" }} +

Entries tagged - "{{ .Data.Term }}"

+{{ else }} +

All articles

+{{ end }} + + +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100755 index 0000000..44222d4 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,33 @@ +{{ define "main" }} +
+
+
+

{{ .Title }}

+ {{ if .Date }}
Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} DRAFT {{ end }}
{{ end }} +
+ {{ if isset .Params "tldr" }} +
+ tl;dr: + {{ .Params.tldr }} +
{{ end }} + +
+ {{ .Content }} +
+ + +
+
+{{ end }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html new file mode 100755 index 0000000..9648bf3 --- /dev/null +++ b/layouts/_default/term.html @@ -0,0 +1,15 @@ + + +{{ partial "header.html" . }} + + +
+ {{ partial "head.html" . }} + +

All tags

+
+ + {{ partial "footer.html" . }} + + + \ No newline at end of file diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100755 index 0000000..fea9c2f --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,20 @@ +{{ define "main" }} +

All tags

+ +{{ $biggest := 1 }} +{{ $smallest := 1 }} +{{ $max := 3 }} +{{ $min := 1 }} +{{ $size := $min }} + +{{ $data := .Data }} +
+ +
+{{ end }} -- cgit v1.2.3