🌟构建了简易的blog

This commit is contained in:
Falck
2026-04-10 20:00:25 +08:00
parent 4eaf10e753
commit c38d2f66d1
238 changed files with 30052 additions and 11 deletions

View File

@@ -0,0 +1 @@
function o(t,n){if(!t||typeof t!="string"){console.warn("navigateToPage: Invalid URL provided");return}if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("//")){window.open(t,"_blank");return}if(t.startsWith("#")){const e=document.getElementById(t.slice(1));e&&e.scrollIntoView({behavior:"smooth"});return}if(typeof window<"u"&&window.swup)try{n?.replace||window.swup.navigate(t)}catch(e){console.error("Swup navigation failed:",e),i(t)}else i(t)}function i(t,n){window.location.href=t}export{o as n};