转载翻译自: 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 |