hugo theme noteworthy
1.0.0
注目に値するのは、ライターやブロガー向けのミニマルな Hugo テーマです。
Hugo サイトのルート ディレクトリに移動し、このリポジトリのクローンを作成します。
git clone https://github.com/kimcc/hugo-theme-noteworthy.git themes/noteworthy
詳細については、Hugo のドキュメントを参照してください。
このテーマに含まれる画像サイズ変更ショートコードを使用して画像を追加するには、投稿バンドルを作成する必要があります。投稿用のフォルダーを作成し、その中に Markdown ファイルと画像を置き、Markdown ファイルの名前をindex.md
に変更します。例えば:
my-new-post
- index.md
- image1.jpg
- image2.png
次に、次のようなショートコードを使用して、Markdown ファイル内に画像を追加できます。
{{< resize-image src="image1.jpg" alt="My first image" >}}
次のようにキャプションを追加します。
{{< resize-image src="image2.png" alt="My second image" caption="My caption" >}}
投稿が切り詰められたときに「続きを読む」リンクを表示するには、構成ファイルでshowReadMore = false
をtrue
に設定します。
config.toml
ファイルのparams
セクションで、ソーシャル メディア アカウントへのリンクを追加できます。含めたくないものを削除するだけで、そのアイコンはサイトから消えます。
# Main
email = "#"
facebook = "#"
twitter = "#"
instagram = "#"
tumblr = "#"
reddit = "#"
pinterest = "#"
youtube = "#"
vimeo = "#"
weibo = "#"
vk = "#"
linkedin = "#"
# Writing
medium = "#"
blogger = "#"
wordpress = "#"
# Creative & Visual
dribbble = "#"
behance = "#"
deviantart = "#"
flickr = "#"
# Audio & Music
soundcloud = "#"
# Programming
github = "#"
stackoverflow = "#"
gitlab = "#"
codepen = "#"
# Academic
googlescholar = "#"
impactstory = "#"
orcid = "#"
# Travel
googlemaps = "#"
tripadvisor = "#"
Disqus の短縮名と Google Analytics 識別子をconfig.toml
ファイルに追加します。
# Add your Disqus shortname here.
disqusShortname = ""
# Add your Google Analytics identifier: UA-XXXXXXXX-X
googleAnalytics = ""
投稿で Ko-fi ボタンを有効にしたい場合は、構成ファイルでそれを有効にし、識別子を追加します。
# Set enableKofi to true to enable the Ko-fi support button. Add your Ko-fi ID to link to your account.
enableKofi = true
kofi = ""
MITライセンスに基づいてリリースされています。