forked from hugo-fixit/FixIt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhugo.toml
More file actions
1873 lines (1683 loc) · 47.9 KB
/
Copy pathhugo.toml
File metadata and controls
1873 lines (1683 loc) · 47.9 KB
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# =====================================================================================
# It's recommended to use Alternate Theme Config to configure FixIt
# Modifying this file may result in merge conflict
# There are currently some restrictions to what a theme component can configure:
# params, menu(s), outputformats and mediatypes
# =====================================================================================
# -------------------------------------------------------------------------------------
# Hugo Configuration
# See: https://gohugo.io/configuration/all/
# -------------------------------------------------------------------------------------
# website title
title = ""
# hostname (and path) to the root
baseURL = "http://localhost:1313"
# theme list
# theme = ["FixIt"] # enable in your site config file
# determines default content language ["en", "zh-cn", "fr", "pl", ...]
defaultContentLanguage = "en"
# language code ["en", "zh-CN", "fr", "pl", ...]
languageCode = "en"
# language name ["English", "简体中文", "Français", "Polski", ...]
languageName = "English"
# whether to include Chinese/Japanese/Korean
hasCJKLanguage = false
# copyright description used only for seo schema
copyright = ""
# whether to use robots.txt
enableRobotsTXT = true
# whether to use git commit log
enableGitInfo = true
# whether to use emoji code
enableEmoji = true
# the main sections of a site
# if set, the MainSections method on the Site object returns the given sections,
# otherwise it returns the section with the most pages.
# mainSections = ["posts"]
# -------------------------------------------------------------------------------------
# Front Matter Configuration
# See: https://gohugo.io/configuration/front-matter/
# -------------------------------------------------------------------------------------
[frontmatter]
_merge = "shallow"
lastmod = [
"lastmod",
":git",
":fileModTime",
":default",
]
# -------------------------------------------------------------------------------------
# Imaging Configuration
# See: https://gohugo.io/configuration/imaging/
# -------------------------------------------------------------------------------------
[imaging]
_merge = "shallow"
quality = 75
# -------------------------------------------------------------------------------------
# Menu Configuration
# See: https://fixit.lruihao.cn/documentation/basics/#menu-configuration
# -------------------------------------------------------------------------------------
[menus]
[[menus.main]]
identifier = "archives"
parent = ""
# you can add extra information before the name (HTML format is supported), such as icons
pre = ""
# you can add extra information after the name (HTML format is supported), such as icons
post = ""
name = "Archives"
url = "/archives/"
# title will be shown when you hover on this menu link
title = ""
weight = 1
# add user-defined content to menu items
[menus.main.params]
# add css class to a specific menu item
class = ""
# whether set as a draft menu item whose function is similar to a draft post/page
draft = false
# add fontawesome icon to a specific menu item
icon = "fa-solid fa-archive"
# set menu item type, optional values: ["mobile", "desktop"]
type = ""
# whether to show the submenu item divider line
divided = false
[[menus.main]]
identifier = "categories"
parent = ""
pre = ""
post = ""
name = "Categories"
url = "/categories/"
title = ""
weight = 2
[menus.main.params]
icon = "fa-solid fa-folder-tree"
[[menus.main]]
identifier = "tags"
parent = ""
pre = ""
post = ""
name = "Tags"
url = "/tags/"
title = ""
weight = 3
[menus.main.params]
icon = "fa-solid fa-tags"
# -------------------------------------------------------------------------------------
# Related content Configuration
# See: https://gohugo.io/content-management/related-content/
# -------------------------------------------------------------------------------------
[related]
includeNewer = false
threshold = 80
toLower = false
[[related.indices]]
applyFilter = false
cardinalityThreshold = 0
name = 'keywords'
pattern = ''
toLower = false
type = 'basic'
weight = 100
[[related.indices]]
applyFilter = false
cardinalityThreshold = 0
name = 'date'
pattern = ''
toLower = false
type = 'basic'
weight = 10
[[related.indices]]
applyFilter = false
cardinalityThreshold = 0
name = 'tags'
pattern = ''
toLower = false
type = 'basic'
weight = 80
[[related.indices]]
applyFilter = false
name = 'fragmentrefs'
type = 'fragments'
weight = 80
# -------------------------------------------------------------------------------------
# Modules Configuration
# See: https://gohugo.io/configuration/module/
# -------------------------------------------------------------------------------------
[module]
[module.hugoVersion]
extended = true
min = "0.161.0"
# -------------------------------------------------------------------------------------
# Markup Configuration
# See: https://gohugo.io/configuration/markup/
# -------------------------------------------------------------------------------------
[markup]
_merge = "shallow"
# Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting)
[markup.highlight]
# ~~~~~~~~~~ necessary configurations ~~~~~~~~~~
# https://github.com/hugo-fixit/FixIt/issues/43
codeFences = true
noClasses = false
# ~~~~~~~~~~ necessary configurations ~~~~~~~~~~
anchorLineNos = false
guessSyntax = true
lineNos = true
lineNumbersInTable = true
# goldmark is from Hugo 0.60 the default library used for Markdown
# See: https://gohugo.io/configuration/markup/#goldmark
[markup.goldmark]
duplicateResourceFiles = false
[markup.goldmark.extensions]
definitionList = true
footnote = true
linkify = true
linkifyProtocol = 'https'
strikethrough = false
table = true
taskList = true
typographer = true
# See: https://gohugo.io/configuration/markup/#extras
[markup.goldmark.extensions.extras]
[markup.goldmark.extensions.extras.delete]
enable = true
[markup.goldmark.extensions.extras.insert]
enable = true
[markup.goldmark.extensions.extras.mark]
enable = true
[markup.goldmark.extensions.extras.subscript]
enable = true
[markup.goldmark.extensions.extras.superscript]
enable = true
# https://gohugo.io/content-management/mathematics/
[markup.goldmark.extensions.passthrough]
enable = true
[markup.goldmark.extensions.passthrough.delimiters]
block = [
[
'\[',
'\]'
],
[
'$$',
'$$'
]
]
inline = [
[
'\(',
'\)'
],
[
'$',
'$'
]
]
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
[markup.goldmark.renderer]
hardWraps = false
# whether to use HTML tags directly in the document
unsafe = true
xhtml = false
# -------------------------------------------------------------------------------------
# Sitemap Configuration
# See: https://gohugo.io/templates/sitemap/#configuration
# -------------------------------------------------------------------------------------
[sitemap]
changefreq = "weekly"
disable = false
filename = "sitemap.xml"
priority = 0.5
# -------------------------------------------------------------------------------------
# Permalinks Configuration
# See: https://gohugo.io/content-management/urls/#permalinks
# -------------------------------------------------------------------------------------
[permalinks]
[permalinks.page]
# posts = "/p/:slugorcontentbasename"
[permalinks.section]
# posts = "/posts/:slugorcontentbasename"
[permalinks.taxonomy]
[permalinks.term]
# -------------------------------------------------------------------------------------
# Privacy Configuration
# See: https://gohugo.io/configuration/privacy/
# -------------------------------------------------------------------------------------
[privacy]
[privacy.x]
enableDNT = true
[privacy.youtube]
privacyEnhanced = true
# -------------------------------------------------------------------------------------
# Media Types Configuration
# See: https://gohugo.io/configuration/media-types/
# -------------------------------------------------------------------------------------
# [mediaTypes]
# [mediaTypes."application/feed+json"]
# suffixes = [ "json" ]
# -------------------------------------------------------------------------------------
# Output Format Configuration
# See: https://gohugo.io/configuration/output-formats/
# -------------------------------------------------------------------------------------
[outputFormats]
# Options to make output /archives/index.html file
[outputFormats.archives]
path = "archives"
baseName = "index"
mediaType = "text/html"
isPlainText = false
isHTML = true
permalinkable = true
notAlternative = true
# Options to make output /offline/index.html file
[outputFormats.offline]
path = "offline"
baseName = "index"
mediaType = "text/html"
isPlainText = false
isHTML = true
permalinkable = true
notAlternative = true
# Options to make output /link/index.html file
[outputFormats.link]
path = "link"
baseName = "index"
mediaType = "text/html"
isPlainText = false
isHTML = true
permalinkable = true
notAlternative = true
# Options to make output readme.md file
[outputFormats.readme]
baseName = "readme"
mediaType = "text/markdown"
isPlainText = true
isHTML = false
notAlternative = true
# Options to make output baidu_urls.txt file
[outputFormats.baidu_urls]
baseName = "baidu_urls"
mediaType = "text/plain"
isPlainText = true
isHTML = false
notAlternative = true
# Options to make output search.json file
[outputFormats.search]
baseName = "search"
mediaType = "application/json"
rel = "search"
isPlainText = true
isHTML = false
permalinkable = true
# Options to make output site.webmanifest file
[outputFormats.manifest]
baseName = "site"
mediaType = "application/manifest+json"
rel = "manifest"
isPlainText = true
isHTML = false
# -------------------------------------------------------------------------------------
# Output Configuration
# See: https://gohugo.io/configuration/outputs/
# -------------------------------------------------------------------------------------
# options to make hugo output files, the optional values are below:
# home = ["html", "rss", "archives", "search", "offline", "manifest", "link", "readme", "baidu_urls"]
# page = ["html", "markdown"]
# section = ["html", "rss"]
# taxonomy = ["html"]
# term = ["html", "rss"]
[outputs]
_merge = "shallow"
home = [
"html",
"rss",
"archives",
"search",
"offline",
"manifest",
"link"
]
page = [
"html",
"markdown"
]
section = [
"html",
"rss"
]
taxonomy = [ "html" ]
term = [
"html",
"rss"
]
# -------------------------------------------------------------------------------------
# Taxonomies Configuration
# See: https://gohugo.io/configuration/taxonomies/
# -------------------------------------------------------------------------------------
[taxonomies]
_merge = "shallow"
category = "categories"
tag = "tags"
collection = "collections"
# -------------------------------------------------------------------------------------
# Theme Core Configuration
# Two types of params:
# 1. Site-level params — apply to the entire site, can NOT be overridden per-page.
# 2. Page-level params — can be overridden per-page via page front matter.
#
# See: https://fixit.lruihao.cn/documentation/basics/#theme-configuration
# -------------------------------------------------------------------------------------
[params]
# FixIt theme version
version = "1.0.X" # e.g. "0.4.X", "0.4.5", "v1.0.0" etc.
# site description
description = ""
# site keywords
keywords = []
# site default theme ["light", "dark", "auto"]
default_theme = "auto"
# which hash function used for SRI, when empty, no SRI is used
# ["sha256", "sha384", "sha512", "md5"]
fingerprint = ""
# date format
date_format = "2006-01-02"
# website images for Open Graph and Twitter Cards
images = []
# whether to add site title to the title of every page
# remember to set up your site title in `hugo.toml` (e.g. title = "title")
with_site_title = true
# title delimiter when the site title is be added to the title of every page
title_delimiter = "-"
# whether to add site subtitle to the title of index page
# remember to set up your site subtitle by `params.header.subtitle.name`
index_with_subtitle = false
# whether to enable merging missing translations from other languages
# when set to true, missing translations from other languages will be merged and displayed
# default is false for better performance, especially for single-language sites
# set to true if your site has multiple languages and you want to show all content
enable_translation_merge = false
# whether to enable tooltip replacement for elements with title attribute, such as footnote references
tooltip = true
# FixIt will, by default, inject a theme meta tag in the HTML head on the home page only.
# you can turn it off, but we would really appreciate if you don't, as this is a good way to watch FixIt's popularity on the rise.
disable_theme_inject = false
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Page-level params
# All params and sections below can be used in page front matter to override per-page.
#
# Example front matter:
# ---
# capitalize_titles: false
# hidden_from_home_page: true
# toc:
# enable: true
# math:
# enable: true
# comment:
# enable: false
# ---
#
# See: https://fixit.lruihao.cn/documentation/content-management/front-matter
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# whether to capitalize titles
capitalize_titles = true
# whether to show summary in plain text
summary_plainify = false
# whether to enable the author's avatar of the post
author_avatar = true
# whether to hide a page from home page
hidden_from_home_page = false
# whether to hide a page from search results
hidden_from_search = false
# whether to hide a page from related posts
hidden_from_related = false
# whether to hide a page from RSS, Atom and JSON feed
hidden_from_feed = false
# whether to enable twemoji
twemoji = false
# whether to enable lightgallery
# set to true, images in the content will be shown as the gallery if the image has a title, e.g. 
# set to "force", images in the content will be forced to shown as the gallery regardless of the image has a title or not, e.g. 
# [todo] change gallery engine in the future
lightgallery = false
# whether to enable the ruby extended syntax
ruby = true
# whether to enable the fraction extended syntax
fraction = true
# whether to enable the fontawesome extended syntax
fontawesome = true
# license info (HTML format is supported)
license = '<a rel="license external nofollow noopener noreferrer" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a>'
# Page style ["narrow", "normal", "wide", ...]
page_style = "normal"
# Auto Bookmark Support
# if true, save the reading progress when closing the page.
auto_bookmark = false
# whether to show the last modified time
show_lastmod = true
# whether to enable wordCount
word_count = true
# whether to enable readingTime
reading_time = true
# whether to enable instant.page
instant_page = false
# whether to enable collection list at the sidebar
collection_list = false
# whether to enable collection navigation at the end of the post
collection_navigation = false
# end of post flag
end_flag = ""
# Author Configuration
[params.author]
name = ""
email = ""
link = ""
avatar = ""
# Link config
[params.link]
# whether to add external Icon for external links automatically
external_icon = true
# External link guard config
[params.link.guard]
enable = false
# external link guard mode, available modes: ["modal", "redirect"]
# in "modal" mode, a dialog will pop up to ask for confirmation when users click external links
# in "redirect" mode, users will be redirected to an intermediate page before visiting external links
mode = "modal"
# allowed domains (exact host or parent domain) will skip confirmation
allow_domains = []
# Image config
# combined with Hugo's image processing option `imaging` for image optimisation
[params.image]
# cache remote images for better optimisations
cache_remote = false
# Image resizing and optimisation (may slow builds)
optimise = false
# A list of image file names or patterns to exclude from optimisation
# e.g. ["no-optimize.jpg", "*.tiff", "images/exclude-*.webp"]
black_list = []
# Code block wrapper config
# you can override the global config via Markdown attributes, for example:
# ```lang {mode="mac", max_shown_lines=5}
# code here
# ```
[params.codeblock]
# whether to enable the code block wrapper
wrapper = true
# code block mode
# available modes: ["classic", "mac", "simple", ...]
# if you set to custom value, you need to create a custom CSS for data-mode attribute
mode = "classic"
# additional classes for the code block wrapper
# e.g. "is-collapsed is-expanded line-nos-hidden line-wrapping"
wrapper_class = ""
# the maximum number of lines to show in the code block preview
max_shown_lines = 10
# whether to show shadow effect for code blocks, available values: ["always", "hover", "never"]
shadow = "never"
# whether to enable code copy button
copyable = true
# [classic] whether to enable code download button in the code block header
downloadable = false
# [classic] whether to enable code fullscreen button in the code block header
fullscreen = false
# [classic] whether to enable line numbers toggle button in the code block header
line_nos_toggler = true
# [classic] whether to enable toggle line wrapping button in the code block header
line_wrap_toggler = true
# [classic][Experimental] whether to enable code edit button in the code block header
editable = false
# JSON Viewer config
# See https://github.com/Lruihao/json-viewer-element
[params.json_viewer]
enable = true
expand_depth = 1
copyable = true
sort = false
boxed = true
# File tree config
# See https://fixit.lruihao.cn/documentation/content-management/shortcodes/extended/file-tree/
[params.filetree]
# the expand level of the tree (expand all: -1, collapse all: 0)
level = 1
# whether to append a trailing "/" to folder names
folder_slash = false
# list of file or folder names to ignore
ignore_list = []
# list of file or folder names to highlight
highlight_list = []
# Mermaid config
# See http://fixit.lruihao.cn/documentation/content-management/diagrams-support/mermaid/
[params.mermaid]
# whether to enable the Mermaid wrapper
# When enabled, Mermaid diagrams are wrapped with diagram tabs and actions:
# - pan/zoom (drag & ctrl+wheel)
# - reset view
# - download as SVG
wrapper = true
# Mermaid ESM module CDN source
# default is https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs
cdn = ""
# ZenUML ESM module CDN source
# default is empty, you can set it to a CDN source to enable ZenUML support
# e.g. https://cdn.jsdelivr.net/npm/@mermaid-js/mermaid-zenuml/dist/mermaid-zenuml.esm.min.mjs
zenuml = ""
# for values, see https://mermaid.js.org/config/theming.html#available-themes
themes = [
"default",
"dark"
]
# The security level for Mermaid diagrams
# optional values: ["strict", "loose", "antiscript", "sandbox"]
security_level = "loose"
# The appearance style for Mermaid diagrams
# optional values: ["classic", "handDrawn"]
look = "handDrawn"
# Specifies the font to be used in the rendered diagrams
font_family = ""
# Layout loaders from ESM module CDN sources (e.g., ELK layout engine)
# Example: ["https://cdn.jsdelivr.net/npm/@mermaid-js/layout-elk/dist/mermaid-layout-elk.esm.min.mjs"]
# this will enable additional layout options: ["elk", "elk.layered", "elk.stress", "elk.force", "elk.mrtree"]
layout_loaders = []
# default layout algorithm for rendering diagrams
# available options: "dagre" (default), "elk", "elk.layered", "elk.stress", "elk.force", "elk.mrtree"
# note: ELK layouts require layout_loaders to be configured first
layout = "dagre"
# Table of the contents config
[params.toc]
# whether to enable the table of the contents
enable = true
# whether to keep the static table of the contents in front of the post
keep_static = false
# whether to make the table of the contents in the sidebar automatically collapsed
auto = true
# position of TOC ["left", "right"]
position = "right"
# supersede `markup.tableOfContents` settings
ordered = false
start_level = 2
end_level = 6
# whether to decrease the H1 heading level in content
decrease_h1 = false
# Display a message at the beginning of an article to warn the reader that its content might be expired
[params.expiration_reminder]
enable = false
# display the reminder if the last modified time is more than 90 days ago
reminder = 90
# display warning if the last modified time is more than 180 days ago
warning = 180
# if the article expires, close the comment or not
close_comment = false
# page heading config
[params.heading]
# whether to capitalize automatic text of headings
capitalize = false
# must set `params.toc.ordered` to true
[params.heading.number]
# whether to enable auto heading numbering
enable = false
# only enable in main section pages (default is posts)
only_main_section = true
[params.heading.number.format]
h1 = "{title}"
h2 = "{h2} {title}"
h3 = "{h2}.{h3} {title}"
h4 = "{h2}.{h3}.{h4} {title}"
h5 = "{h2}.{h3}.{h4}.{h5} {title}"
h6 = "{h2}.{h3}.{h4}.{h5}.{h6} {title}"
# mathematical formulas configuration
# See http://fixit.lruihao.cn/documentation/content-management/markdown-syntax/extended/#formula
[params.math]
enable = true
# mathematical formulas rendering engines, optional values: ["katex", "mathjax"]
type = "katex"
# KaTeX server-side rendering (https://katex.org)
# KaTeX partial config: https://gohugo.io/functions/transform/tomath/#options
[params.math.katex]
# KaTeX extension copy-tex
copy_tex = true
throw_on_error = false
error_color = "#ff4949"
# custom macros map
# syntax: <macro> = <definition>
[params.math.katex.macros]
# "\\f" = "#1f(#2)" # usage: $\f{a}{b}$
# MathJax server-side rendering (https://www.mathjax.org)
# MathJax config: https://docs.mathjax.org/en/latest/options/index.html
[params.math.mathjax]
cdn = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
[params.math.mathjax.packages]
# "[+]" = ["configmacros"]
# custom macros map
# syntax: <macro> = <definition>
[params.math.mathjax.macros]
# bold = ["{\\bf #1}", 1] # usage: $\bold{math}$
[params.math.mathjax.loader]
load = [ "ui/safe" ]
[params.math.mathjax.loader.paths]
# custom = "https://cdn.jsdelivr.net/gh/sonoisa/XyJax-v3@3.0.1/build/"
# more loader config e.g source, dependencies, provides etc.
[params.math.mathjax.options]
enable_menu = true
# HTML tags that won't be searched for math
skip_html_tags = [
"script",
"noscript",
"style",
"textarea",
"pre",
"code",
"math",
"select",
"option",
"mjx-container"
]
# class that marks tags not to search
ignore_html_class = "mathjax_ignore"
# HTML tags that can appear within math
[params.math.mathjax.options.include_html_tags]
# "#comment" = ""
# br = "\n"
# wbr = ""
# Mapbox GL JS config (https://docs.mapbox.com/mapbox-gl-js)
[params.mapbox]
# access token of Mapbox GL JS
access_token = ""
# style for the light theme
light_style = "mapbox://styles/mapbox/light-v11"
# style for the dark theme
dark_style = "mapbox://styles/mapbox/dark-v11"
# whether to add NavigationControl
navigation = true
# whether to add GeolocateControl
geolocate = true
# whether to add ScaleControl
scale = true
# whether to add FullscreenControl
fullscreen = true
# PostChat AI config
# based on your posts to build a knowledge base, support AI summary, AI search, and AI Chatbot.
# get PostChat Key from my invitation link, thanks for your support!
# https://ai.zhheo.com/console/login?InviteID=85041330
[params.post_chat]
enable = false
key = ""
# how users initiate chats: ["iframe", "magic"]
user_mode = "iframe"
add_button = true
default_input = false
left = ""
bottom = ""
width = ""
height = ""
fill = ""
background_color = ""
upload_web = true
show_invite_link = true
user_title = ""
user_desc = ""
# dom container to be blacked out, e.g. [".aplayer"]
black_dom = []
# only for iframe mode
frame_width = "" # e.g. "375px"
frame_height = "" # e.g. "600px"
# only for magic mode
user_icon = ""
default_chat_questions = []
default_search_questions = []
hot_words = true
# Summary AI config
# See https://ai.zhheo.com/docs/summary.html
[params.post_summary]
enable = false
# if you set `params.post_chat.key`, you don't need to set `params.post_summary.key`
key = ""
title = ""
# themes options: ["", "simple", "yanzhi", "menghuan"]
theme = ""
post_url = ""
blacklist = ""
word_limit = 1000
typing_animate = true
beginning_text = ""
loading_text = true
# Podcast AI config
# See https://ai.zhheo.com/docs/podcast.html
[params.podcast]
enable = false
# Related content config (https://gohugo.io/content-management/related/)
[params.related]
enable = false
count = 5
# position of related content, optional values: ["aside", "footer"]
position = [
"aside",
"footer"
]
# Donate (Sponsor) settings
[params.reward]
enable = false
animation = false
# position relative to post footer, optional values: ["before", "after"]
position = "after"
# comment = "Buy me a coffee"
# display mode of QR code images, optional values: ["static", "fixed"], default: `static`
mode = "static"
[params.reward.ways]
# wechatpay = "/images/wechatpay.png"
# alipay = "/images/alipay.png"
# paypal = "/images/paypal.png"
# bitcoin = "/images/bitcoin.png"
# Post footer link config
[params.post_link]
# whether to show link to Raw Markdown content
markdown = true
# whether to show link to view source code (requires git_info.repo)
source = true
# whether to show link to edit the post (requires git_info.repo)
edit = true
# whether to show link to report issue (requires git_info.repo)
report = true
# open in editor protocol (e.g. "vscode", "trae" etc.), empty to disable
editor = "vscode"
# Social share links in post page
[params.share]
enable = true
Twitter = true
Facebook = true
Linkedin = false
Whatsapp = false
Pinterest = false
Tumblr = false
HackerNews = false
Reddit = false
VK = false
Buffer = false
Xing = false
Line = false
Instapaper = false
Pocket = false
Flipboard = false
Weibo = true
Myspace = false
Blogger = false
Baidu = false
Odnoklassniki = false
Evernote = false
Skype = false
Trello = false
Mix = false
# Comment config
[params.comment]
enable = false
# Artalk comment config (https://artalk.js.org/)
[params.comment.artalk]
enable = false
server = "https://yourdomain"
site = "默认站点"
# prefer remote (backend) configuration over local
# If true, remote config takes priority; if false (default), local config overrides remote
prefer_remote_conf = false
placeholder = ""
no_comment = ""
send_btn = ""
editor_travel = true
flat_mode = "auto"
# enable lightgallery support
lightgallery = false
locale = ""
emoticons = ""
nest_max = 2
nest_sort = "DATE_ASC" # ["DATE_ASC", "DATE_DESC", "VOTE_UP_DESC"]
vote = true
vote_down = false
ua_badge = true
list_sort = true
list_unread_highlight = false
img_upload = true
img_lazy_load = false # false | "native" | "data-src"
preview = true
version_check = true
# request timeout in milliseconds
req_timeout = 15000
# page view increment on comment list load
pv_add = true
# pagination config
[params.comment.artalk.pagination]
page_size = 20
read_more = true
auto_load = true
# height limit config
[params.comment.artalk.height_limit]
content = 300
children = 400
scrollable = false
# Disqus comment config (https://disqus.com)
[params.comment.disqus]
enable = false
# Disqus shortname to use Disqus in posts
shortname = ""
# Gitalk comment config (https://github.com/gitalk/gitalk)
[params.comment.gitalk]
enable = false
owner = ""
repo = ""
client_id = ""
client_secret = ""
# Valine comment config (https://github.com/xCss/Valine)
[params.comment.valine]
enable = false
app_id = ""
app_key = ""
placeholder = ""
avatar = "mp"
meta = [
'nick',
'mail',
'link'
]
required_fields = []
page_size = 10
lang = ""
visitor = true
record_ip = true
highlight = true