浏览代码

Fix deprecated URL, disable unused taxonomy kinds

master
Chris Smith 5 年前
父节点
当前提交
61032847fb
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1
    0
      site/config.yaml
  2. 1
    1
      site/layouts/partials/album.html

+ 1
- 0
site/config.yaml 查看文件

@@ -2,5 +2,6 @@ baseurl: https://www.chameth.com
2 2
 disablePathToLower: true
3 3
 languageCode: en-gb
4 4
 title: Chameth.com
5
+disableKinds: ["taxonomy", "taxonomyTerm"]
5 6
 
6 7
 pygmentsuseclasses: true

+ 1
- 1
site/layouts/partials/album.html 查看文件

@@ -7,7 +7,7 @@
7 7
   </header>
8 8
 
9 9
   {{ range $photo := .Params.photos }}
10
-    <a href="{{ replace $.URL "/photos/" "https://photos.chameth.com/" }}{{ $photo.file }}"
10
+    <a href="{{ replace $.RelPermalink "/photos/" "https://photos.chameth.com/" }}{{ $photo.file }}"
11 11
        class="image gallery"
12 12
        data-lightbox="gallery"
13 13
        data-title="{{ $photo.caption }}">

正在加载...
取消
保存