侧边栏壁纸
博主昵称

主题配置内容 🍂

主题配置内容
  • 文章发布于2023-05-27 12:14:22,共3573字,阅读内容所需的预计时间17分钟。 本文总阅读量

主题配置文件可配置的全量内容

  1[params]
  2  #  FixIt 主题版本
  3  version = "0.2.X" # 例如:"0.2.X", "0.2.15", "v0.2.15" 等
  4  # 网站描述
  5  description = "这是我的 Hugo FixIt 网站"
  6  # 网站关键词
  7  keywords = ["Hugo", "FixIt"]
  8  # 网站默认主题样式 ["light", "dark", "auto"]
  9  defaultTheme = "auto"
 10  #  哪种哈希函数用来 SRI, 为空时表示不使用 SRI
 11  # ["sha256", "sha384", "sha512", "md5"]
 12  fingerprint = ""
 13  #  日期格式
 14  dateFormat = "2006-01-02"
 15  # 网站图片,用于 Open Graph 和 Twitter Cards
 16  images = ["/logo.png"]
 17  #  开启 PWA 支持
 18  enablePWA = true
 19  #  是否自动显示外链图标
 20  externalIcon = false
 21  #  是否反转导航菜单的顺序
 22  navigationReverse = false
 23  #  是否在每个页面标题中添加网站标题
 24  # 请记得在 `hugo.toml` 中设置网站标题 (例如 title = "title")
 25  withSiteTitle = true
 26  #  当网站标题被添加到每个页面标题时的标题分隔符
 27  titleDelimiter = "-"
 28  #  是否在主页标题中添加网站副标题
 29  # 请记得通过 `params.header.subtitle.name` 设置网站副标题
 30  indexWithSubtitle = false
 31  #  默认情况下,FixIt 只会在主页的 HTML 头中注入主题元标记
 32  # 你可以将其关闭,但如果你不这样做,我们将不胜感激,因为这是观察 FixIt 受欢迎程度上升的好方法
 33  disableThemeInject = false
 34
 35  # 作者配置
 36  [params.author]
 37    name = ""
 38    email = ""
 39    link = ""
 40    avatar = ""
 41
 42  #  公共 Git 仓库信息,仅在 enableGitInfo 设为 true 时有效
 43  [params.gitInfo]
 44    # 例如 "https://github.com/hugo-fixit/docs"
 45    repo = ""
 46    branch = "main"
 47    # 相对于仓库根目录的内容目录路径
 48    dir = "content"
 49    # 用于报告文章问题的 issue 模板
 50    # 可用模板参数:{title} {URL} {sourceURL}
 51    issueTpl = "title=[BUG]%20{title}&body=|Field|Value|%0A|-|-|%0A|Title|{title}|%0A|URL|{URL}|%0A|Filename|{sourceURL}|"
 52
 53  #  应用图标配置
 54  [params.app]
 55    # 当添加到 iOS 主屏幕或者 Android 启动器时的标题,覆盖默认标题
 56    title = "FixIt"
 57    # 是否隐藏网站图标资源链接
 58    noFavicon = false
 59    # 更现代的 SVG 网站图标,可替代旧的 .png 和 .ico 文件
 60    svgFavicon = ""
 61    # Safari 图标颜色
 62    iconColor = "#5bbad5"
 63    # Windows v8-10 磁贴颜色
 64    tileColor = "#da532c"
 65    #  Android 浏览器主题色
 66    [params.app.themeColor]
 67      light = "#f8f8f8"
 68      dark = "#252627"
 69
 70  #  搜索配置
 71  [params.search]
 72    enable = true
 73    # 搜索引擎的类型 ["algolia", "fuse"]
 74    type = "fuse"
 75    # 文章内容最长索引长度
 76    contentLength = 4000
 77    # 搜索框的占位提示语
 78    placeholder = ""
 79    #  最大结果数目
 80    maxResultLength = 10
 81    #  结果内容片段长度
 82    snippetLength = 50
 83    #  搜索结果中高亮部分的 HTML 标签
 84    highlightTag = "em"
 85    #  是否在搜索索引中使用基于 baseURL 的绝对路径
 86    absoluteURL = false
 87    [params.search.algolia]
 88      index = ""
 89      appID = ""
 90      searchKey = ""
 91    [params.search.fuse]
 92      #  https://fusejs.io/api/options.html
 93      isCaseSensitive = false
 94      minMatchCharLength = 2
 95      findAllMatches = false
 96      location = 0
 97      threshold = 0.3
 98      distance = 100
 99      ignoreLocation = false
100      useExtendedSearch = false
101      ignoreFieldNorm = false
102
103  # 页面头部导航栏配置
104  [params.header]
105    #  桌面端导航栏模式 ["sticky", "normal", "auto"]
106    desktopMode = "sticky"
107    #  移动端导航栏模式 ["sticky", "normal", "auto"]
108    mobileMode = "auto"
109    #  页面头部导航栏标题配置
110    [params.header.title]
111      # LOGO 的 URL
112      logo = "/images/fixit.min.svg"
113      # 标题名称
114      name = "我的 Hugo FixIt 网站"
115      # 你可以在名称(允许 HTML 格式)之前添加其他信息,例如图标
116      pre = ""
117      # 你可以在名称(允许 HTML 格式)之后添加其他信息,例如图标
118      post = ""
119      #  是否为标题显示打字机动画
120      typeit = false
121    #  页面头部导航栏副标题配置
122    [params.header.subtitle]
123      # 副标题名称
124      name = ""
125      # 是否为副标题显示打字机动画
126      typeit = false
127
128  #  面包屑导航配置
129  [params.breadcrumb]
130    enable = false
131    sticky = false
132    showHome = false
133
134  # 页面底部信息配置
135  [params.footer]
136    enable = true
137    #  自定义内容(支持 HTML 格式)
138    # 进阶使用,见参数 `params.customFilePath.footer`
139    custom = ""
140    #  是否显示版权信息
141    copyright = true
142    #  是否显示作者
143    author = true
144    # 网站创立年份
145    since = 2021
146    #  公网安备信息,仅在中国使用(支持 HTML 格式)
147    gov = ""
148    #  ICP 备案信息,仅在中国使用(支持 HTML 格式)
149    icp = ""
150    # 许可协议信息(支持 HTML 格式)
151    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>'
152    #  是否显示 Hugo 和主题信息
153    [params.footer.powered]
154      enable = true
155      hugoLogo = true
156      themeLogo = true
157    #  网站创立时间
158    [params.footer.siteTime]
159      enable = false
160      animate = true
161      icon = "fa-solid fa-heartbeat"
162      pre = ""
163      value = "" # e.g. "2021-12-18T16:15:22+08:00"
164    #  页面底部行排序,可选值:["first", 0, 1, 2, 3, 4, 5, "last"]
165    [params.footer.order]
166      powered = 0
167      copyright = 0
168      statistics = 0
169      visitor = 0
170      beian = 0
171
172  #  Section(所有文章)页面配置
173  [params.section]
174    # section 页面每页显示文章数量
175    paginate = 20
176    # 日期格式(月和日)
177    dateFormat = "01-02"
178    # RSS 文章数目
179    rss = 10
180    #  最近更新文章设置
181    [params.section.recentlyUpdated]
182      enable = false
183      rss = false
184      days = 30
185      maxCount = 10
186
187  #  List(目录或标签)页面配置
188  [params.list]
189    # list 页面每页显示文章数量
190    paginate = 20
191    # 日期格式(月和日)
192    dateFormat = "01-02"
193    # RSS 文章数目
194    rss = 10
195
196  #  标签云配置
197  [params.tagcloud]
198    enable = false
199    min = 14 # 最小字体大小,单位:px
200    max = 32 # 最大字体大小,单位:px
201    peakCount = 10 # 每个标签的最大文章数
202    orderby = "name" # 标签排序方式,可选值:["name", "count"]
203
204  # 主页配置
205  [params.home]
206    #  RSS 文章数目
207    rss = 10
208    # 主页个人信息
209    [params.home.profile]
210      enable = true
211      # Gravatar 邮箱,用于优先在主页显示的头像
212      gravatarEmail = ""
213      # 主页显示头像的 URL
214      avatarURL = "/images/avatar.png"
215      #  头像菜单链接的 identifier
216      avatarMenu = ""
217      #  主页显示的网站标题(支持 HTML 格式)
218      title = ""
219      # 主页显示的网站副标题
220      subtitle = "这是我的 Hugo FixIt 网站"
221      # 是否为副标题显示打字机动画
222      typeit = true
223      # 是否显示社交账号
224      social = true
225      #  免责声明(支持 HTML 格式)
226      disclaimer = ""
227    # 主页文章列表
228    [params.home.posts]
229      enable = true
230      # 主页每页显示文章数量
231      paginate = 6
232
233  #  作者的社交信息设置
234  [params.social]
235    GitHub = "Lruihao"
236    Linkedin = ""
237    Twitter = ""
238    Instagram = ""
239    Facebook = ""
240    Telegram = ""
241    Medium = ""
242    Gitlab = ""
243    Youtubelegacy = ""
244    Youtubecustom = ""
245    Youtubechannel = ""
246    Tumblr = ""
247    Quora = ""
248    Keybase = ""
249    Pinterest = ""
250    Reddit = ""
251    Codepen = ""
252    FreeCodeCamp = ""
253    Bitbucket = ""
254    Stackoverflow = ""
255    Weibo = ""
256    Odnoklassniki = ""
257    VK = ""
258    Flickr = ""
259    Xing = ""
260    Snapchat = ""
261    Soundcloud = ""
262    Spotify = ""
263    Bandcamp = ""
264    Paypal = ""
265    Fivehundredpx = ""
266    Mix = ""
267    Goodreads = ""
268    Lastfm = ""
269    Foursquare = ""
270    Hackernews = ""
271    Kickstarter = ""
272    Patreon = ""
273    Steam = ""
274    Twitch = ""
275    Strava = ""
276    Skype = ""
277    Whatsapp = ""
278    Zhihu = ""
279    Douban = ""
280    Angellist = ""
281    Slidershare = ""
282    Jsfiddle = ""
283    Deviantart = ""
284    Behance = ""
285    Dribbble = ""
286    Wordpress = ""
287    Vine = ""
288    Googlescholar = ""
289    Researchgate = ""
290    Mastodon = ""
291    Thingiverse = ""
292    Devto = ""
293    Gitea = ""
294    XMPP = ""
295    Matrix = ""
296    Bilibili = ""
297    ORCID = ""
298    Liberapay = ""
299    Ko-Fi = ""
300    BuyMeaCoffee = ""
301    Linktree = ""
302    QQ = ""
303    QQGroup = "awbwdTtSQ_-H5QGzeJxdWgv6JMbNehNM" # https://qun.qq.com/join.html
304    Diaspora = ""
305    CSDN = ""
306    Discord = ""
307    DiscordInvite = ""
308    Lichess = ""
309    Pleroma = ""
310    Kaggle = ""
311    MediaWiki= ""
312    Plume = ""
313    HackTheBox = ""
314    RootMe = ""
315    Feishu = ""
316    TryHackMe = ""
317    Phone = ""
318    Email = ""
319    RSS = true
320
321  #  文章页面配置
322  [params.page]
323    #  是否启用文章作者头像
324    authorAvatar = true
325    #  是否在主页隐藏一篇文章
326    hiddenFromHomePage = false
327    #  是否在搜索结果中隐藏一篇文章
328    hiddenFromSearch = false
329    #  是否在 RSS 中隐藏一篇文章
330    hiddenFromRss = false
331    #  是否在相关文章中隐藏一篇文章
332    hiddenFromRelated = false
333    #  是否使用 twemoji
334    twemoji = false
335    # 是否使用 lightgallery
336    #  如果设为 "force",文章中的图片将强制按照画廊形式呈现
337    lightgallery = false
338    #  是否使用 ruby 扩展语法
339    ruby = true
340    #  是否使用 fraction 扩展语法
341    fraction = true
342    #  是否使用 fontawesome 扩展语法
343    fontawesome = true
344    # 许可协议信息(支持 HTML 格式)
345    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>'
346    # 是否显示原始 Markdown 文档内容的链接
347    linkToMarkdown = true
348    #  是否显示查看文章源码的链接
349    linkToSource = true
350    #  是否显示编辑文章的链接
351    linkToEdit = true
352    #  是否显示报告文章问题的链接
353    linkToReport = true
354    #  是否在 RSS 中显示全文内容
355    rssFullText = false
356    #  页面样式 ["narrow", "normal", "wide", ...]
357    pageStyle = "normal"
358    #   强制使用 Gravatar 作为作者头像
359    # gravatarForce = true
360    #  开启自动书签支持
361    # 如果为 true,则在关闭页面时保存阅读进度
362    autoBookmark = false
363    #  是否使用 字数统计
364    wordCount = true
365    #  是否使用 预计阅读
366    readingTime = true
367    #  文章结束标志
368    endFlag = ""
369    #  是否开启即时页面
370    instantPage = false
371    #  是否在侧边栏显示集合列表
372    collectionList = false
373    #  是否在文章末尾显示集合导航
374    collectionNavigation = false
375
376    #  转载配置
377    [params.page.repost]
378      enable = false
379      url = ""
380    #  目录配置
381    [params.page.toc]
382      # 是否使用目录
383      enable = true
384      #  是否保持使用文章前面的静态目录
385      keepStatic = false
386      # 是否使侧边目录自动折叠展开
387      auto = true
388      #  目录位置 ["left", "right"]
389      position = "right"
390    #  在文章开头显示提示信息,提醒读者文章内容可能过时
391    [params.page.expirationReminder]
392      enable = false
393      # 如果文章最后更新于这天数之前,显示提醒
394      reminder = 90
395      # 如果文章最后更新于这天数之前,显示警告
396      warning = 180
397      # 如果文章到期是否关闭评论
398      closeComment = false
399    #  页面标题配置
400    [params.page.heading]
401      # 配合 `markup.tableOfContents.ordered` 参数使用
402      [params.page.heading.number]
403        # 是否启用自动标题编号
404        enable = false
405        [params.page.heading.number.format]
406          h1 = "{title}"
407          h2 = "{h2} {title}"
408          h3 = "{h2}.{h3} {title}"
409          h4 = "{h2}.{h3}.{h4} {title}"
410          h5 = "{h2}.{h3}.{h4}.{h5} {title}"
411          h6 = "{h2}.{h3}.{h4}.{h5}.{h6} {title}"
412    #  代码配置
413    [params.page.code]
414      # 是否显示代码块的复制按钮
415      copy = true
416      #  是否显示代码块的编辑按钮
417      edit = true
418      # 默认展开显示的代码行数
419      maxShownLines = 10
420    #  KaTeX 数学公式 (https://katex.org)
421    [params.page.math]
422      enable = true
423      # 默认行内定界符是 $ ... $ 和 \( ... \)
424      inlineLeftDelimiter = ""
425      inlineRightDelimiter = ""
426      # 默认块定界符是 $$ ... $$, \[ ... \],  \begin{equation} ... \end{equation} 和一些其它的函数
427      blockLeftDelimiter = ""
428      blockRightDelimiter = ""
429      # KaTeX 插件 copy_tex
430      copyTex = true
431      # KaTeX 插件 mhchem
432      mhchem = true
433    #  Mapbox GL JS 配置 (https://docs.mapbox.com/mapbox-gl-js)
434    [params.page.mapbox]
435      # Mapbox GL JS 的 access token
436      accessToken = ""
437      # 浅色主题的地图样式
438      lightStyle = "mapbox://styles/mapbox/light-v9"
439      # 深色主题的地图样式
440      darkStyle = "mapbox://styles/mapbox/dark-v9"
441      # 是否添加 NavigationControl
442      navigation = true
443      # 是否添加 GeolocateControl
444      geolocate = true
445      # 是否添加 ScaleControl
446      scale = true
447      # 是否添加 FullscreenControl
448      fullscreen = true
449    #  [试验性功能] 缓存图床图片到本地,详见:https://github.com/hugo-fixit/FixIt/pull/362
450    [params.page.cacheRemoteImages]
451      enable = false
452      # 用本地图片链接替换远程图片链接 (放置在 public/images/remote/)
453      replace = false
454    #  相关内容配置 (https://gohugo.io/content-management/related/)
455    [params.page.related]
456      enable = false
457      count = 5
458    #  赞赏设置
459    [params.page.reward]
460      enable = false
461      animation = false
462      # 相对于页脚的位置,可选值:["before", "after"]
463      position = "after"
464      # comment = "Buy me a coffee"
465      #  二维码图片展示模式,可选值:["static", "fixed"],默认:`static`
466      mode = "static"
467      [params.page.reward.ways]
468        # wechatpay = "/images/wechatpay.png"
469        # alipay = "/images/alipay.png"
470        # paypal = "/images/paypal.png"
471        # bitcoin = "/images/bitcoin.png"
472    #  文章页面的分享信息设置
473    [params.page.share]
474      enable = true
475      Twitter = true
476      Facebook = true
477      Linkedin = false
478      Whatsapp = true
479      Pinterest = false
480      Tumblr = false
481      HackerNews = false
482      Reddit = false
483      VK = false
484      Buffer = false
485      Xing = false
486      Line = true
487      Instapaper = false
488      Pocket = false
489      Flipboard = false
490      Weibo = true
491      Myspace = true
492      Blogger = true
493      Baidu = false
494      Odnoklassniki = false
495      Evernote = true
496      Skype = false
497      Trello = false
498      Mix = false
499    #  评论系统设置
500    [params.page.comment]
501      enable = false
502      #  Artalk 评论系统设置 (https://artalk.js.org/)
503      [params.page.comment.artalk]
504        enable = false
505        server = "https://yourdomain"
506        site = "默认站点"
507        placeholder = ""
508        noComment = ""
509        sendBtn = ""
510        editorTravel = true
511        flatMode = "auto"
512        #  启用 lightgallery 支持
513        lightgallery = false
514        locale = "" # 
515        # 
516        emoticons = ""
517        nestMax = 2
518        nestSort = "DATE_ASC" # ["DATE_ASC", "DATE_DESC", "VOTE_UP_DESC"]
519        vote = true
520        voteDown = false
521        uaBadge = true
522        listSort = true
523        imgUpload = true
524        preview = true
525        versionCheck = true
526      #  Disqus 评论系统设置 (https://disqus.com)
527      [params.page.comment.disqus]
528        enable = false
529        # Disqus 的 shortname,用来在文章中启用 Disqus 评论系统
530        shortname = ""
531      #  Gitalk 评论系统设置 (https://github.com/gitalk/gitalk)
532      [params.page.comment.gitalk]
533        enable = false
534        owner = ""
535        repo = ""
536        clientId = ""
537        clientSecret = ""
538      # Valine 评论系统设置 (https://github.com/xCss/Valine)
539      [params.page.comment.valine]
540        enable = false
541        appId = ""
542        appKey = ""
543        placeholder = ""
544        avatar = "mp"
545        meta = ""
546        requiredFields = ""
547        pageSize = 10
548        lang = ""
549        visitor = true
550        recordIP = true
551        highlight = true
552        enableQQ = false
553        serverURLs = ""
554        #  emoji 数据文件名称,默认是 "google.yml"
555        # ["apple.yml", "google.yml", "facebook.yml", "twitter.yml"]
556        # 位于 "themes/FixIt/assets/lib/valine/emoji/" 目录
557        # 可以在你的项目下相同路径存放你自己的数据文件:
558        # "assets/lib/valine/emoji/"
559        emoji = ""
560        commentCount = true # 
561      #  Waline 评论系统设置 (https://waline.js.org)
562      [params.page.comment.waline]
563        enable = false
564        serverURL = ""
565        pageview = false # 
566        emoji = ["//unpkg.com/@waline/emojis@1.1.0/weibo"]
567        meta = ["nick", "mail", "link"]
568        requiredMeta = []
569        login = "enable"
570        wordLimit = 0
571        pageSize = 10
572        imageUploader = false # 
573        highlighter = false # 
574        comment = false # 
575        texRenderer = false # 
576        search = false # 
577        recaptchaV3Key = "" # 
578        reaction = false # 
579      # Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments)
580      [params.page.comment.facebook]
581        enable = false
582        width = "100%"
583        numPosts = 10
584        appId = ""
585        languageCode = "zh_CN"
586      #  Telegram Comments 评论系统设置 (https://comments.app)
587      [params.page.comment.telegram]
588        enable = false
589        siteID = ""
590        limit = 5
591        height = ""
592        color = ""
593        colorful = true
594        dislikes = false
595        outlined = false
596      #  Commento 评论系统设置 (https://commento.io)
597      [params.page.comment.commento]
598        enable = false
599      #  Utterances 评论系统设置 (https://utteranc.es)
600      [params.page.comment.utterances]
601        enable = false
602        # owner/repo
603        repo = ""
604        issueTerm = "pathname"
605        label = ""
606        lightTheme = "github-light"
607        darkTheme = "github-dark"
608      #  Twikoo 评论系统设置 (https://twikoo.js.org/)
609      [params.page.comment.twikoo]
610        enable = false
611        envId = ""
612        region = ""
613        path = ""
614        visitor = true
615        commentCount = true
616        #  启用 lightgallery 支持
617        lightgallery = false
618        #  启用 Katex 支持
619        katex = false
620      #  Giscus 评论系统设置
621      [params.page.comment.giscus]
622        enable = false
623        repo = ""
624        repoId = ""
625        category = ""
626        categoryId = ""
627        mapping = ""
628        strict = "0" # 
629        term = ""
630        reactionsEnabled = "1"
631        emitMetadata = "0"
632        inputPosition = "bottom" # ["top", "bottom"]
633        lightTheme = "light"
634        darkTheme = "dark"
635        lazyLoad = true
636    #  第三方库配置
637    [params.page.library]
638      [params.page.library.css]
639        # someCSS = "some.css"
640        # 位于 "assets/"
641        # 或者
642        # someCSS = "https://cdn.example.com/some.css"
643      [params.page.library.js]
644        # someJavascript = "some.js"
645        # 位于 "assets/"
646        # 或者
647        # someJavascript = "https://cdn.example.com/some.js"
648    #  页面 SEO 配置
649    [params.page.seo]
650      # 图片 URL
651      images = []
652      # 出版者信息
653      [params.page.seo.publisher]
654        name = ""
655        logoUrl = ""
656
657  #  TypeIt 配置
658  [params.typeit]
659    # 每一步的打字速度(单位是毫秒)
660    speed = 100
661    # 光标的闪烁速度(单位是毫秒)
662    cursorSpeed = 1000
663    # 光标的字符(支持 HTML 格式)
664    cursorChar = "|"
665    # 打字结束之后光标的持续时间(单位是毫秒,"-1" 代表无限大)
666    duration = -1
667    #  打字完成后是否会连续循环
668    loop = false
669
670  #  Mermaid 配置
671  [params.mermaid]
672    # 取值详见 https://mermaid.js.org/config/theming.html#available-themes
673    themes = ["default", "dark"]
674
675  #  盘古之白配置
676  [params.pangu]
677    # 适用于中文写作用户
678    enable = false
679    selector = "article" # 
680
681  #  水印配置
682  # 详细参数见 https://github.com/Lruihao/watermark#readme
683  [params.watermark]
684    enable = false
685    # 水印内容(允许 HTML 格式)
686    content = ""
687    # 水印透明度
688    opacity = 0.1
689    # 单水印宽度 单位:px
690    width = 150
691    # 单水印高度 单位:px
692    height = 20
693    # 水印行间距 单位:px
694    rowSpacing = 60
695    # 水印列间距 单位:px
696    colSpacing = 30
697    # 水印旋转角度 单位:deg
698    rotate = 15
699    # 水印字体大小,单位:rem
700    fontSize = 0.85
701    #  水印字体
702    fontFamily = "inherit"
703
704  #  不蒜子统计
705  [params.ibruce]
706    enable = true
707    # 在文章中开启
708    enablePost = false
709
710  # 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu/360/Sogou
711  [params.verification]
712    google = ""
713    bing = ""
714    yandex = ""
715    pinterest = ""
716    baidu = ""
717    so = ""
718    sogou = ""
719
720  #  网站 SEO 配置
721  [params.seo]
722    # 图片 URL
723    image = ""
724    # 缩略图 URL
725    thumbnailUrl = ""
726
727  #  网站分析配置
728  [params.analytics]
729    enable = false
730    # Google Analytics
731    [params.analytics.google]
732      id = ""
733      # 是否匿名化用户 IP
734      anonymizeIP = true
735    # Fathom Analytics
736    [params.analytics.fathom]
737      id = ""
738      # 自行托管追踪器时的主机路径
739      server = ""
740
741  #  Cookie 许可配置
742  [params.cookieconsent]
743    enable = true
744    # 用于 Cookie 许可横幅的文本字符串
745    [params.cookieconsent.content]
746      message = ""
747      dismiss = ""
748      link = ""
749
750  #  第三方库文件的 CDN 设置
751  [params.cdn]
752    # CDN 数据文件名称,默认不启用 ["jsdelivr.yml", "unpkg.yml", ...]
753    # 位于 "themes/FixIt/assets/data/cdn/" 目录
754    # 可以在你的项目下相同路径存放你自己的数据文件:"assets/data/cdn/"
755    # data = "unpkg.yml"
756
757  #  兼容性设置
758  [params.compatibility]
759    # 是否使用 Polyfill.io 来兼容旧式浏览器
760    polyfill = false
761    # 是否使用 object-fit-images 来兼容旧式浏览器
762    objectFit = false
763
764  #  在左上角或者右上角显示 GitHub 开源链接
765  [params.githubCorner]
766    enable = false
767    permalink = "https://github.com/hugo-fixit/FixIt"
768    title = "在 GitHub 上查看源代码"
769    position = "right" # ["left", "right"]
770
771  #  Gravatar 设置
772  [params.gravatar]
773    #  取决于作者邮箱,作者邮箱未设置则使用本地头像
774    enable = false
775    # Gravatar 主机,默认:“www.gravatar.com”
776    host = "www.gravatar.com" # ["cn.gravatar.com", "gravatar.loli.net", ...]
777    style = "" # ["", "mp", "identicon", "monsterid", "wavatar", "retro", "blank", "robohash"]
778
779  #  返回顶部
780  [params.backToTop]
781    enable = true
782    # 在 b2t 按钮中显示滚动百分比
783    scrollpercent = false
784
785  #  阅读进度条
786  [params.readingProgress]
787    enable = false
788    # 可用值:["left", "right"]
789    start = "left"
790    # 可用值:["top", "bottom"]
791    position = "top"
792    reversed = false
793    light = ""
794    dark = ""
795    height = "2px"
796
797  #  页面加载期间顶部的进度条
798  # 有关详细信息:https://github.com/CodeByZach/pace
799  [params.pace]
800    enable = false
801    # 所有可用颜色:
802    # ["black", "blue", "green", "orange", "pink", "purple", "red", "silver", "white", "yellow"]
803    color = "blue"
804    # 所有可用主题:
805    # ["barber-shop", "big-counter", "bounce", "center-atom", "center-circle", "center-radar", "center-simple",
806    # "corner-indicator", "fill-left", "flash", "flat-top", "loading-bar", "mac-osx", "material", "minimal"]
807    theme = "minimal"
808
809  #  定义自定义文件路径
810  # 在站点目录 `layouts/partials/custom` 中创建你的自定义文件,并取消注释下面需要的文件
811  [params.customFilePath]
812    # aside = "custom/aside.html"
813    # profile = "custom/profile.html"
814    # footer = "custom/footer.html"
815
816  #  开发者选项
817  [params.dev]
818    enable = false
819    # 检查更新
820    c4u = false
821    # 请勿公开展示!
822    githubToken = ""
823    # 移动端开发者工具配置
824    [params.dev.mDevtools]
825      enable = false
826      # 支持 "vConsole", "eruda"
827      type = "vConsole"
828
829# Hugo 解析文档的配置
830[markup]
831  # 语法高亮设置 (https://gohugo.io/content-management/syntax-highlighting)
832  [markup.highlight]
833    ################## 必要的配置 ##################
834    # https://github.com/hugo-fixit/FixIt/issues/43
835    codeFences = true
836    lineNos = true
837    lineNumbersInTable = true
838    noClasses = false
839    ################## 必要的配置 ##################
840    guessSyntax = true
841  # Goldmark 是 Hugo 0.60 以来的默认 Markdown 解析库
842  [markup.goldmark]
843    [markup.goldmark.extensions]
844      definitionList = true
845      footnote = true
846      linkify = true
847      strikethrough = true
848      table = true
849      taskList = true
850      typographer = true
851    [markup.goldmark.renderer]
852      # 是否在文档中直接使用 HTML 标签
853      unsafe = true
854  # 目录设置
855  [markup.tableOfContents]
856    startLevel = 2
857    endLevel = 6
858
859# 网站地图配置
860[sitemap]
861  changefreq = "weekly"
862  filename = "sitemap.xml"
863  priority = 0.5
864
865# Permalinks 配置 (https://gohugo.io/content-management/urls#permalinks)
866[Permalinks]
867  # posts = ":year/:month/:filename"
868  posts = ":filename"
869
870# 隐私信息配置 (https://gohugo.io/about/hugo-and-gdpr/)
871[privacy]
872  [privacy.twitter]
873    enableDNT = true
874  [privacy.youtube]
875    privacyEnhanced = true
876
877# 
878[mediaTypes]
879  # 用于输出 Markdown 格式文档的设置
880  [mediaTypes."text/markdown"]
881    suffixes = ["md"]
882  # 用于输出 txt 格式文档的设置
883  [mediaTypes."text/plain"]
884    suffixes = ["txt"]
885
886[outputFormats]
887  # 用于输出 Markdown 格式文档的设置
888  [outputFormats.MarkDown]
889    mediaType = "text/markdown"
890    isPlainText = true
891    isHTML = false
892  #  用于输出 /archives/index.html 文件的设置
893  [outputFormats.archives]
894    path = "archives"
895    baseName = "index"
896    mediaType = "text/html"
897    isPlainText = false
898    isHTML = true
899    permalinkable = true
900  #  用于输出 /offline/index.html 文件的设置
901  [outputFormats.offline]
902    path = "offline"
903    baseName = "index"
904    mediaType = "text/html"
905    isPlainText = false
906    isHTML = true
907    permalinkable = true
908  #  用于输出 readme.md 文件的设置
909  [outputFormats.README]
910    baseName = "readme"
911    mediaType = "text/markdown"
912    isPlainText = true
913    isHTML = false
914  #  用于输出 baidu_urls.txt 文件的设置
915  [outputFormats.baidu_urls]
916    baseName = "baidu_urls"
917    mediaType = "text/plain"
918    isPlainText = true
919    isHTML = false
920
921# 用于 Hugo 输出文档的设置,可选值如下:
922# home: ["HTML", "RSS", "JSON", "archives", "offline", "README", "baidu_urls"]
923# page: ["HTML", "MarkDown"]
924# section: ["HTML", "RSS"]
925# taxonomy: ["HTML", "RSS"]
926# term: ["HTML", "RSS"]
927[outputs]
928  home = ["HTML", "RSS", "JSON", "archives", "offline"]
929  page = ["HTML", "MarkDown"]
930  section = ["HTML", "RSS"]
931  taxonomy = ["HTML"]
932  term = ["HTML", "RSS"]
博主栏壁纸
博主头像 爱喝酸奶的我

懒人博客,随缘记录生活点滴

15 文章数
12 评论量
最新评论
标签云
    一言
    今天早上我告诉你我想你了,你没理我。今天中午我给你打电话,你不接,打第二个你就关机。晚上我在你公司楼下等你,你对我说的第一句话就是滚“滚,别烦我,别浪费时间了”,我真的好感动,你居然为我考虑了,怕我浪费时间。呜呜呜,这是我爱你的第74天。