diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.templ | 14 | ||||
-rw-r--r-- | templates/post.templ | 3 | ||||
-rw-r--r-- | templates/style.css | 8 |
3 files changed, 17 insertions, 8 deletions
diff --git a/templates/page.templ b/templates/page.templ index fb91b23..294b73e 100644 --- a/templates/page.templ +++ b/templates/page.templ @@ -1,9 +1,11 @@ package templates import ( - "io/fs" - + "context" "go.alanpearce.eu/website/internal/config" + "io" + "io/fs" + "net/url" ) var ( @@ -86,8 +88,12 @@ templ Page(site *config.Config, page PageSettings) { </html> } -func mkURL(u config.URL, path string, title string) string { - q := u.Query() +func mkURL(original config.URL, path string, title string) string { + ou := *original.URL + u := config.URL{ + URL: &ou, + } + q := url.Values{} q.Add("p", path) q.Add("t", title) u.RawQuery = q.Encode() diff --git a/templates/post.templ b/templates/post.templ index 9717b4e..1a5495c 100644 --- a/templates/post.templ +++ b/templates/post.templ @@ -1,7 +1,10 @@ package templates import ( + "context" + "io" "time" + "go.alanpearce.eu/website/internal/config" "go.alanpearce.eu/website/internal/content" ) diff --git a/templates/style.css b/templates/style.css index 84ce1ce..e9a2955 100644 --- a/templates/style.css +++ b/templates/style.css @@ -188,13 +188,13 @@ ul.h-feed li a:visited { .tags { font-size: small; -} - -.p-categories, -ul.tags { display: inline-block; padding-inline-start: 0; } +.p-categories { + padding-inline-start: 1ex; +} + .tags li { list-style: none; display: inline-block; |