<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>文章 on 莱姆狼🐺的小窝</title>
    <link>https://blog.limewolf.top/posts/</link>
    <description>Recent content in 文章 on 莱姆狼🐺的小窝</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <atom:link href="https://blog.limewolf.top/posts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>使用giscus为org-mode的Hugo博客文章建立评论区</title>
      <link>https://blog.limewolf.top/posts/20230827-b49c5a4d/</link>
      <pubDate>Sun, 27 Aug 2023 13:23:50 +0800</pubDate>
      <guid>https://blog.limewolf.top/posts/20230827-b49c5a4d/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;本文是基于个人从零实践经验，&lt;br&gt;&#xA;简要介绍了笔者是如何使用giscus工具为本站中 &lt;code&gt;.md&lt;/code&gt; &lt;code&gt;.org&lt;/code&gt; 格式的文章挂载评论区。&lt;/p&gt;&#xA;&lt;p&gt;&#xA;This post is also available in: &lt;a href=&#34;https://blog.limewolf.top/en/posts/20230827_en-b49c5a4d/&#34;&gt;English&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;hr&gt;&#xA;&lt;div id=&#34;outline-container-headline-1&#34; class=&#34;outline-2&#34;&gt;&#xA;&lt;h2 id=&#34;headline-1&#34;&gt;&#xA;使用giscus为org-mode的Hugo博客文章建立评论区&#xA;&lt;/h2&gt;&#xA;&lt;div id=&#34;outline-text-headline-1&#34; class=&#34;outline-text-2&#34;&gt;&#xA;&lt;div id=&#34;outline-container-headline-2&#34; class=&#34;outline-3&#34;&gt;&#xA;&lt;h3 id=&#34;headline-2&#34;&gt;&#xA;1. giscus简介&#xA;&lt;/h3&gt;&#xA;&lt;div id=&#34;outline-text-headline-2&#34; class=&#34;outline-text-3&#34;&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/giscus/giscus&#34;&gt;giscus&lt;/a&gt;，一款基于&lt;a href=&#34;https://docs.github.com/en/discussions&#34;&gt;Github Discussions&lt;/a&gt;的评论区系统，它与另一款基于Github Issues的评论区系统&lt;a href=&#34;https://utteranc.es/&#34;&gt;utterances&lt;/a&gt;极为神似。&lt;/p&gt;&#xA;&lt;p&gt;&#xA;giscus的作者&lt;a href=&#34;https://laymonage.com/&#34;&gt;laymonage&lt;/a&gt; (Sage Abdullahe)在其博客的&lt;a href=&#34;https://laymonage.com/posts/giscus&#34;&gt;Introducing giscus&lt;/a&gt;一文中提到：&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Ta也曾是utterances的用户，直到Github推出discussions功能时，使用discussions替代issues作为评论区系统后端的想法应运而生。&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&#xA;Github方面在推出discussions时也曾这样说过：&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;#34;Until now, GitHub only offered issues and pull requests as places to have these conversations. But issues and pull requests both have a linear format—well suited for merging code, but not for creating a community knowledge base. &lt;strong&gt;Conversations need their own place&lt;/strong&gt; —that’s what GitHub Discussions is for.&amp;#34;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hugo&#43;Vercel建立个人博客</title>
      <link>https://blog.limewolf.top/posts/20230825-1263f3b5/</link>
      <pubDate>Sat, 26 Aug 2023 02:56:54 +0800</pubDate>
      <guid>https://blog.limewolf.top/posts/20230825-1263f3b5/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;本文主要记录了我个人从零建站的主要过程，并不会事无巨细地记叙。&lt;br&gt;&#xA;旨在为拥有类似需求的朋友提供使用Hugo+Vercel建站的参考。&lt;/p&gt;&#xA;&lt;p&gt;&#xA;This post is also available in: &lt;a href=&#34;https://blog.limewolf.top/en/posts/20230825_en-1263f3b5/&#34;&gt;English&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;hr&gt;&#xA;&lt;div id=&#34;outline-container-headline-1&#34; class=&#34;outline-2&#34;&gt;&#xA;&lt;h2 id=&#34;headline-1&#34;&gt;&#xA;Hugo+Vercel建立个人博客&#xA;&lt;/h2&gt;&#xA;&lt;div id=&#34;outline-text-headline-1&#34; class=&#34;outline-text-2&#34;&gt;&#xA;&lt;div id=&#34;outline-container-headline-2&#34; class=&#34;outline-3&#34;&gt;&#xA;&lt;h3 id=&#34;headline-2&#34;&gt;&#xA;1. 静态网站生成工具&#xA;&lt;/h3&gt;&#xA;&lt;div id=&#34;outline-text-headline-2&#34; class=&#34;outline-text-3&#34;&gt;&#xA;&lt;p&gt;静态网站生成工具，它可以帮助个人博主将使用Markdown等标记语言写好的文章，以尽量便捷省心的方式生成静态网站。&lt;/p&gt;&#xA;&lt;p&gt;&#xA;关于 &lt;em&gt;“如何选择一款适合自己的静态网站生成工具”&lt;/em&gt; 这一话题在知乎等论坛早已有过不少专业的对比讨论，这里就不再班门弄斧、重造轮子。&lt;/p&gt;&#xA;&lt;p&gt;&#xA;我选用&lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt;的主要原因是 &lt;em&gt;“Hugo原生支持.org文件”&lt;/em&gt; 。&lt;br&gt;&#xA;这对于习惯使用&lt;a href=&#34;https://www.gnu.org/software/emacs/&#34;&gt;Emacs&lt;/a&gt;及其&lt;a href=&#34;https://orgmode.org/&#34;&gt;org-mode&lt;/a&gt;的我来说是一项很重要的特性。&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;在Hugo官网有相当详细的&lt;a href=&#34;https://gohugo.io/getting-started/quick-start/&#34;&gt;快速上手文档&lt;/a&gt;，其过程主要为以下六步：&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;安装Hugo&lt;/li&gt;&#xA;&lt;li&gt;安装Git&lt;/li&gt;&#xA;&lt;li&gt;创建网站&lt;/li&gt;&#xA;&lt;li&gt;设定主题&lt;/li&gt;&#xA;&lt;li&gt;创建文章&lt;/li&gt;&#xA;&lt;li&gt;生成静态网站并运行&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&#xA;下面将简要记录我的建站过程。&lt;/p&gt;&#xA;&lt;div id=&#34;outline-container-headline-3&#34; class=&#34;outline-4&#34;&gt;&#xA;&lt;h4 id=&#34;headline-3&#34;&gt;&#xA;1.1 安装Hugo和Git&#xA;&lt;/h4&gt;&#xA;&lt;div id=&#34;outline-text-headline-3&#34; class=&#34;outline-text-4&#34;&gt;&#xA;&lt;p&gt;在我个人常用的Windows11环境下，我习惯于尽可能地使用微软官方提供的包管理器 &lt;code&gt;winget&lt;/code&gt; 来安装开源软件：&lt;/p&gt;&#xA;&lt;p&gt;&#xA;打开PowerShell并输入：&lt;br&gt;&#xA;&lt;code&gt;winget install Hugo.Hugo.Extended Git.Git&lt;/code&gt; &lt;br&gt;&#xA;静待安装完成。&lt;br&gt;&#xA;（当然，也可以使用cmd来进行上述及后续步骤）&lt;/p&gt;&#xA;&lt;p&gt;&#xA;这一步根据网络情况耗时不定，如果觉得 &lt;code&gt;winget&lt;/code&gt; 太慢当然也可以根据&lt;a href=&#34;https://gohugo.io/installation/windows/#prebuilt-binaries&#34;&gt;Hugo官方文档：prebuild&lt;/a&gt;的内容下载压缩包并配置系统环境变量。（个人不喜欢这种不便于管理的方式）&lt;/p&gt;&#xA;&lt;p&gt;&#xA;安装完成后，在PowerShell中输入&lt;br&gt;&#xA;&lt;code&gt;hugo version&lt;/code&gt;&lt;br&gt;&#xA;若显示类似如下字段，则说明Hugo安装成功。&lt;/p&gt;&#xA;&lt;div class=&#34;src src-text&#34;&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;hugo v0.117.0-b2f0696cad918fb61420a6aff173eb36662b406e+extended windows/amd64 BuildDate=2023-08-07T12:49:48Z VendorInfo=gohugoio&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;&#xA;同样方式验证Git的安装&lt;br&gt;&#xA;&lt;code&gt;git version&lt;/code&gt;&lt;br&gt;&#xA;显示类似如下字段，则说明Git安装成功。&lt;/p&gt;&#xA;&lt;div class=&#34;src src-text&#34;&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git version 2.38.1.windows.1&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;outline-container-headline-4&#34; class=&#34;outline-4&#34;&gt;&#xA;&lt;h4 id=&#34;headline-4&#34;&gt;&#xA;1.2 创建网站&#xA;&lt;/h4&gt;&#xA;&lt;div id=&#34;outline-text-headline-4&#34; class=&#34;outline-text-4&#34;&gt;&#xA;&lt;p&gt;使用资源管理器创建好用来存放网站的 &lt;code&gt;Mysite&lt;/code&gt; 文件夹后，进入该文件夹并在空白处右键选择 &lt;code&gt;Open in Terminal / 在终端中打开&lt;/code&gt; 。&lt;br&gt;&#xA;（当然你也可以直接在cmd或powershell中使用 &lt;code&gt;cd&lt;/code&gt; 指令索引到这个文件夹内）&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
