From 3cf08c132cbb57826c9583852d29f90035c7b257 Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Mon, 14 Apr 2025 23:21:08 +0100 Subject: [PATCH] support links in text-based browsers This change modifies the list template to add an additional to the article header. The existing a tag uses the `entry-link` css class to make the containing article cliable by forcing `position: absolute` in combination with an empty anchor element `` This has the effect of making the entire article clickable to navigate in a graphical browser however it is not rendered in a text-based browser. To correct this the title text in the article header is wrapped in a second tag. The `entry-link` css class is not applied and default css is inherited. Closes: #1716 --- layouts/_default/list.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 81aea6e4..74b67c39 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -68,7 +68,8 @@ {{- partial "cover.html" (dict "cxt" . "IsSingle" false "isHidden" $isHidden) }}

- {{- .Title }} + + {{- .Title }} {{- if .Draft }} @@ -89,6 +90,7 @@ {{- partial "post_meta.html" . -}} {{- end }} + {{- end }}