diff options
| author | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-10-13 21:26:24 -0400 |
|---|---|---|
| committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-10-13 21:26:24 -0400 |
| commit | cf6c17546bc40d41c169279ad7b8f60bf0888ab3 (patch) | |
| tree | 818f9bea1c1472ab3204f166a642ae05a4a71187 | |
| parent | 2545016f8d6b63b0d857fc20fdd7276d2f0fc2a9 (diff) | |
new templates, and refinements
| -rw-r--r-- | assets/css/main.css | 15 | ||||
| -rw-r--r-- | assets/fonts/.gitkeep | 0 | ||||
| -rw-r--r-- | layouts/post/single.html | 11 | ||||
| -rw-r--r-- | layouts/shortcodes/projects.html | 12 |
4 files changed, 36 insertions, 2 deletions
diff --git a/assets/css/main.css b/assets/css/main.css index c1aae11..47cb5f5 100644 --- a/assets/css/main.css +++ b/assets/css/main.css | |||
| @@ -126,4 +126,17 @@ html[data-theme="dark"] #actions button { | |||
| 126 | html[data-theme="light"] .icon, | 126 | html[data-theme="light"] .icon, |
| 127 | html[data-theme="light"] #actions button { | 127 | html[data-theme="light"] #actions button { |
| 128 | color: #24333e; | 128 | color: #24333e; |
| 129 | } \ No newline at end of file | 129 | } |
| 130 | |||
| 131 | .pills { | ||
| 132 | margin-top: 1em; | ||
| 133 | } | ||
| 134 | |||
| 135 | .pill { | ||
| 136 | background-color: #237fc0; | ||
| 137 | display: inline-block; | ||
| 138 | border-radius: .25em; | ||
| 139 | line-height: 1em; | ||
| 140 | padding: .5em .5em; | ||
| 141 | color: white; | ||
| 142 | } | ||
diff --git a/assets/fonts/.gitkeep b/assets/fonts/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/assets/fonts/.gitkeep | |||
diff --git a/layouts/post/single.html b/layouts/post/single.html index 25bfc23..2c4c23e 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html | |||
| @@ -2,10 +2,19 @@ | |||
| 2 | {{ if not .Params.dontDisclaim }} | 2 | {{ if not .Params.dontDisclaim }} |
| 3 | {{ partial "disclaimer" . }} | 3 | {{ partial "disclaimer" . }} |
| 4 | {{ end }} | 4 | {{ end }} |
| 5 | {{ with .GetTerms "categories" }} | ||
| 6 | {{ (index . 0).RelPermalink }} | ||
| 7 | {{ end }} | ||
| 5 | <hgroup> | 8 | <hgroup> |
| 6 | <h1>{{ .Title }}</h1> | 9 | <h1>{{ .Title }}</h1> |
| 7 | <h6>{{ .Date | time.Format ":date_full" }}</h6> | 10 | <h6>{{ .Date | time.Format ":date_full" }}</h6> |
| 8 | <h6>{{ .Lastmod | time.Format ":date_full" }}</h6> | 11 | {{ with .Params.categories }} |
| 12 | <div class="pills"> | ||
| 13 | {{ range $value := . }} | ||
| 14 | <a href="{{ $.Site.BaseURL }}/categories/{{ $.Site.Taxonomies.categories.path }}/{{ $value | urlize }}">{{ $value }}</a> | ||
| 15 | {{ end }} | ||
| 16 | </div> | ||
| 17 | {{ end }} | ||
| 9 | </hgroup> | 18 | </hgroup> |
| 10 | <section class="content"> | 19 | <section class="content"> |
| 11 | {{- .Content -}} | 20 | {{- .Content -}} |
diff --git a/layouts/shortcodes/projects.html b/layouts/shortcodes/projects.html new file mode 100644 index 0000000..b9cf8b5 --- /dev/null +++ b/layouts/shortcodes/projects.html | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | {{ $projects := where .Site.RegularPages "Params.categories" "intersect" (slice "projects") }} | ||
| 2 | |||
| 3 | <ul> | ||
| 4 | {{ range $projects }} | ||
| 5 | <li> | ||
| 6 | <a href="{{ .Permalink }}">{{ .Title }}</a> | ||
| 7 | {{ with .Description }} | ||
| 8 | — {{ . }} | ||
| 9 | {{ end }} | ||
| 10 | </li> | ||
| 11 | {{ end }} | ||
| 12 | </ul> \ No newline at end of file | ||
