Pārlūkot izejas kodu

adding section name to metadata

master
Sean Dockray pirms 4 gadiem
vecāks
revīzija
c44769d7f9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      themes/sandpoints/layouts/metadata/list.js.js

+ 1
- 1
themes/sandpoints/layouts/metadata/list.js.js Parādīt failu

@@ -1 +1 @@
{{ define "main" }}SECTIONS=[{{ range .Site.Sections }}{"section": "{{ with .File }}{{ trim .Dir "/" }}{{ end }}", "items": [{{ range .Pages }}"{{ .File.BaseFileName }}", {{ end }}]}, {{ end }}];{{ end }}
{{ define "main" }}SECTIONS=[{{ range .Site.Sections }}{"section": "{{with index (.Pages) 0 }}{{ trim .Dir "/" }}{{ end }}", "items": [{{ range .Pages }}"{{ .File.BaseFileName }}", {{ end }}]}, {{ end }}];{{ end }}

Notiek ielāde…
Atcelt
Saglabāt