zwbetz-gh 3 жил өмнө
parent
commit
d5ffe2f369

+ 1 - 1
assets/js/template-dom-scripts.js

@@ -70,7 +70,7 @@
 
         var link = document.createElement('a');
         link.setAttribute('href', '#' + id);
-        link.innerHTML = '<svg aria-hidden="true" class="link-icon" viewBox="0 0 50 50" focusable="false"> <use xlink:href="#link"></use> </svg>';
+        link.innerHTML = '<svg aria-hidden="true" class="link-icon" viewBox="0 0 50 50" focusable="false"> <use href="#link"></use> </svg>';
 
         container.appendChild(link);
 

+ 0 - 0
exampleSite/.hugo_build.lock


+ 1 - 1
layouts/_default/list.html

@@ -20,7 +20,7 @@
             viewBox="0 0 40 50"
             focusable="false"
           >
-            <use xlink:href="#bookmark"></use>
+            <use href="#bookmark"></use>
           </svg>
           {{ .Title }}
         </a>

+ 1 - 1
layouts/_default/terms.html

@@ -7,7 +7,7 @@
           <h2>
             <a href="{{ .Page.RelPermalink }}">
               <svg class="tag-icon" aria-hidden="true" viewBox="0 0 177.16535 177.16535" focusable="false">
-                <use xlink:href="#tag"></use>
+                <use href="#tag"></use>
               </svg>
               {{ printf "(%d) %s" .Count .Page.Title }}
             </a>

+ 2 - 2
layouts/partials/nav.html

@@ -2,7 +2,7 @@
   <h2 class="vh">{{ T "nav_main_navigation" }}</h2>
   <button id="menu-button" aria-expanded="false">
     <svg viewBox="0 0 50 50" aria-hidden="true" focusable="false">
-      <use xlink:href="#menu"></use>
+      <use href="#menu"></use>
     </svg>
     {{ T "nav_button_menu" }}
   </button>
@@ -16,7 +16,7 @@
       {{ $active = or $active (and (eq .Name "Tags") (eq $current.Section "tags")) }}
       <a href="{{ .URL }}" {{ if $active }}aria-current="page"{{ end }}>
         <svg class="bookmark-icon" aria-hidden="true" focusable="false" viewBox="0 0 40 50">
-          <use xlink:href="#bookmark"></use>
+          <use href="#bookmark"></use>
         </svg>
         <span class="text">{{ .Name }}</span>
       </a>

+ 2 - 2
layouts/post/single.html

@@ -2,7 +2,7 @@
   <main id="main">
     <h1>
       <svg class="bookmark-icon" aria-hidden="true" viewBox="0 0 40 50" focusable="false">
-        <use xlink:href="#bookmark"></use>
+        <use href="#bookmark"></use>
       </svg>
       {{ .Title }}
     </h1>
@@ -26,7 +26,7 @@
           {{ range . }}
             <li>
               <svg class="tag-icon" aria-hidden="true" viewBox="0 0 177.16535 177.16535" focusable="false">
-                <use xlink:href="#tag"></use>
+                <use href="#tag"></use>
               </svg>
               {{ $href := print ("tags/" | relLangURL) (. | urlize) "/" }}
               <a href="{{ $href }}">{{ . }}</a>

+ 1 - 1
layouts/shortcodes/note.html

@@ -1,7 +1,7 @@
 <aside aria-label="note" class="note">
   <div>
     <svg class="sign" aria-hidden="true" viewBox="0 0 41.667306 41.66729" focusable="false">
-      <use xlink:href="#info"></use>
+      <use href="#info"></use>
     </svg>
     {{ .Inner | markdownify }}
   </div>

+ 1 - 1
layouts/shortcodes/principles.html

@@ -9,7 +9,7 @@
         <strong>
           <a href="https://inclusivedesignprinciples.org#{{ .title | urlize }}">
             <svg class="balloon-icon" viewBox="0 0 141.73228 177.16535" aria-hidden="true" focusable="false">
-              <use xlink:href="#balloon"></use>
+              <use href="#balloon"></use>
             </svg>
             {{ .title }}
           </a>:

+ 1 - 1
layouts/shortcodes/tested.html

@@ -5,7 +5,7 @@
   <tr>
     <th scope="row">
       <svg viewBox="0 0 177.16535 177.16535" focusable="false" aria-hidden="true">
-        <use xlink:href="#tick"></use>
+        <use href="#tick"></use>
       </svg>
       Tested using
     </th>

+ 1 - 1
layouts/shortcodes/warning.html

@@ -1,7 +1,7 @@
 <aside aria-label="warning" class="note warning">
   <div>
     <svg class="sign" aria-hidden="true" viewBox="0 0 48.430474 41.646302" focusable="false">
-      <use xlink:href="#warning"></use>
+      <use href="#warning"></use>
     </svg>
     {{ .Inner | markdownify }}
   </div>

+ 1 - 1
layouts/shortcodes/wcag.html

@@ -8,7 +8,7 @@
       <li>
         <strong><a href="{{ .url }}">
           <svg class="wcag-icon" viewBox="0 0 127.09899 67.763" aria-hidden="true" focusable="false">
-            <use xlink:href="#w3c"></use>
+            <use href="#w3c"></use>
           </svg>
           {{ .ref_id }} {{ .title }}</a> (level {{ .level }}){{ if $descriptions }}:{{ end }}
         </strong>