{"id":653340,"date":"2025-09-13T11:31:37","date_gmt":"2025-09-13T03:31:37","guid":{"rendered":"http:\/\/puo.cn\/?p=653340"},"modified":"2025-09-13T11:31:37","modified_gmt":"2025-09-13T03:31:37","slug":"github-pages-han-ge%e5%bc%95%e5%af%bc%e9%a1%b5%e4%bb%a3%e7%a0%81%e7%95%99%e5%ad%98","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=653340","title":{"rendered":"github pages-han.ge\u5f15\u5bfc\u9875\u4ee3\u7801\u7559\u5b58"},"content":{"rendered":"<p>\u6f14\u793a\u5730\u5740:<a rel=\"nofollow\" href=\"http:\/\/han.ge\" target=\"_blank\" rel=\"noopener\">http:\/\/han.ge<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-653385 aligncenter size-large\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/09\/20250913193033966.png\" alt=\"\" width=\"1024\" height=\"626\" srcset=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/09\/20250913193033966.png 1415w, http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/09\/20250913193033966-300x183.png 300w, http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/09\/20250913193033966-1024x626.png 1024w, http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/09\/20250913193033966-768x469.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><code><\/code><\/p>\n<p>&lt;!DOCTYPE html&gt;<br \/>\n&lt;html lang=&#8221;zh&#8221;&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta charset=&#8221;UTF-8&#8243;&gt;<br \/>\n&lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt;<br \/>\n&lt;title&gt;\u6db5\u54e5\u7684\u4e2a\u4eba\u4e3b\u9875&lt;\/title&gt;<br \/>\n&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/5.15.4\/css\/all.min.css&#8221;&gt;<br \/>\n&lt;style&gt;<br \/>\n* { margin: 0; padding: 0; box-sizing: border-box; font-family: &#8216;Arial&#8217;, sans-serif; }<br \/>\nhtml, body { min-height: 100%; width: 100%; overflow-x: hidden; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }<br \/>\nbody { display: flex; flex-direction: column; align-items: center; padding: 20px; }<br \/>\n.container { width: 100%; max-width: 1200px; display: flex; flex-direction: column; gap: 30px; margin: 0 auto; }<\/p>\n<p><code><\/code><\/p>\n<p>\/* \u4e2a\u4eba\u8d44\u6599\u5361\u7247 *\/<br \/>\n.profile-card { background: rgba(255, 255, 255, 0.9); border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); }<br \/>\n.profile-card::before { content: &#8221;; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%); transform: rotate(45deg); z-index: 0; }<br \/>\n.profile-card&gt;* { position: relative; z-index: 1; }<br \/>\n.avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 5px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.2); margin-bottom: 20px; }<br \/>\n.profile-name { font-size: 28px; font-weight: bold; margin-bottom: 10px; color: #333; }<br \/>\n.profile-bio { font-size: 16px; color: #666; text-align: center; margin-bottom: 20px; max-width: 600px; }<br \/>\n.social-links { display: flex; gap: 15px; margin-top: 15px; }<br \/>\n.social-link { width: 45px; height: 45px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: #555; font-size: 20px; transition: all 0.3s ease; cursor: pointer; text-decoration: none; }<br \/>\n.social-link:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }<br \/>\n.social-link.wechat:hover { background: #07C160; color: white; }<br \/>\n.social-link.qq:hover { background: #12B7F5; color: white; }<br \/>\n.social-link.email:hover { background: #EA4335; color: white; }<br \/>\n.social-link.blog:hover { background: #FF5722; color: white; }<br \/>\n.social-link.website:hover { background: #2196F3; color: white; }<\/p>\n<p><code><\/code><\/p>\n<p>\/* \u95ee\u5019\u8bed *\/<br \/>\n.greeting { font-size: 24px; font-weight: bold; color: #333; margin-bottom: 20px; text-align: center; }<\/p>\n<p><code><\/code><\/p>\n<p>\/* \u7f51\u7ad9\u5bfc\u822a *\/<br \/>\n.nav-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; width: 100%; }<br \/>\n.nav-category { background: white; border-radius: 15px; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease; }<br \/>\n.nav-category:hover { transform: translateY(-5px); }<br \/>\n.category-title { font-size: 18px; font-weight: bold; margin-bottom: 15px; padding-left: 10px; border-left: 4px solid #4285F4; color: #333; }<br \/>\n.nav-links { display: flex; flex-direction: column; gap: 10px; }<br \/>\n.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; transition: background-color 0.2s; text-decoration: none; color: #555; }<br \/>\n.nav-link:hover { background-color: #f5f5f5; }<br \/>\n.nav-link i { font-size: 16px; width: 20px; text-align: center; }<\/p>\n<p><code><\/code><\/p>\n<p>\/* \u63d0\u793a\u6d88\u606f *\/<br \/>\n.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: rgba(0,0,0,0.7); color: white; padding: 10px 20px; border-radius: 30px; font-size: 14px; opacity: 0; transition: all 0.3s ease; z-index: 1000; }<br \/>\n.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }<\/p>\n<p><code><\/code><\/p>\n<p>@media (max-width: 768px) {<br \/>\n.nav-container { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }<br \/>\n}<br \/>\n&lt;\/style&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;div class=&#8221;container&#8221;&gt;<br \/>\n&lt;!&#8211; \u4e2a\u4eba\u8d44\u6599 &#8211;&gt;<br \/>\n&lt;div class=&#8221;profile-card&#8221;&gt;<br \/>\n&lt;img src=&#8221;https:\/\/picsum.photos\/seed\/avatar123\/120\/120.jpg&#8221; alt=&#8221;\u4e2a\u4eba\u5934\u50cf&#8221; class=&#8221;avatar&#8221;&gt;<br \/>\n&lt;h1 class=&#8221;profile-name&#8221;&gt;\u6db5\u54e5&lt;\/h1&gt;<br \/>\n&lt;p class=&#8221;profile-bio&#8221;&gt;80\u540e\u5927\u53d4\uff0c\u7231\u559d\u9152\uff0c\u7231\u71ac\u591c\uff0c\u7231\u8ffd\u756a\uff01&lt;\/p&gt;<br \/>\n&lt;div class=&#8221;social-links&#8221;&gt;<br \/>\n&lt;div class=&#8221;social-link wechat&#8221; data-copy=&#8221;\u5fae\u4fe1\u53f7\uff1afarhans&#8221;&gt;&lt;i class=&#8221;fab fa-weixin&#8221;&gt;&lt;\/i&gt;&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;social-link qq&#8221; data-copy=&#8221;QQ\u53f7\uff1a46369606&#8243;&gt;&lt;i class=&#8221;fab fa-qq&#8221;&gt;&lt;\/i&gt;&lt;\/div&gt;<br \/>\n&lt;a href=&#8221;mailto:fim@qq.com&#8221; class=&#8221;social-link email&#8221;&gt;&lt;i class=&#8221;fas fa-envelope&#8221;&gt;&lt;\/i&gt;&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;http:\/\/hanshuailing.com\/wordpress&#8221; target=&#8221;_blank&#8221; class=&#8221;social-link blog&#8221;&gt;&lt;i class=&#8221;fas fa-blog&#8221;&gt;&lt;\/i&gt;&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;http:\/\/dh.nqq.org&#8221; target=&#8221;_blank&#8221; class=&#8221;social-link website&#8221;&gt;&lt;i class=&#8221;fas fa-globe&#8221;&gt;&lt;\/i&gt;&lt;\/a&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p><code><\/code><\/p>\n<p>&lt;!&#8211; \u95ee\u5019\u8bed &#8211;&gt;<br \/>\n&lt;div class=&#8221;greeting&#8221; id=&#8221;greeting&#8221;&gt;\u665a\u4e0a\u597d\uff01\u6b22\u8fce\u6765\u5230shuai\u7684\u4e2a\u4eba\u4e3b\u9875&lt;\/div&gt;<\/p>\n<p><code><\/code><\/p>\n<p>&lt;!&#8211; \u7f51\u7ad9\u5bfc\u822a &#8211;&gt;<br \/>\n&lt;div class=&#8221;nav-container&#8221;&gt;<br \/>\n&lt;div class=&#8221;nav-category&#8221;&gt;<br \/>\n&lt;div class=&#8221;category-title&#8221;&gt;\ud83d\udcf1 \u793e\u4ea4\u5a92\u4f53&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;nav-links&#8221;&gt;<br \/>\n&lt;a href=&#8221;https:\/\/weibo.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fab fa-weibo&#8221;&gt;&lt;\/i&gt; \u5fae\u535a&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/www.zhihu.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fas fa-question-circle&#8221;&gt;&lt;\/i&gt; \u77e5\u4e4e&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/www.reddit.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fab fa-reddit&#8221;&gt;&lt;\/i&gt; Reddit&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/twitter.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fab fa-twitter&#8221;&gt;&lt;\/i&gt; Twitter&lt;\/a&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p><code><\/code><\/p>\n<p>&lt;div class=&#8221;nav-category&#8221;&gt;<br \/>\n&lt;div class=&#8221;category-title&#8221;&gt;\ud83d\udcbb \u5f00\u53d1\u5de5\u5177&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;nav-links&#8221;&gt;<br \/>\n&lt;a href=&#8221;https:\/\/github.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fab fa-github&#8221;&gt;&lt;\/i&gt; GitHub&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/gitlab.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fab fa-gitlab&#8221;&gt;&lt;\/i&gt; GitLab&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/codepen.io&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fab fa-codepen&#8221;&gt;&lt;\/i&gt; CodePen&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/jsfiddle.net&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fas fa-code&#8221;&gt;&lt;\/i&gt; JSFiddle&lt;\/a&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p><code><\/code><\/p>\n<p>&lt;div class=&#8221;nav-category&#8221;&gt;<br \/>\n&lt;div class=&#8221;category-title&#8221;&gt;\ud83c\udfac \u5a31\u4e50\u4f11\u95f2&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;nav-links&#8221;&gt;<br \/>\n&lt;a href=&#8221;https:\/\/www.youtube.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fab fa-youtube&#8221;&gt;&lt;\/i&gt; YouTube&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/www.netflix.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fas fa-film&#8221;&gt;&lt;\/i&gt; Netflix&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/open.spotify.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fab fa-spotify&#8221;&gt;&lt;\/i&gt; Spotify&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/www.bilibili.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fas fa-tv&#8221;&gt;&lt;\/i&gt; \u54d4\u54e9\u54d4\u54e9&lt;\/a&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p><code><\/code><\/p>\n<p>&lt;div class=&#8221;nav-category&#8221;&gt;<br \/>\n&lt;div class=&#8221;category-title&#8221;&gt;\ud83d\udee0 \u5e38\u7528\u670d\u52a1&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;nav-links&#8221;&gt;<br \/>\n&lt;a href=&#8221;https:\/\/mail.google.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fas fa-envelope&#8221;&gt;&lt;\/i&gt; Gmail&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/drive.google.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fas fa-cloud&#8221;&gt;&lt;\/i&gt; Google Drive&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/translate.google.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fas fa-language&#8221;&gt;&lt;\/i&gt; Google \u7ffb\u8bd1&lt;\/a&gt;<br \/>\n&lt;a href=&#8221;https:\/\/calendar.google.com&#8221; target=&#8221;_blank&#8221; class=&#8221;nav-link&#8221;&gt;&lt;i class=&#8221;fas fa-calendar-alt&#8221;&gt;&lt;\/i&gt; Google \u65e5\u5386&lt;\/a&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p><code><\/code><\/p>\n<p>&lt;!&#8211; \u63d0\u793a\u6d88\u606f &#8211;&gt;<br \/>\n&lt;div class=&#8221;toast&#8221; id=&#8221;toast&#8221;&gt;\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f&lt;\/div&gt;<\/p>\n<p><code><\/code><\/p>\n<p>&lt;script&gt;<br \/>\n\/\/ \u8bbe\u7f6e\u95ee\u5019\u8bed<br \/>\nfunction setGreeting() {<br \/>\nconst hour = new Date().getHours();<br \/>\nlet greeting = &#8221;;<br \/>\nif (hour &lt; 6) greeting = &#8216;\u591c\u6df1\u4e86\uff0c\u6ce8\u610f\u4f11\u606f\uff01&#8217;;<br \/>\nelse if (hour &lt; 9) greeting = &#8216;\u65e9\u4e0a\u597d\uff01\u65b0\u7684\u4e00\u5929\u5f00\u59cb\u4e86&#8217;;<br \/>\nelse if (hour &lt; 12) greeting = &#8216;\u4e0a\u5348\u597d\uff01\u5de5\u4f5c\u987a\u5229\u5417&#8217;;<br \/>\nelse if (hour &lt; 14) greeting = &#8216;\u4e2d\u5348\u597d\uff01\u8be5\u5403\u5348\u996d\u4e86&#8217;;<br \/>\nelse if (hour &lt; 17) greeting = &#8216;\u4e0b\u5348\u597d\uff01\u7ee7\u7eed\u52a0\u6cb9&#8217;;<br \/>\nelse if (hour &lt; 19) greeting = &#8216;\u508d\u665a\u597d\uff01\u653e\u677e\u4e00\u4e0b\u5427&#8217;;<br \/>\nelse if (hour &lt; 22) greeting = &#8216;\u665a\u4e0a\u597d\uff01\u6b22\u8fce\u6765\u5230\u6211\u7684\u4e2a\u4eba\u4e3b\u9875&#8217;;<br \/>\nelse greeting = &#8216;\u591c\u6df1\u4e86\uff0c\u6ce8\u610f\u4f11\u606f\uff01&#8217;;<br \/>\ndocument.getElementById(&#8216;greeting&#8217;).textContent = greeting;<br \/>\n}<br \/>\nsetGreeting();<br \/>\nsetInterval(setGreeting, 3600000);<\/p>\n<p><code><\/code><\/p>\n<p>\/\/ \u590d\u5236\u529f\u80fd<br \/>\ndocument.querySelectorAll(&#8216;.social-link[data-copy]&#8217;).forEach(link =&gt; {<br \/>\nlink.addEventListener(&#8216;click&#8217;, function() {<br \/>\nconst textToCopy = this.getAttribute(&#8216;data-copy&#8217;);<br \/>\nnavigator.clipboard.writeText(textToCopy).then(() =&gt; {<br \/>\nconst toast = document.getElementById(&#8216;toast&#8217;);<br \/>\ntoast.classList.add(&#8216;show&#8217;);<br \/>\nsetTimeout(() =&gt; toast.classList.remove(&#8216;show&#8217;), 2000);<br \/>\n});<br \/>\n});<br \/>\n});<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6f14\u793a\u5730\u5740:http:\/\/han.ge &lt;!DOCTYPE html&gt; &lt;html lang=&#8221;zh&#8221;&gt; &lt;head&gt; &lt;meta charset=&#8221;UTF-8&#038;#&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140],"tags":[161,309,194,252],"topic":[415],"class_list":["post-653340","post","type-post","status-publish","format-standard","hentry","category-domain-website","tag-github","tag-html","tag-194","tag-252","topic-code"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/653340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=653340"}],"version-history":[{"count":1,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/653340\/revisions"}],"predecessor-version":[{"id":653386,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/653340\/revisions\/653386"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=653340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=653340"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=653340"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=653340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}