[译]Hugo-Theme-PaperMod主题文档 Variables | Front Matter

转载翻译自: https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-variables/
作者:PaperMod Authors
已获得作者授权

中文demo

https://note.ftls.xyz/papermod/

以下是与此主题一起使用的变量…


Site Variables under Params

name type example Description
env string ‘production’ 将 env 设置为生产
title string ‘My Blog’ 设置标题
description string ‘This is a blog of mine’ 设置站点描述
author string |list ‘Me’ | [‘Me’,‘You’] 显示多作者
images string ‘myimage.png’ opengraph, twitter-cards的图片链接或路径
keywords list [blog, page] 为主页添加关键字
DateFormat string “January 2, 2006” 网站中日期字符串的格式。 Details
languageAltTitle string “English” 多语言模式下的替代标题
ShowReadingTime boolean true | false 显示阅读时间
ShowShareButtons boolean true | false 显示/隐藏帖子下的分享按钮
ShowCodeCopyButtons boolean true | false 显示/隐藏代码复制按钮
ShowFullTextinRSS boolean true | false 在 RSS 提要中显示内容
defaultTheme string light | dark | auto 设置默认主题
disableThemeToggle boolean true | false 禁用标签之外显示的主题切换图标
disableSpecial1stPost boolean true | false 禁用第一个帖子的无卡特殊外观
disableScrollToTop boolean true | false 禁用 返回顶部 按钮
disableAnchoredHeadings boolean true | false 禁用锚定标题
hideMeta boolean true | false 隐藏元元素:页面的日期、阅读时间、作者和可用翻译
hideSummary boolean true | false 隐藏列表页面中显示的摘要
showtoc boolean true | false 显示/隐藏目录
tocopen boolean true | false 在页面加载时默认保持打开 ToC
ShowPostNavLinks boolean true | false 在帖子下方显示上一个和下一个帖子
ShowBreadCrumbs boolean true | false
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值