Skip to content

support links in text-based browsers #1725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion layouts/_default/archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ <h3 class="archive-month-header" id="{{ $year }}-{{ .Key }}">
{{- 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">
Expand All @@ -69,6 +70,7 @@ <h3 class="archive-entry-title entry-hint-parent">
<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 }}
Expand Down
4 changes: 3 additions & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ <h1>
{{- partial "cover.html" (dict "cxt" . "IsSingle" false "isHidden" $isHidden) }}
<header class="entry-header">
<h2 class="entry-hint-parent">
{{- .Title }}
<!-- This link makes the title text clickable in text mode -->
<a aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}">{{- .Title }}</a>
{{- if .Draft }}
<span class="entry-hint" title="Draft">
<svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" fill="currentColor">
Expand All @@ -89,6 +90,7 @@ <h2 class="entry-hint-parent">
{{- partial "post_meta.html" . -}}
</footer>
{{- end }}
<!-- 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>
</article>
{{- end }}
Expand Down