Quellcode durchsuchen

Fix deprecated URL, disable unused taxonomy kinds

master
Chris Smith vor 5 Jahren
Ursprung
Commit
61032847fb
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 1
    0
      site/config.yaml
  2. 1
    1
      site/layouts/partials/album.html

+ 1
- 0
site/config.yaml Datei anzeigen

@@ -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 Datei anzeigen

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

Laden…
Abbrechen
Speichern