diff options
| author | Ariel Costas <94913521+arielcostas@users.noreply.github.com> | 2024-02-02 23:49:23 +0100 |
|---|---|---|
| committer | Ariel Costas <94913521+arielcostas@users.noreply.github.com> | 2024-02-02 23:49:23 +0100 |
| commit | c7f8158cb95cf2f0a5d95036a725f7d74f9b0067 (patch) | |
| tree | 856883d732281841596bfb6bc3cd7c2e306cd8d4 | |
| parent | bf0e37f94d9f75327bdadc8ec2f1f935536c07be (diff) | |
Make dates monospaced
| -rw-r--r-- | assets/css/base.scss | 4 | ||||
| -rw-r--r-- | assets/css/root.scss | 2 | ||||
| -rw-r--r-- | layouts/home/list.html | 5 | ||||
| -rw-r--r-- | static/icons/menu-2.svg | 1 |
4 files changed, 10 insertions, 2 deletions
diff --git a/assets/css/base.scss b/assets/css/base.scss index ddfed8f..bc12617 100644 --- a/assets/css/base.scss +++ b/assets/css/base.scss @@ -39,4 +39,8 @@ a { #main-footer-separator { flex-grow: 1; flex-shrink: 0; +} + +li > time { + font-family: var(--font-mono); }
\ No newline at end of file diff --git a/assets/css/root.scss b/assets/css/root.scss index d6e46c5..225b3f9 100644 --- a/assets/css/root.scss +++ b/assets/css/root.scss @@ -1,7 +1,7 @@ :root { --font-heading: 'Aleo', "Roboto Slab", "Times New Roman", serif; --font-body: 'Rubik', Helvetica, sans-serif; - --font-mono: 'Roboto Mono', "Ubuntu Mono", "Fira Code", "Courier New", "Consolas", , monospace; + --font-mono: 'Roboto Mono', "Ubuntu Mono", "Fira Code", "Consolas" , monospace; font-size: 16px; font-weight: 400; diff --git a/layouts/home/list.html b/layouts/home/list.html index af3dbeb..4389e28 100644 --- a/layouts/home/list.html +++ b/layouts/home/list.html @@ -10,7 +10,10 @@ <ul> {{ range .Pages }} - <li>{{ .PublishDate.Format "02/01" }} <a href="{{ .RelPermalink }}">{{ .Title }}</a></li> + <li> + <time datetime="{{ .PublishDate.Format " 2006-01-02T15:04:05-07:00"}}">{{ .PublishDate.Format "02/01" }}</time> + <a href="{{ .RelPermalink }}">{{ .Title }}</a> + </li> {{ end }} </ul> {{ end }} diff --git a/static/icons/menu-2.svg b/static/icons/menu-2.svg new file mode 100644 index 0000000..9ff36f5 --- /dev/null +++ b/static/icons/menu-2.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-menu-2" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6l16 0" /><path d="M4 12l16 0" /><path d="M4 18l16 0" /></svg>
\ No newline at end of file |
