diff options
author | austingebauer <gebauer.austin@gmail.com> | 2020-01-04 08:55:57 +0300 |
---|---|---|
committer | austingebauer <gebauer.austin@gmail.com> | 2020-01-04 08:55:57 +0300 |
commit | e69e241d119fcc04c34c2b4f5dc2a4e8b29673fb (patch) | |
tree | 80f5af3d21d7d3c42672eaa1ab040017a729ad0b | |
parent | a3d6241454e3d0d70da67de64849c1a9a97f38b2 (diff) |
feat: category styles; chore: update hugo to v0.62.1 with goldmark renderer
-rw-r--r-- | layouts/_default/list.html | 10 | ||||
-rw-r--r-- | layouts/categories/list.html | 20 | ||||
-rw-r--r-- | layouts/tag/list.html | 19 | ||||
-rw-r--r-- | node_modules/node-sass/vendor/darwin-x64-72/binding.node | bin | 0 -> 3168072 bytes | |||
-rw-r--r-- | package-lock.json | 2 |
5 files changed, 38 insertions, 13 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4f0ad61..4b64981 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,12 +1,14 @@ {{ define "main" }} - <div class="pl-sm-4 ml-sm-5 pt-2"> - <ul> + <div class="pl-sm-4 ml-sm-5"> + <ul class="list-unstyled"> {{ range .Pages }} <li> <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}"> - {{ .Date.Format "Jan 2, 2006" }} + {{ .Date.Format "Jan 2 2006" }} </time> - <a href="{{ .URL | relURL }}">{{ if .Draft }}DRAFT: {{end}}{{ .Title }}</a> + <a href="{{ .URL | relURL }}"> + {{ if .Draft }}DRAFT: {{end}}{{ .Title }} + </a> </li> {{ end }} </ul> diff --git a/layouts/categories/list.html b/layouts/categories/list.html new file mode 100644 index 0000000..28ef6e3 --- /dev/null +++ b/layouts/categories/list.html @@ -0,0 +1,20 @@ +{{ define "main" }} +<div class="pl-sm-4 ml-sm-5"> + <h4>{{ if eq .Name "Categories" }} Categories {{ else }} Category - {{ .Name }} {{ end }}</h4> + {{ $outerName := .Name }} + <ul class="list-unstyled"> + {{ range .Pages }} + <li> + {{ if ne $outerName "Categories" }} + <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}"> + {{ .Date.Format "Jan 2 2006" }} + </time> + {{ end }} + <a href="{{ .URL | relURL }}"> + {{ .Title }} + </a> + </li> + {{ end }} + </ul> +</div> +{{ end }} diff --git a/layouts/tag/list.html b/layouts/tag/list.html index 189526f..8ae303d 100644 --- a/layouts/tag/list.html +++ b/layouts/tag/list.html @@ -1,9 +1,12 @@ {{ define "main" }} - <ul> - {{ range $.Site.Taxonomies.tags.ByCount }} - <li> - <a href="/tags{{ .Name | relURL }}">{{ .Name }}</a> - {{ .Count }} Articles - </li> - {{ end }} - </ul> -{{ end }}
\ No newline at end of file + <div class="pl-sm-4 ml-sm-5"> + <h4>Tags</h4> + <ul class="list-unstyled"> + {{ range $.Site.Taxonomies.tags.ByCount }} + <li> + {{ .Count }} Articles - <a href="/tags{{ .Name | relURL }}">{{ .Name }}</a> + </li> + {{ end }} + </ul> + </div> +{{ end }} diff --git a/node_modules/node-sass/vendor/darwin-x64-72/binding.node b/node_modules/node-sass/vendor/darwin-x64-72/binding.node Binary files differnew file mode 100644 index 0000000..6b4a9f9 --- /dev/null +++ b/node_modules/node-sass/vendor/darwin-x64-72/binding.node diff --git a/package-lock.json b/package-lock.json index 264a1a3..bce02a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "ag", + "name": "hugo-dev-theme", "version": "1.0.0", "lockfileVersion": 1, "requires": true, |