Jelajahi Sumber

change param from name to id (#99)

Lukas Herzog 4 tahun lalu
induk
melakukan
bd8ca2fd72
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      layouts/index.html

+ 1 - 1
layouts/index.html

@@ -42,7 +42,7 @@
             {{ if .section.template }}
               {{- partial .section.template . -}}
             {{ else }}
-              {{- partial (printf "sections/%s.html" (replace (lower .section.name) " " "-")) . -}}
+              {{- partial (printf "sections/%s.html" (replace (lower .section.id) " " "-")) . -}}
             {{ end }}
           </div>
           <!--- alter background color for next section --->