Hugo PaperMod 主题配置指南

Hugo PaperMod 主题配置要点

目前官网排名第一的主题,的确很不错。

参考资料

Hogo 配置参数说明

Variables | Front Matter

config.yml

替换默认字体

layouts/partials/extend_head.html

{{- /* Overwrite CSS variable for PaperMod Theme */}}
<link rel="stylesheet" href="https://npm.elemecdn.com/lxgw-wenkai-screen-webfont/style.css" media="print" onload="this.media='all'">
<style>
    body {
        font-family: "LXGW WenKai Screen", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    }
</style>

content/search.md # 必须放在这里

menu:
  main:
    - name: Search
      url: search/
      weight: 10
Last updated on 2024-06-18 12:23
Built with Hugo