Skip to content

Commit

Permalink
Improve accessability
Browse files Browse the repository at this point in the history
  • Loading branch information
sudorandom committed May 18, 2024
1 parent 4c40808 commit 8edc915
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion content/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="main-wrapper">
<div class="main-box main-box-light">
<h1>Welcome! <small><a href="/random"><i class="fa-solid fa-dice"></i></a></small></h1>
<h1>Welcome! <small><a href="/random" aria-label="Go to a random page"><i class="fa-solid fa-dice"></i></a></small></h1>
<p>
Hey, I'm <strong>Kevin</strong>. I'm a backend software engineer from Texas, living and working in Copenhagen, Denmark. I currently work for <a href="https://sybogames.com/" target="_blank">SYBO</a>. By the way, none of this content represents SYBO in any way.
</p>
Expand Down
8 changes: 4 additions & 4 deletions layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ <h1 class="post-title">
{{ if .Lastmod }}
{{ if not (eq .Lastmod .Date )}}
{{- if .GitInfo }}
<span><a href="{{ .Site.Params.gitUrl -}}{{ .GitInfo.Hash }}" target="_blank" rel="noopener"><i class="fa-solid fa-code-commit"></i></a></span>
<span><a href="{{ .Site.Params.gitUrl -}}{{ .GitInfo.Hash }}" target="_blank" rel="noopener" aria-label="Latest git commit"><i class="fa-solid fa-code-commit"></i></a></span>
{{- end }}
{{ end }}
{{ end }}
{{ with $toot }}
<span><a href="{{ .Url }}" target="_blank"><i class="fa-brands fa-mastodon"></i></a></span>
<span><a href="{{ .Url }}" target="_blank" aria-label="Related Mastodon Post (for commenting)"><i class="fa-brands fa-mastodon"></i></a></span>
{{ end }}
<span><a href="{{ .Permalink }}" onclick="navigator.clipboard.writeText('{{ .Permalink }}');"><i class="fa-solid fa-link"></i></a></span>
<span><a href="{{ .Permalink }}" onclick="navigator.clipboard.writeText('{{ .Permalink }}');" aria-label="Copy permalink to this post"><i class="fa-solid fa-link"></i></a></span>
</div>

{{ $cover := (.Resources.Get .Params.Cover)}}
Expand Down Expand Up @@ -130,7 +130,7 @@ <h3>See Also</h3>
{{ range .Site.RegularPages.Related . | first 4 }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
<li><a href="/random/">Go to a random page</a> <a href="/random/"><i class="fa-solid fa-dice"></i></a></li>
<li><a href="/random/">Go to a random page</a> <a href="/random/" aria-label="Go to a random page"><i class="fa-solid fa-dice"></i></a></li>
</ul>
<div class="post-info">
{{ partial "pagination-single.html" . }}
Expand Down

0 comments on commit 8edc915

Please sign in to comment.