#author("2022-05-31T05:55:23+00:00","default:src128","src128")
#author("2022-08-18T08:28:50+00:00","default:src128","src128")
&tag(Hugo/ananke);
*目次 [#u7d548d9]
#contents
*関連ページ [#z3035d34]
*参考情報 [#i3ff65e9]
-[[kondoumh | Home:https://kondoumh.com/]]
-[[初心者Jamstack:https://jam.bchari.com/]]

*カスタマイズ [#s2082e91]

**トップ画像を変更する [#c93f859a]

**content/_index.mdを作成する [#jc1743fd]
-anankeテーマに付属しているデモサイトを確認すると
-content/_index.mdを作成しそこでfeatured_imageを指定すれば良いっぽい。
#pre{{
---
featured_image: '/images/gohugo-default-sample-hero-image.jpg'
---
Anankeのデモです。

}}

***以下は有効でない(2022/08/18(木)現在)。 [#sd2e443f]
-cofnig.tomlにfeatured_imageを指定する。[[HugoプロジェクトをFirebase Hostingに自動デプロイするGitHub Actionsを設定してみた | DevelopersIO:https://dev.classmethod.jp/articles/github-actions-hugo-firebase/]]
#pre{{
[params]
  background_color_class = "bg-black"
  featured_image = "/images/gohugo-default-sample-hero-image.jpg"
}}

*トラブルシューティング [#wb2b0e0f]

**posts以外のコンテンツが表示されない [#gf32ea7d]
-config.tomlのmainSectionsで指定しないとだめらしい。
#pre{{
[params]
  mainSections = ["posts", "test", "test2"]
}}


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS