summaryrefslogtreecommitdiff
path: root/zola.toml
blob: 2954b0ebadb81996bc97d9eb6f7e59eeba017ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# Zola 0.23.3 configuration
# https://www.getzola.org/documentation/getting-started/configuration/

# -----------------------------------------------------------------------------
# Main
# -----------------------------------------------------------------------------

# サイトの基準URL(唯一の必須項目)
base_url = "https://www.takashi-2521.com"

# サイト全体のメタデータ。標準feedでも使用される
title = "たかしの記録"
description = """
日々考えたこととか思ったことの記録や作成したソフトウェアをここに公開します。
"""
default_language = "ja"

# 外部themeは使用しない。空文字でも指定扱いになるため未指定にする
# theme = "my-theme"

# build成果物の出力先
output_dir = "public"

# 再build時に出力先直下のdotfileを保持するか
preserve_dotfiles_in_output = false

# sass/内のSassをcompileする
compile_sass = true

# 生成HTMLをminifyするか
minify_html = false

# content/から除外するassetのglob
ignored_content = []

# content/内でTera処理を行わないfileのglob
skip_content_templating = []

# static/から除外するfileのglob
ignored_static = []

# サイト全体のAtom/RSS feedを生成する
generate_feeds = true

# sitemapから除外するpagination範囲("none"または"all")
exclude_paginated_pages_in_sitemap = "none"

# feedのfile名兼template名
feed_filenames = ["atom.xml", "rss.xml"]

# feedに含める記事数。未指定なら全件
# feed_limit = 20

# static/および併置assetをcopyではなくhard linkするか
hard_link_static = false

# Pageとfeedの既定author
author = "Takashi"

# Notesを分類するtags taxonomy
taxonomies = [
  { name = "tags", feed = false },
]

# taxonomy URLの共通prefix。未指定ならサイトroot
# taxonomy_root = "blog"

# 既定言語のsearch indexを生成するか
build_search_index = false

# Zola標準のsitemap.xmlを生成する
generate_sitemap = true

# Zola標準のrobots.txtを生成する
generate_robots_txt = true

# -----------------------------------------------------------------------------
# Markdown
# -----------------------------------------------------------------------------

[markdown]

# :smile:などのemoji aliasをUnicodeへ変換するか
render_emoji = false

# 外部linkへ付けるCSS class
external_links_class = "external-link"

# 外部linkを新しいtabで開くか
external_links_target_blank = false

# 外部linkへrel="nofollow"を付けるか
external_links_no_follow = false

# 外部linkへrel="noreferrer"を付けるか
external_links_no_referrer = false

# 外部linkへrel="external"を付けるか
external_links_external = true

# 引用符や三点リーダーなどを組版向け文字へ変換する
smart_punctuation = false

# definition list構文を有効にするか
definition_list = false

# 画像へdecoding="async"とloading="lazy"を付けるか
lazy_async_image = true

# footnoteを本文位置ではなく文末へまとめるか
bottom_footnotes = true

# GitHub形式のalert/calloutを有効にするか
github_alerts = false

# 見出しへanchor linkを挿入する位置("left"、"right"、"heading"、"none")
insert_anchor_links = "heading"

# -----------------------------------------------------------------------------
# Markdown syntax highlighting
# -----------------------------------------------------------------------------

[markdown.highlighting]

# 未対応言語を含むcode blockをerrorにする
error_on_missing_language = true

# inline styleではなくclassを出力し、厳格なCSPに対応する
style = "class"

# 単一theme使用時のtheme名。light/darkとの同時指定はできないため未指定にする
# theme = "github-light"

# OSのcolor schemeに対応する組み込みtheme
light_theme = "github-light"
dark_theme = "github-dark"

# 追加するTextMate grammar/themeのJSON file
extra_grammars = []
extra_themes = []

# code blockのdata属性を付ける要素("code"、"pre"、"both"、"none")
data_attr_position = "code"

# dual themeの生成CSSへcolor-schemeを設定するか
add_color_scheme = true

# -----------------------------------------------------------------------------
# Link checker
# -----------------------------------------------------------------------------

[link_checker]

# このprefixで始まる外部URLはlink確認を省略する
skip_prefixes = [
  "http://[2001:db8::]/",
]

# このprefixで始まる外部URLはanchor確認を省略する
skip_anchor_prefixes = [
  "https://caniuse.com/",
]

# 内部/外部link問題の扱い("error"または"warn")
internal_level = "error"
external_level = "warn"

# -----------------------------------------------------------------------------
# Slugification
# -----------------------------------------------------------------------------

[slugify]

# path、taxonomy、anchorのslug化方式("on"、"safe"、"off")
paths = "on"
taxonomies = "on"
anchors = "on"

# path slug生成時にfile名先頭の日付を保持するか
paths_keep_dates = false

# -----------------------------------------------------------------------------
# Search
# build_search_index=falseのため現時点では出力されないが、全項目を明示する
# -----------------------------------------------------------------------------

[search]

include_title = true
include_description = false
include_date = false
include_path = false
include_content = true

# indexへ含める本文の最大code point数。未指定なら切り詰めない
# truncate_content_length = 100

# "elasticlunr_javascript"、"elasticlunr_json"、"fuse_javascript"、"fuse_json"
index_format = "elasticlunr_javascript"

# -----------------------------------------------------------------------------
# Translations / Languages
# -----------------------------------------------------------------------------

# default_language向けの任意翻訳。現時点では使用しない
[translations]

# 追加言語の設定。単一言語サイトのため現時点では使用しない
[languages]

# -----------------------------------------------------------------------------
# Custom site metadata
# -----------------------------------------------------------------------------

[extra]

home_notes_limit = 5
home_software_limit = 4
copyright_year = 2026
mail = "takashi@takashi-2521.com"
cgit = "https://git.takashi-2521.com"
github = "https://github.com/takashi000"