Static Site Generator Advent Calendar 2020 - Day 4

銇点亞銇涖倱馃巿 FU-SEN 銇с仚銆
浜堝憡銇椼仸銇勩仧 Hugo 銇浜嬨仹銇欍

鏈杩戙伅 robots.txt 銈 Sitemap 銇屽ぇ浜嬶紒 銇ㄣ亜銇嗕簨銇с
Hugo 銇с伄 robots.txt 銇ㄣ偟銈ゃ儓銉炪儍銉椼倰鍏堟棩銇旂垂浠嬨仐銇︺亜銇俱仐銇熴

馃巿 Hugo 銇 robots.txt 銇 Sitemap銆倈 銇点亞銇涖倱馃巿 FU-SEN

Hugo 銇屻儢銉偘銈掓绡夈仚銈嬨儎銉笺儷銆嶃仺瑾嶈瓨銇曘倢銇屻仭銇с仚銇屻
鍗樸仾銈 Web 銈点偆銉堛倰妲嬬瘔銇欍倠銇熴倎銇 Hugo 銈掍娇銇c仧鍫村悎銇с倐
銈点偆銉堛優銉冦儣銈掕嚜鍕曠敓鎴愩仐銇︺亸銈屻仧銈娿丮arkdown 銇ц杓夈仹銇嶃仧銈娿仺銆
銇亱銇亱渚垮埄銇犮仯銇熴倞銇欍倠銇仹銇欍

鑷垎銇亜銇忋仱銇 Hugo 銇 Web 銈点偆銉堛倰浣溿仯銇︺亗銈娿伨銇欍
銉栥儹銈般仹鏂拌銇浜嬨儦銉笺偢銈掍綔銈嬩唬銈忋倞銇
銉氥兗銈搞倰鏇存柊銇椼仸 hugo 銇с儑銉椼儹銈ゃ仐銇︺亜銈嬨仩銇戙仹銇欍


銈炽兂銉嗐兂銉勪竴瑕ф鑳姐倰鐢熴亱銇

Hugo 銇屻儢銉偘銇娇銈忋倢銈嬩竴鍥犮伅銆佽浜嬨伄涓瑕ц〃绀烘鑳姐亴鎼級銇曘倢銇︺亜銈嬨亱銈夈仹銇欍伃銆
銉嗐兗銉炪倐銇撱倢銇蹇溿仐銇︺亜銈嬩簨銇屽銇勩仹銇欍

渚嬨亪銇般content/ 鍐呫伀鍏ャ倢銈 瑷樹簨.md 銈掓渶灏忛檺銇叆銈屻伨銇欍

---
title: "瑷樹簨"
date: 2020-12-02T12:34:56+09:00
---

姒傝

<!--more-->

馃崺(銉伙綖銉)mogmog

銇撱伄鏅傘儶銈广儓銇ц〃绀恒仌銈屻倠銇伅 title 銇 瑷樹簨
鏈枃銇 <!--more--> 鐩村墠銇俱仹銇亗銈 姒傝 銇俱仹銇с
馃崺(銉伙綖銉)mogmog 銇〃绀恒仌銈屻伨銇涖倱銆
姒傝銇椋俱亴閬╃敤銇曘倢銈嬨亱銇曘倢銇亜銇嬨伅銉嗐兗銉炪伀銈堛倞銇俱仚銆
銈傘仭銈嶃倱銉嗐兗銉炪伀銈堛仯銇︽棩鏅傘伄琛ㄧず銈傘亗銈娿伨銇欍

閫氬父銇 date 銇柊銇椼亜銉氥兗銈糕啋鍙ゃ亜銉氥兗銈搞仹涓瑕с仌銈屻仸銇勩亶銇俱仚銇屻
銇撱伄涓︺伋銈掑浐瀹氥仚銈嬪牬鍚堛伅 weight 銈掑姞銇堛伨銇欍

---
title: "瑷樹簨"
date: 2020-12-02T12:34:56+09:00
weight: 10
---

weight 銇皬銇曘亜闋嗏啋澶с亶銇勯爢銇т甫銇炽伨銇欍 銇撱倢銇 date 銈堛倞銈傚劒鍏堛仌銈屻伨銇欍
銇с倐銇撱伄鍫村悎銇с倐 date 銇叆銈屻仸銆佹湰鏂囥仺涓绶掋伀鏇存柊銇椼仸涓嬨仌銇勩
銈点偆銉堛優銉冦儣銈 RSS 銇棩鏅傘亴浠樿銇曘倢銈嬨仧銈併仹銇欍


銉堛儍銉椼儦銉笺偢銈傘儐銈偣銉堣〃绀恒伀銇椼仧銇

聽Hugo 鍏紡銈点偆銉聽Themes 銇娇銇c仸銇勩倠浜恒仾銈夎銇熶簨銇屻亗銈嬨仹銇椼倗銇嗐
瀹熴伅銈堛亸瑕嬨倠銇ㄣ乄eb 銈点偆銉堝悜銇戙伄銉嗐兗銉炪亴銇傘倠銈撱仹銇欍
銇濄伄銈堛亞銇儐銉笺優銈掍娇銇嗐伄銇屼竴鎵嬫銇с仚銆

浠绘剰銇儦銉笺偢銇т竴瑕ц〃绀恒倰浣跨敤銇涖仛銆侀氬父銇儐銈偣銉堣〃绀恒伀銇椼仧銇勫牬鍚堛
layouts/index.html 銈掔敓鎴愩仚銈嬪繀瑕併亴銇傘倞銇俱仚銆
layouts/_default/simples.htmllayouts/index.html
銈炽償銉笺仚銈嬨仩銇戙仹澶т笀澶伄鍫村悎銇屻亗銈娿伨銇欍亴銆
绱般亱銇忎慨姝c倰瑕併仚銈嬨亱銈傘仐銈屻伨銇涖倱銆

鈥︹︺亗銆佷竴蹇滆鏄庛仐銇︺亰銇嶃伨銇欍亴銆
瑭插綋銉曘偂銈ゃ儷銇屻仾銇勫牬鍚堛伅 themes/ 鍐呫亱銈夋寔銇c仸銇忋倠銇仹銇欍亴銆
themes/git clonegit submodule 銇儐銉笺優鏇存柊銇倛銈婁笂鏇搞亶銇曘倢銇︺仐銇俱亞銇仹銆
themes/銉嗐兗銉炲悕/layouts/ 鍐呫亱銈 layouts/ 鍐呫伀銈炽償銉笺仐銇俱仚銆
蹇呰銇儠銈°偆銉伄銇裤仹鑹亜銇с仚銆
銇撱倢銇 Hugo 銇叄銈屻仸銇忋倠銇ㄣ倛銇忚銇嗐倛銇嗐伀銇倞銇俱仚銆

銇ゃ伨銈娿佷笂銇鏄庛倰姝c仐銇忚杓夈仚銈嬨仺銆layouts/_default/simple.html 銇伅銇亜銇仹
themes/銉嗐兗銉炲悕/layouts/_default/simple.html
layouts/index.html 銇搞偝銉斻兗銇椼仸銇裤倠銆併仺銇勩亞浜嬨伀銇倞銇俱仚銆

銇濄伄涓娿仹 content/_index.md 銈掍綔鎴愩仐銇俱仚銆
锛堛儐銉笺優銇倛銇c仸 content/锝/_index.md 銇ㄣ儑銈c儸銈儓銉倰鎸熴個蹇呰銇屻亗銈娿伨銇欙級
銇撱倢銇 index.html 銇ゃ伨銈娿併儓銉冦儣銉氥兗銈搞伄銈炽兂銉嗐兂銉勩仢銇倐銇仺銇倞銇俱仚銆
浠栥伄銉氥兗銈稿悓妲樸伀 titledate 銈掍粯銇戙仸涓嬨仌銇勩


銉°儖銉ャ兗

澶氥亸銇儭銉嬨儱銉笺伅 Hugo 銇儭銉嬨儱銉兼鑳姐伀婧栨嫚銇椼仸銇勩伨銇欍

聽Menus | Hugo

config.toml 銇儭銉嬨儱銉笺倰涓瑕с仌銇涖倠銇嬧︹

[[menu.main]]
    name = "銉堛儍銉"
    url = "/"
    weight = 1

[[menu.main]]
    name = "Q&A"
    url = "/faq/"
    weight = 8

[[menu.main]]
    name = "鍟忓悎銇"
    url = "/contact/"
    weight = 9

content/锝/銉氥兗銈.md 銇ㄣ仐銇 weightmenu 銈掍綔鎴愩仐銇俱仚銆

---
title: "銉氥兗銈"
date: 2020-12-08T15:00:00+09:00
weight: 3
menu: "main"
---

menu: "main" 銇с亗銈屻伆銆config.toml 鍐呫伄 [[menu.main]] 銇屽叡閫氥仹銇欍
锛堛仼銇°倝銈 main 銇伄銇с傘亾銈屻倰澶夋洿銇椼仸浠栥伄銉°儖銉ャ兗銈備綔銈屻伨銇欙級
銇伄銇т甫銇炽伅宸︺兓涓娿倛銈 銉堛儍銉 銉氥兗銈 Q&A 鍟忓悎銇 銇ㄣ仾銈娿伨銇欍


銈儐銈淬儶銉笺兓銈裤儢銇墛闄

Web 銈点偆銉堛仺銇椼仸浣裤亞銇仹銇傘倢銇般併偒銉嗐偞銉兗銉汇偪銉栥伅涓嶈銇с仐銈囥亞銆
config.toml 銇銈掕拷鍔犮仐銇俱仚銆

disableKinds = ["taxonomy","taxonomyTerm"]

銇撱倢銈掍粯銇戙仾銇勩仺 public/ 銇т腑韬伄銇亜
category/tags/ 銇岀劇椐勩伀鐢熸垚銇曘倢銇︺仐銇俱亜銇俱仚銆
銇撱倢銇偟銈ゃ儓銉炪儍銉椼伀鍚伨銈屻倠銇仹銆併偗銉兗銉┿兗銇у弬鐓с仌銈屻仸銇椼伨銇勩伨銇欍


銇撱亾銇с伅 Hugo 銇с儐銉笺優銇枹淇傘仾銇忓叡閫氥仐銇熸鑳姐仹绱逛粙銇椼仸銇勩倠銇仹銆
澶氥亸銇儐銉笺優銇т娇鐢ㄣ仹銇嶃倠銇仹銇欍亴銆
銉嗐兗銉炪伀銈堛仯銇︾嫭鑷伄瀹熻銈掕銇c仸銇勩倠鍫村悎銇屻亗銈娿伨銇欍伄銇с
銉嗐兗銉炪伄瑾槑銈 GitHub 銉椼儹銈搞偋銈儓銇 README銆併儔銈儱銉°兂銉堛倰鍙傜収銇椼仸涓嬨仌銇勩


Static Site Generator Advent Calendar 2020

聽Static Site Generator Advent Calendar 2020 | Qiita