{"id":70945,"date":"2026-02-02T22:24:36","date_gmt":"2026-02-02T14:24:36","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/70945.html"},"modified":"2026-02-02T22:24:36","modified_gmt":"2026-02-02T14:24:36","slug":"119%e3%80%81%e3%80%90ubuntu%e3%80%91%e3%80%90hugo%e3%80%91%e9%a6%96%e9%a1%b5%e6%9d%bf%e5%9d%97%e9%85%8d%e7%bd%ae%ef%bc%9atemplate-lookup-order","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/70945.html","title":{"rendered":"119\u3001\u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e\uff1aTemplate Lookup Order"},"content":{"rendered":"<p>\u3010\u58f0\u660e\u3011\u672c\u535a\u5ba2\u6240\u6709\u5185\u5bb9\u5747\u4e3a\u4e2a\u4eba\u4e1a\u4f59\u65f6\u95f4\u521b\u4f5c&#xff0c;\u6240\u8ff0\u6280\u672f\u6848\u4f8b\u5747\u6765\u81ea\u516c\u5f00\u5f00\u6e90\u9879\u76ee&#xff08;\u5982Github&#xff0c;Apache\u57fa\u91d1\u4f1a&#xff09;&#xff0c;\u4e0d\u6d89\u53ca\u4efb\u4f55\u4f01\u4e1a\u673a\u5bc6\u6216\u672a\u516c\u5f00\u6280\u672f&#xff0c;\u5982\u6709\u4fb5\u6743\u8bf7\u8054\u7cfb\u5220\u9664<\/p>\n<h2>\u80cc\u666f<\/h2>\n<p>\u4e0a\u7bc7 blog \u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e&#xff1a;Template Lookup Order&#xff08;.Kind&#xff09; \u5206\u6790\u4e86 Hugo \u6a21\u677f\u7cfb\u7edf\u7684\u7ee7\u627f\u673a\u5236 Template Lookup Order&#xff0c;\u5e76\u7740\u91cd\u5206\u6790\u4e86\u91cc\u9762\u7684 .Kind \u673a\u5236&#xff0c;\u4ee5\u53ca Hugo \u53ef\u4ee5\u7528 .Kind \u505a\u4ec0\u4e48&#xff0c;\u4e0b\u9762\u7ee7\u7eed\u5206\u6790<\/p>\n<h2>\u642d\u5efa\u79c1\u4eba\u535a\u5ba2<\/h2>\n<p>\u7ee7\u7eed\u5206\u6790 https:\/\/gohugo.io\/templates\/lookup-order\/?spm&#061;5176.28103460.0.0.5efd7551qOOnnF#kind Template Lookup Order \u4e2d\u5173\u4e8e Kind \u7684\u63cf\u8ff0<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260202142433-6980b3a1ec145.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u540e\u9762\u8fd9\u6bb5\u8bdd\u6bd4\u8f83\u91cd\u8981<\/p>\n<ul>\n<li>\u5982\u679c\u9875\u9762\u662f\u5355\u4e2a\u5185\u5bb9\u9875&#xff0c;\u6bd4\u5982\u4e00\u7bc7\u535a\u5ba2&#xff0c;\u90a3\u4e48\u8be5\u9875\u9762\u5c5e\u4e8e single page&#xff0c;Hugo \u4f1a\u53bb\u627e single.html \u6a21\u677f<\/li>\n<li>\u5982\u679c\u9875\u9762\u662f\u5217\u8868\u9875&#xff0c;\u6bd4\u5982 home \u9996\u9875&#xff0c;categories \u5206\u7c7b\u9875&#xff0c;tags \u6807\u7b7e\u9875&#xff0c;section \u677f\u5757\u9875&#xff0c;\u90a3\u4e48\u5b83\u4eec\u90fd\u5c5e\u4e8e list page&#xff0c;Hugo \u5c31\u56de\u53bb\u627e list.html \u6a21\u677f<\/li>\n<\/ul>\n<p>\u8fd9\u91cc\u53ef\u4ee5\u770b\u5230&#xff0c;\u9996\u9875 \/ \u867d\u7136\u7279\u6b8a&#xff0c;\u4f46\u5176\u672c\u8d28\u4e0a\u5c5e\u4e8e\u4e00\u4e2a list page&#xff0c;\u6240\u4ee5\u5f53\u7528\u6237\u8bbf\u95ee\u9996\u9875 \/ \u65f6&#xff0c;Hugo \u77e5\u9053\u5176 .Kind &#061; &#034;home&#034;&#xff0c;\u56e0\u4e3a home \u5c5e\u4e8e list page&#xff0c;Hugo \u4f1a\u4f18\u5148\u627e index.html&#xff08;\u9996\u9875\u4e13\u7528&#xff09;&#xff0c;\u627e\u4e0d\u5230\u5c31\u9000\u4e00\u6b65\u53bb\u627e list.html<\/p>\n<p>\u8fd9\u5c31\u662f _default\/list.html \u80fd\u6e32\u67d3\u9996\u9875\u7684\u539f\u56e0&#xff0c;\u5982\u679c\u6ca1\u6709\u66f4\u5177\u4f53\u7684 index.html \u6a21\u677f&#xff0c;Hugo \u5c31\u4f1a\u7528\u901a\u7528\u7684 _default\/list.html \u4f5c\u4e3a\u515c\u5e95&#xff0c;PaperMod \u5c31\u662f\u9760 _default\/list.html \u6765\u6e32\u67d3\u9996\u9875\u7684&#xff0c;\u6240\u4ee5\u5728 PaperMod \u4e2d&#xff0c;\u6ca1\u6709 index.html \u4e5f\u80fd\u663e\u793a\u9996\u9875&#xff0c;\u4f46\u5982\u679c\u7528\u6237\u81ea\u5df1\u65b0\u5efa index.html \u7684\u8bdd\u5c31\u80fd\u5b8c\u5168\u63a5\u7ba1\u9996\u9875&#xff0c;PaperMod \u9009\u62e9\u53ea\u7528\u4e00\u4e2a list.html \u6765\u641e\u5b9a\u6240\u6709\u5217\u8868\u9875&#xff0c;\u4f53\u73b0\u5176\u6781\u7b80\u4e3b\u4e49\u7684\u98ce\u683c<\/p>\n<p>OK&#xff0c;\u9664\u4e86 .Kind \u7c7b\u578b\u7684\u5339\u914d&#xff0c;\u8fd8\u6709\u5982\u4e0b\u5339\u914d\u89c4\u5219 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260202142434-6980b3a2516f7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>Layout&#xff1a;\u53ef\u4ee5\u5728\u6587\u7ae0\u7684 front matter \u6c47\u603b\u6307\u5b9a&#xff0c;\u6bd4\u5982<\/li>\n<\/ul>\n<p>&#8212;<br \/>\nlayout: featured<br \/>\n&#8212;<\/p>\n<p>\u6b64\u65f6 Hugo \u5c31\u4f1a\u4f18\u5148\u67e5\u627e featured.html \u6a21\u677f&#xff0c;\u800c\u4e0d\u662f\u9ed8\u8ba4\u7684 single.html&#xff0c;\u8fd9\u6837\u53ef\u4ee5\u4e3a\u7279\u6b8a\u6587\u7ae0\u4f7f\u7528\u4e0d\u540c\u7684\u5e03\u5c40&#xff0c;\u6bd4\u5982\u7f6e\u9876\u6587\u7ae0&#xff0c;\u5e7f\u544a\u9875\u7b49\u7b49<\/p>\n<p>Output Format&#xff1a;\u6a21\u677f\u7684\u8f93\u51fa\u683c\u5f0f&#xff0c;\u6bcf\u4e2a\u6a21\u677f\u53ef\u4ee5\u8f93\u51fa\u591a\u79cd\u683c\u5f0f\u7684\u9875\u9762&#xff08;\u6587\u4ef6&#xff09;&#xff0c;\u6bd4\u5982 HTML&#xff0c;RSS&#xff0c;AMP&#xff0c;JSON \u7b49&#xff0c;\u6a21\u677f\u540d\u53ef\u4ee5\u5305\u542b\u683c\u5f0f\u540d&#xff0c;\u65b9\u4fbf\u8fa8\u8ba4&#xff0c;\u6bd4\u5982<\/p>\n<ul>\n<li>index.html&#xff1a;\u9ed8\u8ba4 HTML \u6a21\u677f<\/li>\n<li>index.rss.xml&#xff1a;RSS \u8ba2\u9605\u6a21\u677f<\/li>\n<li>single.amp.html&#xff1a;AMP \u52a0\u901f\u6a21\u677f<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260202142434-6980b3a292fe8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>OK&#xff0c;\u7ee7\u7eed\u5f80\u4e0b\u770b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260202142434-6980b3a2b5086.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>Language&#xff1a;\u5728\u591a\u8bed\u8a00\u7ad9\u70b9\u4e2d&#xff0c;\u6a21\u677f\u53ef\u6309\u8bed\u8a00\u533a\u5206&#xff0c;\u6587\u4ef6\u547d\u540d\u89c4\u5219 index.[lang].[format].html&#xff0c;\u6bd4\u5982<\/p>\n<ul>\n<li>index.en.html&#xff1a;\u82f1\u8bed\u9996\u9875<\/li>\n<li>index.zh.html&#xff1a;\u4e2d\u6587\u9996\u9875<\/li>\n<\/ul>\n<p>Type&#xff1a;\u5185\u5bb9\u7c7b\u578b&#xff0c;\u9ed8\u8ba4\u4e3a\u6587\u4ef6\u6240\u5728\u6839\u76ee\u5f55\u540d&#xff0c;\u6bd4\u5982 content\/posts\/xxx.md \u7684 Type \u4e3a posts&#xff0c;\u53ef\u4ee5\u5728 front matter \u4e2d\u81ea\u5b9a\u4e49 type \u8fdb\u884c\u8986\u76d6&#xff0c;\u6bd4\u5982<\/p>\n<p>&#8212;<br \/>\ntype: article<br \/>\n&#8212;<\/p>\n<p>\u6b64\u65f6\u7531\u4e8e\u4e3b\u52a8\u8bbe\u7f6e\u4e86 type&#xff0c;\u6a21\u677f\u8def\u5f84\u9875\u968f\u4e4b\u53d8\u5316&#xff0c;\u4ece layouts\/posts\/list.html \u53d8\u6210 layouts\/article\/list.html&#xff0c;\u5982\u679c\u6ca1\u8bbe\u7f6e&#xff0c;\u5e76\u4e14\u6587\u7ae0\u6839\u76ee\u5f55\u4e3a content\/&#xff0c;\u5219\u9ed8\u8ba4 Type \u4e3a page<\/p>\n<p>Section&#xff1a;\u5bf9\u4e8e .Kind \u4e3a section&#xff0c;taxonomy&#xff0c;term \u7684\u9875\u9762\u6709\u6548&#xff0c;\u7528\u4e8e\u66f4\u7ec6\u7c92\u5ea6\u7684\u6a21\u677f\u63a7\u5236&#xff0c;\u6bd4\u5982 \/tags\/hugo \u5bf9\u5e94\u7684 Section \u4e3a tags&#xff0c;\u6b64\u65f6 Hugo \u5c31\u4f1a\u53bb\u627e layouts\/tags\/list.html&#xff08;\u5982\u679c\u5b58\u5728\u7684\u8bdd&#xff09;<\/p>\n<p>\u4e3e\u4e2a\u5b9e\u9645\u6a21\u677f\u67e5\u627e\u7684\u4f8b\u5b50<\/p>\n<p>\u6bd4\u5982\u7528\u6237\u8bbf\u95ee\u4e00\u4e2a\u4e2d\u6587\u7ad9\u70b9\u7684\u9996\u9875&#xff08;HTML \u683c\u5f0f&#xff09;&#xff0c;\u5e76\u4e14\u6ca1\u6709\u8bbe\u7f6e layout&#xff0c;\u6b64\u65f6 Hugo \u4f1a\u6309\u7167\u5982\u4e0b\u987a\u5e8f\u67e5\u627e\u6a21\u677f<\/p>\n<ul>\n<li>layouts\/index.zh.html&#xff1a;Language &#043; Kind \u8d77\u4f5c\u7528<\/li>\n<li>layouts\/index.html&#xff1a;Kind \u8d77\u4f5c\u7528<\/li>\n<li>layouts\/_default\/index.html&#xff1a;\u56de\u9000\u5230\u9ed8\u8ba4\u6a21\u677f<\/li>\n<li>themes\/&#8230;\/index.zh.html&#xff1a;\u67e5\u627e\u4e3b\u9898\u4e0b\u7684\u6a21\u677f<\/li>\n<li>themes\/&#8230;\/index.html&#xff1a;\u67e5\u627e\u4e3b\u9898\u4e0b\u7684\u9996\u9875<\/li>\n<li>layouts\/_default\/list.html&#xff1a;\u6700\u7ec8\u515c\u5e95&#xff0c;\u56e0\u4e3a\u9996\u9875 Home \u5c5e\u4e8e list page<\/li>\n<\/ul>\n<hr \/>\n<p>OK&#xff0c;\u672c\u7bc7\u5148\u5230\u8fd9\u91cc&#xff0c;\u5982\u6709\u7591\u95ee&#xff0c;\u6b22\u8fce\u8bc4\u8bba\u533a\u7559\u8a00\u8ba8\u8bba&#xff0c;\u795d\u5404\u4f4d\u529f\u529b\u5927\u6da8&#xff0c;\u6280\u672f\u66f4\u4e0a\u4e00\u5c42\u697c&#xff01;&#xff01;&#xff01;\u66f4\u591a\u5185\u5bb9\u89c1\u4e0b\u7bc7 blog<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u58f0\u660e\u3011\u672c\u535a\u5ba2\u6240\u6709\u5185\u5bb9\u5747\u4e3a\u4e2a\u4eba\u4e1a\u4f59\u65f6\u95f4\u521b\u4f5c&#xff0c;\u6240\u8ff0\u6280\u672f\u6848\u4f8b\u5747\u6765\u81ea\u516c\u5f00\u5f00\u6e90\u9879\u76ee&#xff08;\u5982Github&#xff0c;Apache\u57fa\u91d1\u4f1a&#xff09;&#xff0c;\u4e0d\u6d89\u53ca\u4efb\u4f55\u4f01\u4e1a\u673a\u5bc6\u6216\u672a\u516c\u5f00\u6280\u672f&#xff0c;\u5982\u6709\u4fb5\u6743\u8bf7\u8054\u7cfb\u5220\u9664 \u80cc\u666f<br \/>\n\u4e0a\u7bc7 blog \u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e&#xff1a;Template Lookup Order&#xff08;.Kind&#xff09; \u5206\u6790\u4e86 Hugo \u6a21\u677f\u7cfb\u7edf\u7684\u7ee7\u627f\u673a\u5236 Template Look<\/p>\n","protected":false},"author":2,"featured_media":70941,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,103,44],"topic":[],"class_list":["post-70945","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-ubuntu","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>119\u3001\u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e\uff1aTemplate Lookup Order - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/70945.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"119\u3001\u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e\uff1aTemplate Lookup Order - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u3010\u58f0\u660e\u3011\u672c\u535a\u5ba2\u6240\u6709\u5185\u5bb9\u5747\u4e3a\u4e2a\u4eba\u4e1a\u4f59\u65f6\u95f4\u521b\u4f5c&#xff0c;\u6240\u8ff0\u6280\u672f\u6848\u4f8b\u5747\u6765\u81ea\u516c\u5f00\u5f00\u6e90\u9879\u76ee&#xff08;\u5982Github&#xff0c;Apache\u57fa\u91d1\u4f1a&#xff09;&#xff0c;\u4e0d\u6d89\u53ca\u4efb\u4f55\u4f01\u4e1a\u673a\u5bc6\u6216\u672a\u516c\u5f00\u6280\u672f&#xff0c;\u5982\u6709\u4fb5\u6743\u8bf7\u8054\u7cfb\u5220\u9664 \u80cc\u666f \u4e0a\u7bc7 blog \u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e&#xff1a;Template Lookup Order&#xff08;.Kind&#xff09; \u5206\u6790\u4e86 Hugo \u6a21\u677f\u7cfb\u7edf\u7684\u7ee7\u627f\u673a\u5236 Template Look\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/70945.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-02T14:24:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260202142433-6980b3a1ec145.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/70945.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/70945.html\",\"name\":\"119\u3001\u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e\uff1aTemplate Lookup Order - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-02T14:24:36+00:00\",\"dateModified\":\"2026-02-02T14:24:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/70945.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/70945.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/70945.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"119\u3001\u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e\uff1aTemplate Lookup Order\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"119\u3001\u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e\uff1aTemplate Lookup Order - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/70945.html","og_locale":"zh_CN","og_type":"article","og_title":"119\u3001\u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e\uff1aTemplate Lookup Order - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u3010\u58f0\u660e\u3011\u672c\u535a\u5ba2\u6240\u6709\u5185\u5bb9\u5747\u4e3a\u4e2a\u4eba\u4e1a\u4f59\u65f6\u95f4\u521b\u4f5c&#xff0c;\u6240\u8ff0\u6280\u672f\u6848\u4f8b\u5747\u6765\u81ea\u516c\u5f00\u5f00\u6e90\u9879\u76ee&#xff08;\u5982Github&#xff0c;Apache\u57fa\u91d1\u4f1a&#xff09;&#xff0c;\u4e0d\u6d89\u53ca\u4efb\u4f55\u4f01\u4e1a\u673a\u5bc6\u6216\u672a\u516c\u5f00\u6280\u672f&#xff0c;\u5982\u6709\u4fb5\u6743\u8bf7\u8054\u7cfb\u5220\u9664 \u80cc\u666f \u4e0a\u7bc7 blog \u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e&#xff1a;Template Lookup Order&#xff08;.Kind&#xff09; \u5206\u6790\u4e86 Hugo \u6a21\u677f\u7cfb\u7edf\u7684\u7ee7\u627f\u673a\u5236 Template Look","og_url":"https:\/\/www.wsisp.com\/helps\/70945.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-02T14:24:36+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260202142433-6980b3a1ec145.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/70945.html","url":"https:\/\/www.wsisp.com\/helps\/70945.html","name":"119\u3001\u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e\uff1aTemplate Lookup Order - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-02T14:24:36+00:00","dateModified":"2026-02-02T14:24:36+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/70945.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/70945.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/70945.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"119\u3001\u3010Ubuntu\u3011\u3010Hugo\u3011\u9996\u9875\u677f\u5757\u914d\u7f6e\uff1aTemplate Lookup Order"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/70945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=70945"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/70945\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/70941"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=70945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=70945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=70945"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=70945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}