-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
17 lines (17 loc) · 7.9 KB
/
index.html
File metadata and controls
17 lines (17 loc) · 7.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!doctype html><html lang=en dir=auto data-theme=auto><head><meta name=generator content="Hugo 0.152.2"><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>Jony's Blog</title><meta name=description content="JonyFang 的个人技术博客"><meta name=author content="JonyFang"><link rel=canonical href=https://jonyfang.github.io/><link crossorigin=anonymous href=/assets/css/stylesheet.101f2c63064b8fbb2e5c6396f0522df74f30eae89bcb1497d7183298c5fe9033.css integrity="sha256-EB8sYwZLj7suXGOW8FIt908w6uibyxSX1xgymMX+kDM=" rel="preload stylesheet" as=style><link rel=icon type=image/svg+xml href=/favicon.svg><link rel=icon href=https://jonyfang.github.io/favicon.ico><link rel=icon type=image/png sizes=16x16 href=https://jonyfang.github.io/favicon-16x16.png><link rel=icon type=image/png sizes=32x32 href=https://jonyfang.github.io/favicon-32x32.png><link rel=apple-touch-icon href=https://jonyfang.github.io/apple-touch-icon.png><link rel=mask-icon href=https://jonyfang.github.io/safari-pinned-tab.svg><meta name=theme-color content="#2e2e33"><meta name=msapplication-TileColor content="#2e2e33"><link rel=alternate type=application/rss+xml href=https://jonyfang.github.io/index.xml title=rss><link rel=alternate type=application/json href=https://jonyfang.github.io/index.json title=json><link rel=alternate hreflang=en href=https://jonyfang.github.io/><noscript><style>#theme-toggle,.top-link{display:none}</style><style>@media(prefers-color-scheme:dark){:root{--theme:rgb(29, 30, 32);--entry:rgb(46, 46, 51);--primary:rgb(218, 218, 219);--secondary:rgb(155, 156, 157);--tertiary:rgb(65, 66, 68);--content:rgb(196, 196, 197);--code-block-bg:rgb(46, 46, 51);--code-bg:rgb(55, 56, 62);--border:rgb(51, 51, 51);color-scheme:dark}.list{background:var(--theme)}.toc{background:var(--entry)}}@media(prefers-color-scheme:light){.list::-webkit-scrollbar-thumb{border-color:var(--code-bg)}}</style></noscript><script>localStorage.getItem("pref-theme")==="dark"?document.querySelector("html").dataset.theme="dark":localStorage.getItem("pref-theme")==="light"?document.querySelector("html").dataset.theme="light":window.matchMedia("(prefers-color-scheme: dark)").matches?document.querySelector("html").dataset.theme="dark":document.querySelector("html").dataset.theme="light"</script><meta property="og:url" content="https://jonyfang.github.io/"><meta property="og:site_name" content="Jony's Blog"><meta property="og:title" content="Jony's Blog"><meta property="og:description" content="JonyFang 的个人技术博客"><meta property="og:locale" content="zh-CN"><meta property="og:type" content="website"><meta name=twitter:card content="summary"><meta name=twitter:title content="Jony's Blog"><meta name=twitter:description content="JonyFang 的个人技术博客"><script type=application/ld+json>{"@context":"https://schema.org","@type":"Organization","name":"Jony's Blog","url":"https://jonyfang.github.io/","description":"JonyFang 的个人技术博客","logo":"https://jonyfang.github.io/favicon.ico","sameAs":["https://github.com/jonyfang","mailto:jony.chunfang@gmail.com"]}</script></head><body class=list id=top><header class=header><nav class=nav><div class=logo><a href=https://jonyfang.github.io/ accesskey=h title="Jony's Blog (Alt + H)">Jony's Blog</a><div class=logo-switches><button id=theme-toggle accesskey=t title="(Alt + T)" aria-label="Toggle theme">
<svg id="moon" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>
<svg id="sun" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></button></div></div><ul id=menu><li><a href=https://jonyfang.github.io/ title=Home><span class=active>Home</span></a></li><li><a href=https://jonyfang.github.io/archives/ title=Archive><span>Archive</span></a></li><li><a href=https://jonyfang.github.io/about/ title=About><span>About</span></a></li></ul></nav></header><main class=main><article class=post-entry><figure class=entry-cover><img loading=lazy src=https://jonyfang.github.io/images/2025-06-20-blog-setup-guide/cover.svg alt=博客搭建核心流程></figure><header class=entry-header><h2 class=entry-hint-parent>新博客搭建流程及 Markdown 功能汇总</h2></header><div class=entry-content><p>搭建流程 本博客使用 Hugo + GitHub Pages + GitHub Actions 搭建的技术博客。博客搭建流程如下:
Markdown 功能汇总 本节汇总了 Hugo PaperMod 主题支持的各种 Markdown 功能和特性及自己添加的一些工具脚本。
1. Emoji 表情支持 Hugo 项目可以通过多种方式启用 Emoji 表情。
启用方法 方法一:全局配置。在站点配置文件 hugo.toml 中设置:
1 enableEmoji = true 启用后,即可在内容文件中直接使用 Emoji 短代码:
🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil:
方法二:模板函数。可以在模板或内联短代码中直接调用 emojify 函数。
在 Emoji 速查表 - 查找合适的 Emoji 短代码
样式优化 实际的字形渲染取决于浏览器和平台。为确保样式一致,可以使用自定义 CSS:
1 2 3 4 .emoji { font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; } 2. 数学公式排版 Hugo 可以使用第三方 JavaScript 库(如 KaTeX)来实现数学符号渲染。
...</p></div><footer class=entry-footer><span><time datetime=2025-06-20>2025-06-20</time></span></footer><a class=entry-link aria-label="post link to 新博客搭建流程及 Markdown 功能汇总" href=https://jonyfang.github.io/posts/2025-06-20-blog-setup-guide/></a></article></main><footer class=footer><span>© 2025 <a href=https://jonyfang.github.io/>Jony's Blog</a></span> ·
<span>Powered by
<a href=https://gohugo.io/ rel="noopener noreferrer" target=_blank>Hugo</a> &
<a href=https://github.com/adityatelange/hugo-PaperMod/ rel=noopener target=_blank>PaperMod</a></span></footer><a href=#top aria-label="go to top" title="Go to Top (Alt + G)" class=top-link id=top-link accesskey=g><svg viewBox="0 0 12 6" fill="currentColor"><path d="M12 6H0l6-6z"/></svg>
</a><script>let menu=document.getElementById("menu");if(menu){const e=localStorage.getItem("menu-scroll-position");e&&(menu.scrollLeft=parseInt(e,10)),menu.onscroll=function(){localStorage.setItem("menu-scroll-position",menu.scrollLeft)}}document.querySelectorAll('a[href^="#"]').forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();var t=this.getAttribute("href").substr(1);window.matchMedia("(prefers-reduced-motion: reduce)").matches?document.querySelector(`[id='${decodeURIComponent(t)}']`).scrollIntoView():document.querySelector(`[id='${decodeURIComponent(t)}']`).scrollIntoView({behavior:"smooth"}),t==="top"?history.replaceState(null,null," "):history.pushState(null,null,`#${t}`)})})</script><script>var mybutton=document.getElementById("top-link");window.onscroll=function(){document.body.scrollTop>800||document.documentElement.scrollTop>800?(mybutton.style.visibility="visible",mybutton.style.opacity="1"):(mybutton.style.visibility="hidden",mybutton.style.opacity="0")}</script><script>document.getElementById("theme-toggle").addEventListener("click",()=>{const e=document.querySelector("html");e.dataset.theme==="dark"?(e.dataset.theme="light",localStorage.setItem("pref-theme","light")):(e.dataset.theme="dark",localStorage.setItem("pref-theme","dark"))})</script></body></html>