
初始化 git:
git init
将此主题添加到 themes 文件夹:
git submodule add --depth=1 https://github.com/arbs09/photography-theme.git themes/photography
git submodule update --init --recursive
你现在可以在你的 config.toml 中启用主题:
theme = "photography"只需运行:
git submodule update --remote --merge你可以编辑首页、导航和页脚上的链接。
[extra]
home_links = [
{url = "https://example.com", name = "Example"},
]
nav_links = [
{url = "https://example.com", name = "Example"},
]
footer_links = [
{url = "https://example.com", name = "Example"},
]要编辑页脚中的版权,只需使用此项:
[extra]
copyright = "Example"如果你想退出(某些)Ai 机器人抓取你的站点,你可以将以下内容添加到你的 config.toml 中。
[extra]
no_ai = true如果你想通过 html head 中的 javascript 集成跟踪,你可以在 config.toml 中像这样配置它。
[extra]
tracking_js = "<your js part>