diff options
| author | Daniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com> | 2021-09-05 02:24:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-05 11:54:00 +0530 |
| commit | 8456ad83ae93d4522df4aca50684e19527095078 (patch) | |
| tree | d2e9bca6f3f7a57ec8b2d0688282a4d1fe727063 | |
| parent | d76bc91ed0f1ad7a9dd0490905029297f4efbce3 (diff) | |
Fix button not allowed inside anchor in footer - HTML validator complaint (#551)
Move attributes to anchor and remove not required span (which was used
place of a button which was against HTML spec).
| -rw-r--r-- | layouts/partials/footer.html | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 4f7182b..391c65a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -14,12 +14,10 @@ {{- end }} {{- if (not .Site.Params.disableScrollToTop) }} -<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)"> - <button class="top-link" id="top-link" type="button" accesskey="g"> - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor"> - <path d="M12 6H0l6-6z" /> - </svg> - </button> +<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g"> + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor"> + <path d="M12 6H0l6-6z" /> + </svg> </a> {{- end }} |
