Browse Source

Fix deprecated URL, disable unused taxonomy kinds

master
Chris Smith 5 years ago
parent
commit
61032847fb
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      site/config.yaml
  2. 1
    1
      site/layouts/partials/album.html

+ 1
- 0
site/config.yaml View File

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

+ 1
- 1
site/layouts/partials/album.html View File

7
   </header>
7
   </header>
8
 
8
 
9
   {{ range $photo := .Params.photos }}
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
        class="image gallery"
11
        class="image gallery"
12
        data-lightbox="gallery"
12
        data-lightbox="gallery"
13
        data-title="{{ $photo.caption }}">
13
        data-title="{{ $photo.caption }}">

Loading…
Cancel
Save