fix: correct typo in personal website URL.

This commit is contained in:
小弟调调
2025-07-01 12:37:42 +08:00
parent 43fd5a0df4
commit 1d1a5349c3

View File

@@ -15,8 +15,10 @@
</svg>
</a>
<% } %>
<% if (user.blog) { %>
<a target="_blank" href="<%=user.blog%>">
<% if (user.blog) {
const fixedUrl = /^https?:\/\//i.test(user.blog) ? user.blog : 'https://' + user.blog;
%>
<a target="_blank" href="<%=fixedUrl%>">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 20 20"><path fill="currentColor" d="M10 20a10 10 0 1 1 0-20a10 10 0 0 1 0 20m7.75-8a8.01 8.01 0 0 0 0-4h-3.82a28.81 28.81 0 0 1 0 4zm-.82 2h-3.22a14.44 14.44 0 0 1-.95 3.51A8.03 8.03 0 0 0 16.93 14m-8.85-2h3.84a24.61 24.61 0 0 0 0-4H8.08a24.61 24.61 0 0 0 0 4m.25 2c.41 2.4 1.13 4 1.67 4s1.26-1.6 1.67-4zm-6.08-2h3.82a28.81 28.81 0 0 1 0-4H2.25a8.01 8.01 0 0 0 0 4m.82 2a8.03 8.03 0 0 0 4.17 3.51c-.42-.96-.74-2.16-.95-3.51zm13.86-8a8.03 8.03 0 0 0-4.17-3.51c.42.96.74 2.16.95 3.51zm-8.6 0h3.34c-.41-2.4-1.13-4-1.67-4S8.74 3.6 8.33 6M3.07 6h3.22c.2-1.35.53-2.55.95-3.51A8.03 8.03 0 0 0 3.07 6"/></svg>
</a>
<% } %>