跳到主要内容
permalink配置
博客 hugo-teek

permalink配置

376 字 2 分钟 -- 阅读 -- 评论
最后更新于:

permalink配置

image-20251111072320014
图片1

背景

teek有自己的permalink规则及可自动注入formatter参数,那么hugo-teek可以吗,必须可以。😜

配置

1.硬盘目录和你自定义的/teek对上 2.找个导航栏挂一下

(1)配置主菜单

编辑hugo-teek-site\hugo.toml文件:

image-20251111071746645
图片2

(2)配置映射关系

image-20251111071610839
图片3

(3)执行 余温 大佬写的bin\windows\dev.batbat脚本

image-20251111072004607
图片4

image-20251111072103359
图片5

执行完,就会自动给你注入formatter相关参数,包括permalink。

(4)验证

image-20251111071852478
图片6

image-20251111071842736
图片7

FAQ

大佬写了一个win脚本(make工具)

make镜像:

image-20251111102544646
图片8

image-20251111102623969
图片9

win脚本:

image-20251111102452868
图片10

image-20251111102113880
图片11

image-20251111102134982
图片12

image-20251111102204956
图片13

image-20251111072004607
图片14

image-20251111072103359
图片15

hugo默认得用一级路由,不能用二级路由

image-20251111102945107
图片16

image-20251111101904769
图片17

image-20251111103043348
图片18


eop问题:

image-20251111103215400
图片19

image-20251111103233944
图片20

结束。

最新文章

文档导航