<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>这个板块的名字还没想好 on Den | 登</title>
    <link>/post/</link>
    <description>Recent content in 这个板块的名字还没想好 on Den | 登</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Tue, 31 Jan 2017 00:00:00 +0000</lastBuildDate>
    <atom:link href="/post/" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>hugo不用的主题</title>
      <link>/post/hugonotheme/</link>
      <pubDate>Tue, 12 Dec 2023 13:16:48 -0800</pubDate>
      <author>lmg</author>
      <guid>/post/hugonotheme/</guid>
      <description>
        <![CDATA[
        <p>不要用的主题：</p>

<p>starter-hugo-academic（因为要用扩展hugo）</p>

<p>​</p>

        
        ]]>
      </description>
    </item>
    
    
    
    <item>
      <title>支持 Emoji 表情</title>
      <link>/post/emoji-support.html</link>
      <pubDate>Sat, 04 Jun 2022 19:46:45 +0800</pubDate>
      
      <guid>/post/emoji-support.html</guid>
      <description>
        <![CDATA[
        <p>Emoji 可以通过多种方式在 Hugo 项目中启用。</p>

<p><a href="https://gohugo.io/functions/emojify/"><code>emojify</code></a> 方法可以直接在模板中调用, 或者使用<a href="https://gohugo.io/templates/shortcode-templates#inline-shortcodes">行内 Shortcodes</a>.</p>

<p>要全局使用 emoji, 需要在你的<a href="https://gohugo.io/getting-started/configuration/">网站配置</a>中设置 <code>enableEmoji</code> 为 <code>true</code>，
然后你就可以直接在文章中输入 emoji 的代码。</p>

<p>它们以<strong>冒号</strong>开头和结尾，并且包含 emoji 的 <strong>代码</strong>：</p>

<pre><code class="language-markdown">去露营啦! {:}tent: 很快就回来.

真开心! {:}joy:
</code></pre>

<p>呈现的输出效果如下:</p>

<p>去露营啦! ⛺️ 很快就回来。</p>

<p>真开心! 😂</p>

<p>以下<strong>符号清单</strong>是 emoji 代码的非常有用的参考。</p>

<h2 id="表情与情感">表情与情感</h2>

<h3 id="笑脸表情">笑脸表情</h3>

<p>| 图标 | 代码 | 图标 | 代码 |
| :-: | - | :-: | - |
| 😀 | <code>grinning</code> | 😃 | <code>smiley</code> |
| 😄 | <code>smile</code> | 😁 | <code>grin</code> |
| 😆 | <code>laughing</code> <br /> <code>satisfied</code> | 😅 | <code>sweat_smile</code> |
| 🤣 | <code>rofl</code> | 😂 | <code>joy</code> |
| 🙂 | <code>slightly_smiling_face</code> | 🙃 | <code>upside_down_face</code> |
| 😉 | <code>wink</code> | 😊 | <code>blush</code> |
| 😇 | <code>innocent</code> | | |</p>

<h3 id="爱意表情">爱意表情</h3>

<p>| 图标 | 代码 | 图标 | 代码 |
| :-: | - | :-: | - |
| 😍 | <code>heart_eyes</code> | 😘 | <code>kissing_heart</code> |
| 😗 | <code>kissing</code> | ☺️ | <code>relaxed</code> |
| 😚 | <code>kissing_closed_eyes</code> | 😙 | <code>kissing_smiling_eyes</code> |</p>

<h3 id="吐舌头表情">吐舌头表情</h3>

<p>| 图标 | 代码 | 图标 | 代码 |
| :-: | - | :-: | - |
| 😋 | <code>yum</code> | 😛 | <code>stuck_out_tongue</code> |
| 😜 | <code>stuck_out_tongue_winking_eye</code> | 😝 | <code>stuck_out_tongue_closed_eyes</code> |
| 🤑 | <code>money_mouth_face</code> | | |</p>

<h3 id="国家和地区旗帜">国家和地区旗帜</h3>

<p>| 图标 | 代码 | 图标 | 代码 |
| :-: | - | :-: | - |
| 🇦🇩 | <code>andorra</code> | 🇦🇪 | <code>united_arab_emirates</code> |
| 🇦🇫 | <code>afghanistan</code> | 🇦🇬 | <code>antigua_barbuda</code> |
| 🇦🇮 | <code>anguilla</code> | 🇦🇱 | <code>albania</code> |
| 🇦🇲 | <code>armenia</code> | 🇦🇴 | <code>angola</code> |
| 🇦🇶 | <code>antarctica</code> | 🇦🇷 | <code>argentina</code> |
| 🇦🇸 | <code>american_samoa</code> | 🇦🇹 | <code>austria</code> |
| 🇦🇺 | <code>australia</code> | 🇦🇼 | <code>aruba</code> |
| 🇦🇽 | <code>aland_islands</code> | 🇦🇿 | <code>azerbaijan</code> |
| 🇧🇦 | <code>bosnia_herzegovina</code> | 🇧🇧 | <code>barbados</code> |
| 🇧🇩 | <code>bangladesh</code> | 🇧🇪 | <code>belgium</code> |
| 🇧🇫 | <code>burkina_faso</code> | 🇧🇬 | <code>bulgaria</code> |
| 🇧🇭 | <code>bahrain</code> | 🇧🇮 | <code>burundi</code> |
| 🇧🇯 | <code>benin</code> | 🇧🇱 | <code>st_barthelemy</code> |
| 🇧🇲 | <code>bermuda</code> | 🇧🇳 | <code>brunei</code> |
| 🇧🇴 | <code>bolivia</code> | 🇧🇶 | <code>caribbean_netherlands</code> |
| 🇧🇷 | <code>brazil</code> | 🇧🇸 | <code>bahamas</code> |
| 🇧🇹 | <code>bhutan</code> | 🇧🇼 | <code>botswana</code> |
| 🇧🇾 | <code>belarus</code> | 🇧🇿 | <code>belize</code> |
| 🇨🇦 | <code>canada</code> | 🇨🇨 | <code>cocos_islands</code> |
| 🇨🇩 | <code>congo_kinshasa</code> | 🇨🇫 | <code>central_african_republic</code> |
| 🇨🇬 | <code>congo_brazzaville</code> | 🇨🇭 | <code>switzerland</code> |
| 🇨🇮 | <code>cote_divoire</code> | 🇨🇰 | <code>cook_islands</code> |
| 🇨🇱 | <code>chile</code> | 🇨🇲 | <code>cameroon</code> |
| 🇨🇳 | <code>cn</code> | 🇨🇴 | <code>colombia</code> |
| 🇨🇷 | <code>costa_rica</code> | 🇨🇺 | <code>cuba</code> |
| 🇨🇻 | <code>cape_verde</code> | 🇨🇼 | <code>curacao</code> |
| 🇨🇽 | <code>christmas_island</code> | 🇨🇾 | <code>cyprus</code> |
| 🇨🇿 | <code>czech_republic</code> | 🇩🇪 | <code>de</code> |
| 🇩🇯 | <code>djibouti</code> | 🇩🇰 | <code>denmark</code> |
| 🇩🇲 | <code>dominica</code> | 🇩🇴 | <code>dominican_republic</code> |
| 🇩🇿 | <code>algeria</code> | 🇪🇨 | <code>ecuador</code> |
| 🇪🇪 | <code>estonia</code> | 🇪🇬 | <code>egypt</code> |
| 🇪🇭 | <code>western_sahara</code> | 🇪🇷 | <code>eritrea</code> |
| 🇪🇸 | <code>es</code> | 🇪🇹 | <code>ethiopia</code> |
| 🇪🇺 | <code>eu</code> <br /> <code>european_union</code> | 🇫🇮 | <code>finland</code> |
| 🇫🇯 | <code>fiji</code> | 🇫🇰 | <code>falkland_islands</code> |
| 🇫🇲 | <code>micronesia</code> | 🇫🇴 | <code>faroe_islands</code> |
| 🇫🇷 | <code>fr</code> | 🇬🇦 | <code>gabon</code> |
| 🇬🇧 | <code>gb</code> <br /> <code>uk</code> | 🇬🇩 | <code>grenada</code> |
| 🇬🇪 | <code>georgia</code> | 🇬🇫 | <code>french_guiana</code> |
| 🇬🇬 | <code>guernsey</code> | 🇬🇭 | <code>ghana</code> |
| 🇬🇮 | <code>gibraltar</code> | 🇬🇱 | <code>greenland</code> |
| 🇬🇲 | <code>gambia</code> | 🇬🇳 | <code>guinea</code> |
| 🇬🇵 | <code>guadeloupe</code> | 🇬🇶 | <code>equatorial_guinea</code> |
| 🇬🇷 | <code>greece</code> | 🇬🇸 | <code>south_georgia_south_sandwich_islands</code> |
| 🇬🇹 | <code>guatemala</code> | 🇬🇺 | <code>guam</code> |
| 🇬🇼 | <code>guinea_bissau</code> | 🇬🇾 | <code>guyana</code> |
| 🇭🇰 | <code>hong_kong</code> | 🇭🇳 | <code>honduras</code> |
| 🇭🇷 | <code>croatia</code> | 🇭🇹 | <code>haiti</code> |
| 🇭🇺 | <code>hungary</code> | 🇮🇨 | <code>canary_islands</code> |
| 🇮🇩 | <code>indonesia</code> | 🇮🇪 | <code>ireland</code> |
| 🇮🇱 | <code>israel</code> | 🇮🇲 | <code>isle_of_man</code> |
| 🇮🇳 | <code>india</code> | 🇮🇴 | <code>british_indian_ocean_territory</code> |
| 🇮🇶 | <code>iraq</code> | 🇮🇷 | <code>iran</code> |
| 🇮🇸 | <code>iceland</code> | 🇮🇹 | <code>it</code> |
| 🇯🇪 | <code>jersey</code> | 🇯🇲 | <code>jamaica</code> |
| 🇯🇴 | <code>jordan</code> | 🇯🇵 | <code>jp</code> |
| 🇰🇪 | <code>kenya</code> | 🇰🇬 | <code>kyrgyzstan</code> |
| 🇰🇭 | <code>cambodia</code> | 🇰🇮 | <code>kiribati</code> |
| 🇰🇲 | <code>comoros</code> | 🇰🇳 | <code>st_kitts_nevis</code> |
| 🇰🇵 | <code>north_korea</code> | 🇰🇷 | <code>kr</code> |
| 🇰🇼 | <code>kuwait</code> | 🇰🇾 | <code>cayman_islands</code> |
| 🇰🇿 | <code>kazakhstan</code> | 🇱🇦 | <code>laos</code> |
| 🇱🇧 | <code>lebanon</code> | 🇱🇨 | <code>st_lucia</code> |
| 🇱🇮 | <code>liechtenstein</code> | 🇱🇰 | <code>sri_lanka</code> |
| 🇱🇷 | <code>liberia</code> | 🇱🇸 | <code>lesotho</code> |
| 🇱🇹 | <code>lithuania</code> | 🇱🇺 | <code>luxembourg</code> |
| 🇱🇻 | <code>latvia</code> | 🇱🇾 | <code>libya</code> |
| 🇲🇦 | <code>morocco</code> | 🇲🇨 | <code>monaco</code> |
| 🇲🇩 | <code>moldova</code> | 🇲🇪 | <code>montenegro</code> |
| 🇲🇬 | <code>madagascar</code> | 🇲🇭 | <code>marshall_islands</code> |
| 🇲🇰 | <code>macedonia</code> | 🇲🇱 | <code>mali</code> |
| 🇲🇲 | <code>myanmar</code> | 🇲🇳 | <code>mongolia</code> |
| 🇲🇴 | <code>macau</code> | 🇲🇵 | <code>northern_mariana_islands</code> |
| 🇲🇶 | <code>martinique</code> | 🇲🇷 | <code>mauritania</code> |
| 🇲🇸 | <code>montserrat</code> | 🇲🇹 | <code>malta</code> |
| 🇲🇺 | <code>mauritius</code> | 🇲🇻 | <code>maldives</code> |
| 🇲🇼 | <code>malawi</code> | 🇲🇽 | <code>mexico</code> |
| 🇲🇾 | <code>malaysia</code> | 🇲🇿 | <code>mozambique</code> |
| 🇳🇦 | <code>namibia</code> | 🇳🇨 | <code>new_caledonia</code> |
| 🇳🇪 | <code>niger</code> | 🇳🇫 | <code>norfolk_island</code> |
| 🇳🇬 | <code>nigeria</code> | 🇳🇮 | <code>nicaragua</code> |
| 🇳🇱 | <code>netherlands</code> | 🇳🇴 | <code>norway</code> |
| 🇳🇵 | <code>nepal</code> | 🇳🇷 | <code>nauru</code> |
| 🇳🇺 | <code>niue</code> | 🇳🇿 | <code>new_zealand</code> |
| 🇴🇲 | <code>oman</code> | 🇵🇦 | <code>panama</code> |
| 🇵🇪 | <code>peru</code> | 🇵🇫 | <code>french_polynesia</code> |
| 🇵🇬 | <code>papua_new_guinea</code> | 🇵🇭 | <code>philippines</code> |
| 🇵🇰 | <code>pakistan</code> | 🇵🇱 | <code>poland</code> |
| 🇵🇲 | <code>st_pierre_miquelon</code> | 🇵🇳 | <code>pitcairn_islands</code> |
| 🇵🇷 | <code>puerto_rico</code> | 🇵🇸 | <code>palestinian_territories</code> |
| 🇵🇹 | <code>portugal</code> | 🇵🇼 | <code>palau</code> |
| 🇵🇾 | <code>paraguay</code> | 🇶🇦 | <code>qatar</code> |
| 🇷🇪 | <code>reunion</code> | 🇷🇴 | <code>romania</code> |
| 🇷🇸 | <code>serbia</code> | 🇷🇺 | <code>ru</code> |
| 🇷🇼 | <code>rwanda</code> | 🇸🇦 | <code>saudi_arabia</code> |
| 🇸🇧 | <code>solomon_islands</code> | 🇸🇨 | <code>seychelles</code> |
| 🇸🇩 | <code>sudan</code> | 🇸🇪 | <code>sweden</code> |
| 🇸🇬 | <code>singapore</code> | 🇸🇭 | <code>st_helena</code> |
| 🇸🇮 | <code>slovenia</code> | 🇸🇰 | <code>slovakia</code> |
| 🇸🇱 | <code>sierra_leone</code> | 🇸🇲 | <code>san_marino</code> |
| 🇸🇳 | <code>senegal</code> | 🇸🇴 | <code>somalia</code> |
| 🇸🇷 | <code>suriname</code> | 🇸🇸 | <code>south_sudan</code> |
| 🇸🇹 | <code>sao_tome_principe</code> | 🇸🇻 | <code>el_salvador</code> |
| 🇸🇽 | <code>sint_maarten</code> | 🇸🇾 | <code>syria</code> |
| 🇸🇿 | <code>swaziland</code> | 🇹🇨 | <code>turks_caicos_islands</code> |
| 🇹🇩 | <code>chad</code> | 🇹🇫 | <code>french_southern_territories</code> |
| 🇹🇬 | <code>togo</code> | 🇹🇭 | <code>thailand</code> |
| 🇹🇯 | <code>tajikistan</code> | 🇹🇰 | <code>tokelau</code> |
| 🇹🇱 | <code>timor_leste</code> | 🇹🇲 | <code>turkmenistan</code> |
| 🇹🇳 | <code>tunisia</code> | 🇹🇴 | <code>tonga</code> |
| 🇹🇷 | <code>tr</code> | 🇹🇹 | <code>trinidad_tobago</code> |
| 🇹🇻 | <code>tuvalu</code> | 🇹🇼 | <code>taiwan</code> |
| 🇹🇿 | <code>tanzania</code> | 🇺🇦 | <code>ukraine</code> |
| 🇺🇬 | <code>uganda</code> | 🇺🇸 | <code>us</code> |
| 🇺🇾 | <code>uruguay</code> | 🇺🇿 | <code>uzbekistan</code> |
| 🇻🇦 | <code>vatican_city</code> | 🇻🇨 | <code>st_vincent_grenadines</code> |
| 🇻🇪 | <code>venezuela</code> | 🇻🇬 | <code>british_virgin_islands</code> |
| 🇻🇮 | <code>us_virgin_islands</code> | 🇻🇳 | <code>vietnam</code> |
| 🇻🇺 | <code>vanuatu</code> | 🇼🇫 | <code>wallis_futuna</code> |
| 🇼🇸 | <code>samoa</code> | 🇽🇰 | <code>kosovo</code> |
| 🇾🇪 | <code>yemen</code> | 🇾🇹 | <code>mayotte</code> |
| 🇿🇦 | <code>south_africa</code> | 🇿🇲 | <code>zambia</code> |
| 🇿🇼 | <code>zimbabwe</code> | | |</p>
        
        ]]>
      </description>
    </item>
    
    
    
    <item>
      <title>Markdown 语法支持</title>
      <link>/post/markdown-syntax.html</link>
      <pubDate>Fri, 03 Jun 2022 11:52:18 +0800</pubDate>
      <author>Mainroad</author>
      <guid>/post/markdown-syntax.html</guid>
      <description>
        <![CDATA[
        <p>仅以此篇文章来测试下在 <code>NexT</code> 主题中在通过 <code>Hugo</code> 引擎来建站时，是否支持 <code>Markdown</code> 文件内容中所写的各种语法，并展示下实际的效果。</p>

<h2 id="标题样式">标题样式</h2>

<p>让我们从所有可能的标题开始，在 HTML 中 <code>&lt;h1&gt;</code>-<code>&lt;h6&gt;</code>元素分别表示六个不同级别的标题样式，其中 <code>&lt;h1&gt;</code> 为最大标题，<code>&lt;h6&gt;</code>为最小标题，效果如下：</p>

<h1 id="标题-1">标题 1</h1>

<h2 id="标题-2">标题 2</h2>

<h3 id="标题-3">标题 3</h3>

<h4 id="标题-4">标题 4</h4>

<h5 id="标题-5">标题 5</h5>

<h6 id="标题-6">标题 6</h6>

<h2 id="段落格式">段落格式</h2>

<p>根据<a href="https://www.w3.org/"> W3C </a>定义的<a href="https://www.w3.org/TR/html5/dom.html#elements"> HTML5 规范</a>，<strong>HTML 文档由元素和文本组成</strong>。每个元素的组成都由一个<a href="https://www.w3.org/TR/html5/syntax.html#syntax-start-tags">开始标记</a>表示，例如： <code>&lt;body&gt;</code> ，和<a href="https://www.w3.org/TR/html5/syntax.html#syntax-end-tags">结束标记</a>表示，例如： <code>&lt;/body&gt;</code> 。（<em>某些开始标记和结束标记在某些情况下可以省略，并由其他标记暗示。</em>）
元素可以具有属性，这些属性控制元素的工作方式。例如：超链接是使用 <code>a</code> 元素及其 <code>href</code> 属性形成的。</p>

<h3 id="markdown-语法">Markdown 语法</h3>

<pre><code class="language-markdown">![图像说明](图像地址)
</code></pre>

<p><img src="//lisenhui.gitee.io/imgs/hugo-next/logo/hugo-next-primary.png" alt="hugo-next-primary" /></p>

<h3 id="html-img-标签">HTML IMG 标签</h3>

<pre><code class="language-html">&lt;img src=&quot;图像地址&quot; width=&quot;宽度&quot; height=&quot;高度&quot; /&gt;
</code></pre>

<p><img src="//lisenhui.gitee.io/imgs/hugo-next/logo/hugo-next-secondary.png" width="150"/></p>

<h3 id="svg-格式">SVG 格式</h3>

<pre><code class="language-html">&lt;svg&gt;xxxxxx&lt;/svg&gt;
</code></pre>

<p><svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg></p>

<h2 id="列表类型">列表类型</h2>

<h3 id="有序列表">有序列表</h3>

<ol>
<li>第一个元素</li>
<li>第二个元素</li>
<li>第三个元素</li>
</ol>

<h3 id="无序列表">无序列表</h3>

<ul>
<li>列表元素</li>
<li>另一个元素</li>
<li>和其它元素</li>
</ul>

<h3 id="嵌套列表">嵌套列表</h3>

<p>借助 HTML 的 <code>ul</code> 元素来实现。</p>

<ul>
  <li>第一项</li>
  <li>第二项
    <ul>
      <li>第二项第一个子项目</li>
      <li>第二项第二个子项目
        <ul>
          <li>第二项第二分项第一分项</li>
          <li>第二项第二分项第二分项</li>
          <li>第二项第二分项第三分项</li>
        </ul>
      </li>
      <li>第二项第三个子项目
        <ol>
          <li>第二项第三分项第一分项</li>
          <li>第二项第三分项第二分项</li>
          <li>第二项第三分项第三分项</li>
        </ol>
    </ul>
  </li>
  <li>第三项</li>
</ul>

<h3 id="自定义列表">自定义列表</h3>

<p>通过 HTML 的 <code>dl</code> 元素还支持自定义列表（表格列表）。</p>

<dl>
  <dt>Hugo 目录结构</dt>
  <dd>assets</dd>
  <dd>config.toml</dd>
  <dd>content</dd>
  <dd>data</dd>
  <dd>theme</dd>
  <dd>static</dd>
  <dt>Hugo 模板</dt>
  <dd>基础模板</dd>
  <dd>列表模板</dd>
  <dd>单页模板</dd>
</dl>

<h2 id="块引用">块引用</h2>

<p><code>blockquote</code> 元素表示从另一个源引用的内容，可以选择引用必须在 <code>footer</code> 或 <code>cite</code> 元素中，也可以选择使用注释和缩写等行内更改。</p>

<blockquote>
<p>引用文本
这一行也是同样的引用
同样你也在 <code>blockquote</code> 中使用 <strong>Markdown</strong> 语法书写</p>
</blockquote>

<p>带有引文的 <code>Blockquote</code> 元素效果。</p>

<blockquote>
  <p>我的目标不是赚大钱,是为了制造好的电脑。当我意识到我可以永远当工程师时，我才创办了这家公司。</p>
  <footer>— <cite>史蒂夫·沃兹尼亚克</cite></footer>
</blockquote>

<p>根据 Mozilla 的网站记录，<q cite="https://www.mozilla.org/en-US/about/history/details/">Firefox 1.0 于 2004 年发布，并取得了巨大成功。</q></p>

<h2 id="表格">表格</h2>

<p>表格并不算是 <code>Markdown</code> 的核心要素，但 <code>Hugo</code> 同样支持它。</p>

<table>
<thead>
<tr>
<th>ID</th>
<th>创建者</th>
<th>模型</th>
<th>年份</th>
</tr>
</thead>

<tbody>
<tr>
<td>1</td>
<td>Honda</td>
<td>Accord</td>
<td>2009</td>
</tr>

<tr>
<td>2</td>
<td>Toyota</td>
<td>Camry</td>
<td>2012</td>
</tr>

<tr>
<td>3</td>
<td>Hyundai</td>
<td>Elantra</td>
<td>2010</td>
</tr>
</tbody>
</table>

<p>可以使用 : （英文格式冒号）来对表格内容进行对齐。</p>

<table>
<thead>
<tr>
<th align="left">表格</th>
<th align="center">可以是</th>
<th align="right">很酷</th>
</tr>
</thead>

<tbody>
<tr>
<td align="left">左对齐</td>
<td align="center">居中</td>
<td align="right">右对齐</td>
</tr>

<tr>
<td align="left">左对齐</td>
<td align="center">居中</td>
<td align="right">右对齐</td>
</tr>

<tr>
<td align="left">左对齐</td>
<td align="center">居中</td>
<td align="right">右对齐</td>
</tr>
</tbody>
</table>

<p>同样也可以在表格中使用 <code>Markdown</code> 语法。</p>

<table>
<thead>
<tr>
<th>表格</th>
<th>中</th>
<th>使用</th>
<th>Markdown 语法</th>
</tr>
</thead>

<tbody>
<tr>
<td><em>斜体</em></td>
<td><strong>粗体</strong></td>
<td><del>中划线</del></td>
<td><code>代码块</code></td>
</tr>
</tbody>
</table>

<h2 id="code">Code</h2>

<pre><code class="language-html">&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
  &lt;meta charset=&quot;UTF-8&quot;&gt;
  &lt;title&gt;Example HTML5 Document&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;p&gt;Test&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-html" data-lang="html"><span style="color:#75715e">&lt;!DOCTYPE html&gt;</span>
&lt;<span style="color:#f92672">html</span> <span style="color:#a6e22e">lang</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;en&#34;</span>&gt;
&lt;<span style="color:#f92672">head</span>&gt;
  &lt;<span style="color:#f92672">meta</span> <span style="color:#a6e22e">charset</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;UTF-8&#34;</span>&gt;
  &lt;<span style="color:#f92672">title</span>&gt;Example HTML5 Document&lt;/<span style="color:#f92672">title</span>&gt;
&lt;/<span style="color:#f92672">head</span>&gt;
&lt;<span style="color:#f92672">body</span>&gt;
  &lt;<span style="color:#f92672">p</span>&gt;Test&lt;/<span style="color:#f92672">p</span>&gt;
&lt;/<span style="color:#f92672">body</span>&gt;
&lt;/<span style="color:#f92672">html</span>&gt;</code></pre></div>

<h2 id="其它元素-abbr-sub-sup-kbd等等">其它元素： abbr、sub、sup、kbd等等</h2>

<p><abbr title="Graphics Interchange Format">GIF</abbr> 是位图图像格式。</p>

<p>H<sub>2</sub>O</p>

<p>C<sub>6</sub>H<sub>12</sub>O<sub>6</sub></p>

<p>X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup></p>

<p>按<kbd>X</kbd>获胜。或按<kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>F</kbd></kbd>显示 FPS 计数器。</p>

<p><mark>比特作为信息论中的信息单位，也被称为 shannon </mark>，以信息论领域的创始人 Claude shannon 的名字命名。</p>

<p>参考：
- 来自 <strong>Mainroad</strong> 主题的 <a href="https://mainroad-demo.netlify.app/post/basic-elements/">Basic Elements</a> 内容</p>
        
        ]]>
      </description>
    </item>
    
    
    
    <item>
      <title>整理RSS中遇到的一些情况</title>
      <link>/post/rssto/</link>
      <pubDate>Thu, 27 Feb 2020 13:16:48 -0800</pubDate>
      <author>dan</author>
      <guid>/post/rssto/</guid>
      <description>
        <![CDATA[
        

<p>关键词：RSS</p>

<h2 id="整理rss中遇到的一些情况">整理RSS中遇到的一些情况</h2>

<p>患有松鼠症的我收藏夹中网址似乎有很多，于是需要进行“断舍离”，把最常用的保留，剩下的尽量都将网站RSS化。随便找个RSS阅读器就可以掌握国家大事了。</p>

<h2 id="一-一般网站和blog">一、一般网站和BLOG</h2>

<p>在整理RSS过程中，有些网站还好，通常在顶部菜单、右侧菜单、底部菜单等地方会有RSS图标、符号 ,或者“订阅”两个字，再或者是“subscribe”这个单词。这些倒是简单，直接往RSS阅读器中添加就可以了。</p>

<h2 id="二-复杂型">二、复杂型</h2>

<p>但是有很多是站长把订阅链接隐藏了，去掉了，这可咋办？</p>

<p>还好，有些类型的网站还是能找到一些规律的，</p>

<p>你可以尝试在域名网址的后面添加上/index.xml或者/rss.xml或者/atom.xml或者/rss或者/feed，（是的，情况很复杂，需要实验哪个是可用的）这样我就又有一些收藏夹中的网址到RSS阅读器中了，减少翻网站的时间真好。</p>

<h2 id="三-使用插件">三、使用插件</h2>

<p>FIREFOX有个浏览器插件FEEDBRO,可以找出网站的RSS地址，很方便。</p>

        
        ]]>
      </description>
    </item>
    
    
    
    <item>
      <title>Hugo website SEO</title>
      <link>/post/hugo-seo/</link>
      <pubDate>Wed, 20 Jun 2018 00:00:00 +0000</pubDate>
      <author>keithp&#39;s blog</author>
      <guid>/post/hugo-seo/</guid>
      <description>
        <![CDATA[
        

<p>Hugo website SEO</p>

<h2 id="august-9-2017">August 9, 2017</h2>

<p><a href="https://keithpblog.org/tags/hugo">Hugo</a> <a href="https://keithpblog.org/tags/seo">SEO</a></p>

<p><em>You want to be found on the web. Search Engines want to help…</em></p>

<p>Hugo or your Hugo theme might provide some SEO components out of the box, but consider adding what it doesn’t, then tell google; bing and other search engines about your site.</p>

<h3 id="part-1-add-seo-elements-to-your-website">Part 1: Add SEO elements to your website</h3>

<p>See also about SEO elements -&gt; <a href="https://developers.google.com/search/docs/guides">https://developers.google.com/search/docs/guides</a></p>

<h4 id="1-configuration">1. Configuration:</h4>

<p>By default Hugo or your Hugo theme will give you:</p>

<ol>
<li>A sitemap at /sitemap.xml: useful to submit to search engines like google ( see below ).</li>
<li>RSS feed.</li>
</ol>

<p>Update your config.toml file to ensure you have a configuration similar to this:</p>

<pre><code># .config.toml
...
enableRobotsTXT = true
canonifyURLs = true
# and if you think your md file names or locations might change:
[permalinks]
    post = &quot;/blog/:title/&quot;
...
</code></pre>

<h4 id="2-add-a-schema-org-partial">2. Add a Schema.org partial:</h4>

<p>See also about structured data snippets -&gt; <a href="https://developers.google.com/search/docs/guides/intro-structured-data">https://developers.google.com/search/docs/guides/intro-structured-data</a></p>

<p>Add a modified ‘header’ partial to reference a ‘seo’ partial. This will override the header partial in your theme, so start with a copy of that file and add:</p>

<pre><code># layouts/partials/header.html
...
{{ partial &quot;seo_schema&quot; . }}
&lt;title&gt;
...
</code></pre>

<p>Add a ‘seo_schema’ partial</p>

<pre><code>// layouts/partials/seo_schema.html

&lt;script type=&quot;application/ld+json&quot;&gt;
{
    &quot;@context&quot; : &quot;http://schema.org&quot;,
    &quot;@type&quot; : &quot;BlogPosting&quot;,
    &quot;mainEntityOfPage&quot;: {
         &quot;@type&quot;: &quot;WebPage&quot;,
         &quot;@id&quot;: &quot;{{ .Site.BaseURL }}&quot;
    },
    &quot;articleSection&quot; : &quot;{{ .Section }}&quot;,
    &quot;name&quot; : &quot;{{ .Title }}&quot;,
    &quot;headline&quot; : &quot;{{ .Title }}&quot;,
    &quot;description&quot; : &quot;{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}&quot;,
    &quot;inLanguage&quot; : &quot;en-US&quot;,
    &quot;author&quot; : &quot;{{ range .Site.Author }}{{ . }}{{ end }}&quot;,
    &quot;creator&quot; : &quot;{{ range .Site.Author }}{{ . }}{{ end }}&quot;,
    &quot;publisher&quot;: &quot;{{ range .Site.Author }}{{ . }}{{ end }}&quot;,
    &quot;accountablePerson&quot; : &quot;{{ range .Site.Author }}{{ . }}{{ end }}&quot;,
    &quot;copyrightHolder&quot; : &quot;{{ range .Site.Author }}{{ . }}{{ end }}&quot;,
    &quot;copyrightYear&quot; : &quot;{{ .Date.Format &quot;2006&quot; }}&quot;,
    &quot;datePublished&quot;: &quot;{{ .Date }}&quot;,
    &quot;dateModified&quot; : &quot;{{ .Date }}&quot;,
    &quot;url&quot; : &quot;{{ .Permalink }}&quot;,
    &quot;wordCount&quot; : &quot;{{ .WordCount }}&quot;,
    &quot;keywords&quot; : [ {{ if isset .Params &quot;tags&quot; }}{{ range .Params.tags }}&quot;{{ . }}&quot;,{{ end }}{{ end }}&quot;Blog&quot; ]
}
&lt;/script&gt;
</code></pre>

<p>Git commit and push.</p>

<h3 id="part-2-google-search-console">Part 2: Google Search Console</h3>

<p>Track your site’s search performance with Google Search Console and browse around for more webmaster resources : <a href="https://www.google.com/webmasters/tools/home">https://www.google.com/webmasters/tools/home</a></p>

<p>In Google’s Webmasters Console:</p>

<ol>
<li>Add a property (your website)</li>
<li>Add the html page as required by google to verify ownership</li>
<li>Submit the sitemap (/sitemap.xml) for indexing</li>
<li>Wait.</li>
</ol>

<p>Return to the Google Search Console after several days to see if your site has been indexed. A queued request typically takes several days for a successful request to be granted. Google doesnt guarantee that it will index all your changes, as it relies on “a complex algorithm to update indexed materials”.</p>

<h3 id="part-3-bing-webmaster-tools">Part 3: Bing webmaster tools</h3>

<p>The Bing Webmasters Console is here: <a href="https://www.bing.com/toolbox/webmaster/">https://www.bing.com/toolbox/webmaster/</a></p>

<p>In Bing’s Webmasters Console, Add your site, details and verify.</p>

<p>Bing offers 3 ways to verify ownership:</p>

<ol>
<li>Add an xml file;</li>
<li>Add a metatag;</li>
<li>Add a CNAME record in your DNS.</li>
</ol>

<p>Now wait for Bing to complete the indexing.</p>

<h3 id="part-4-yandex-webmaster-tools">Part 4: Yandex webmaster tools</h3>

<p>This is for DuckDuckGo.</p>

<p>Yandex and Bing both contribute to DuckDuckGo’s indexing ( Yandex has a partnership with DuckDuckGo according to <a href="https://blog.r3bl.me/en/exploring-duckduckgo-for-smaller-websites/">https://blog.r3bl.me/en/exploring-duckduckgo-for-smaller-websites/</a> )</p>

<p>The Yandex Webmasters Console is here: <a href="https://webmaster.yandex.com/">https://webmaster.yandex.com</a></p>

<p>Click the + button at the top of the screen and enter your site address</p>

<p>Yandex offers 4 ways to verify ownership:</p>

<ol>
<li>Add an HTML file;</li>
<li>Add a metatag;</li>
<li>Add a TXT record in your DNS.</li>
<li>Use the WHOIS email</li>
</ol>

<p>After verification, add the sitemap file /sitemap.xml.</p>

<p>Now wait a couple of weeks.</p>

<p><a href="http://www.reddit.com/submit?url=https%3a%2f%2fkeithpblog.org%2fpost%2fhugo-website-seo%2f&amp;title=Hugo%20website%20SEO">1
  </a></p>

        
        ]]>
      </description>
    </item>
    
    
    
    <item>
      <title>Jane-Theme Footnote Preview</title>
      <link>/post/jane-theme-footnote-preview/</link>
      <pubDate>Thu, 01 Mar 2018 16:01:23 +0800</pubDate>
      <author>xianmin</author>
      <guid>/post/jane-theme-footnote-preview/</guid>
      <description>
        <![CDATA[
        <p>Hugo-theme-jane optimized for footnote. When you mouse hover the footnote<sup class="footnote-ref" id="fnref:example"><a href="#fn:example">1</a></sup> , footnote content will be displayed.</p>

<h2 id="footnote-1">Footnote-1</h2>

<pre><code class="language-markdown">You can create footnotes like this[^footnote].

[^footnote]: Here is the *text* of the **footnote**.
</code></pre>

<p>will produce:</p>

<p>You can create footnotes like this<sup class="footnote-ref" id="fnref:footnote1"><a href="#fn:footnote1">2</a></sup>.</p>

<p>Mouse on the ‘footnote’ superscript to see content of the footnote.</p>

<h2 id="footnote-2">Footnote-2</h2>

<pre><code class="language-markdown">You can create footnotes like this[^footnote2].

[^footnote2]: Here is the *text* of the **footnote**.
</code></pre>

<p>will produce:</p>

<p>You can create footnotes like this<sup class="footnote-ref" id="fnref:footnote"><a href="#fn:footnote">3</a></sup>.</p>

<p>Mouse on the ‘footnote’ superscript to see content of the footnote.</p>

<h2 id="footnote-3">Footnote-3</h2>

<pre><code class="language-markdown">You can create footnotes like this[^footnote].

[^footnote]: Here is the *text* of the **footnote**.
</code></pre>

<p>will produce:</p>

<p>You can create footnotes like this<sup class="footnote-ref" id="fnref:footnote3"><a href="#fn:footnote3">4</a></sup>.</p>

<p>Mouse on the ‘footnote’ superscript to see content of the footnote.</p>

<h2 id="footnote-4">Footnote-4</h2>

<pre><code class="language-markdown">You can create footnotes like this[^footnote].

[^footnote]: Here is the *text* of the **footnote**.
</code></pre>

<p>will produce:</p>

<p>You can create footnotes like this<sup class="footnote-ref" id="fnref:footnote4"><a href="#fn:footnote4">5</a></sup>.</p>

<p>Mouse on the ‘footnote’ superscript to see content of the footnote.</p>

<h2 id="footnote-5">Footnote-5</h2>

<pre><code class="language-markdown">You can create footnotes like this[^footnote].

[^footnote]: Here is the *text* of the **footnote**.
</code></pre>

<p>will produce dddddddddddddddddddddddddddddddddddddddddddddd:</p>

<p>You can create footnotes like this<sup class="footnote-ref" id="fnref:footnote5"><a href="#fn:footnote5">6</a></sup>.</p>

<p>Mouse on the ‘footnote’ superscript to see content of the footnote.</p>
<div class="footnotes">

<hr />

<ol>
<li id="fn:example">example footnote show.
 <a class="footnote-return" href="#fnref:example">↩</a></li>
<li id="fn:footnote1">Here is the <em>text</em> of the <strong>footnote-1</strong>.
 <a class="footnote-return" href="#fnref:footnote1">↩</a></li>
<li id="fn:footnote">Here is the <em>text</em> of the <strong>footnote-2</strong>. Here is the text of the footnote-2. Here is the text of the footnote-2. Here is the text of the footnote-2. Here is the text of the footnote-2.  <a href="https://gohugo.io/">The world’s fastest framework for building websites | Hugo</a>
 <a class="footnote-return" href="#fnref:footnote">↩</a></li>
<li id="fn:footnote3">Here is the <em>text</em> of the <strong>footnote-3</strong>.
 <a class="footnote-return" href="#fnref:footnote3">↩</a></li>
<li id="fn:footnote4">Here is the <em>text</em> of the <strong>footnote-4</strong>.
 <a class="footnote-return" href="#fnref:footnote4">↩</a></li>
<li id="fn:footnote5">Here is the <em>text</em> of the <strong>footnote-5</strong>.
 <a class="footnote-return" href="#fnref:footnote5">↩</a></li>
</ol>
</div>
        
        ]]>
      </description>
    </item>
    
    
  </channel>
</rss>
