[go: up one dir, main page]

Skip to content

Commit

Permalink
fix(social): W3C validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
talha131 committed Aug 22, 2019
1 parent 76a1f26 commit ec4521e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/_includes/social_links.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h4>{{ SOCIAL_PROFILE_LABEL }}</h4>
{% endif %}
{% if entry[0]|lower == 'calendar' %}
<a href="{{entry[1]}}" title="{{entry[2]}}" target="_blank" rel="nofollow">
<svg onload="w()" xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink" aria-label="Calendar" role="img" viewBox="0 0 512 512" style="font-family:monospace;text-anchor:middle;fill:#667777"><script type="text/ecmascript"><![CDATA[w=()=>{c=0;for (i in e={weekday:"long",month:"short",day:'numeric'}) document.getElementsByTagName('text')[c++].textContent=(new Date).toLocaleString(undefined,{[i]:e[i]})}]]></script> <defs><clipPath id="c"><rect width="512" height="512" rx="15%"/></clipPath></defs> <g clip-path="url(#c)"><rect width="512" height="512" fill="#dee"/><rect width="512" height="180" fill="#d34"/></g><g id="b"><circle fill="#eab" cx="384" cy="100" r="14" id="a"/><use x="43" x:href="#a"/><use x="86" x:href="#a"/></g><use y="43" x:href="#b"/><text font-size="64" x="256" y="480" id="w">Sunday</text><text fill="#fff" font-size="140" x="140" y="164" id="m">FEB</text><text font-size="256" x="256" y="400" id="d">29</text></svg>
<svg onload="w()" xmlns="http://www.w3.org/2000/svg" aria-label="Calendar" role="img" viewBox="0 0 512 512" font-family="monospace" text-anchor="middle" fill="#667777"><script type="text/ecmascript"><![CDATA[w=()=>{c=0;for (i in e={weekday:"long",month:"short",day:'numeric'}) document.getElementsByTagName('text')[c++].textContent=(new Date).toLocaleString(undefined,{[i]:e[i]})}]]></script><defs><clipPath id="c"><rect width="512" height="512" rx="15%"/></clipPath></defs><g clip-path="url(#c)"><rect width="512" height="512" fill="#dee"/><rect width="512" height="180" fill="#d34"/></g><g id="b"><circle fill="#eab" cx="384" cy="100" r="14" id="a"/><use x="43"/><use x="86"/></g><use y="43"/><text font-size="64" x="256" y="480" id="w">Sunday</text><text fill="#fff" font-size="140" x="140" y="164" id="m">FEB</text><text font-size="256" x="256" y="400" id="d">29</text></svg>
</a>
{% endif %}
{% if entry[0]|lower == 'wire' %}
Expand Down

0 comments on commit ec4521e

Please sign in to comment.