mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-13 14:44:28 -04:00
make archive links clickable on text-based browsers
This change makes the titles on archive lists a tags so that they are clickable in text only mode. As with the list template, no class is applied to ensure correct indentation.
This commit is contained in:
parent
3cf08c132c
commit
c05669e1fb
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,8 @@
|
|||
{{- if eq .Kind "page" }}
|
||||
<div class="archive-entry">
|
||||
<h3 class="archive-entry-title entry-hint-parent">
|
||||
{{- .Title | markdownify }}
|
||||
<!-- This link makes the title text clickable in text mode -->
|
||||
<a aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}">{{- .Title | markdownify }}</a>
|
||||
{{- if .Draft }}
|
||||
<span class="entry-hint" title="Draft">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="15" viewBox="0 -960 960 960" fill="currentColor">
|
||||
|
@ -69,6 +70,7 @@
|
|||
<div class="archive-meta">
|
||||
{{- partial "post_meta.html" . -}}
|
||||
</div>
|
||||
<!-- This link makes the entire entry clickable in a graphical browser -->
|
||||
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
|
||||
</div>
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue