Parcourir la source

Fix deprecated URL, disable unused taxonomy kinds

master
Chris Smith il y a 5 ans
Parent
révision
61032847fb
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1
    0
      site/config.yaml
  2. 1
    1
      site/layouts/partials/album.html

+ 1
- 0
site/config.yaml Voir le fichier

@@ -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 Voir le fichier

@@ -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 }}">

Chargement…
Annuler
Enregistrer