diff --git a/config.yaml b/config.yaml index 24f9666..5bdb2d2 100644 --- a/config.yaml +++ b/config.yaml @@ -8,7 +8,7 @@ copyright: |- Copyright © #YEAR# [Project Trans](https://project-trans.org/). Theme [LGPLv3](https://github.com/project-trans/2345.LGBT/blob/main/LICENSE), Content [CC 0](https://creativecommons.org/share-your-work/public-domain/cc0/). -disableKinds: [taxonomy, term, RSS] +disableKinds: [ taxonomy, term, RSS ] disableHugoGeneratorInject: true languageCode: zh-cn @@ -16,6 +16,7 @@ enableRobotsTXT: true enableGitInfo: true defaultContentLanguage: zh-cn defaultContentLanguageInSubdir: true +disableDefaultLanguageRedirect: true uglyURLs: true diff --git a/themes/2345lgbt/layouts/alias.html b/themes/2345lgbt/layouts/alias.html deleted file mode 100644 index 6ccceea..0000000 --- a/themes/2345lgbt/layouts/alias.html +++ /dev/null @@ -1,42 +0,0 @@ -{{- $page := .Page -}} -{{- $canonical := .Permalink -}} - - -
- - - -{{- with $page.Site.Params.contentSecurityPolicy }} - -{{- end }} -