浏览代码

adding section name to metadata

master
Sean Dockray 4 年前
父节点
当前提交
c44769d7f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      themes/sandpoints/layouts/metadata/list.js.js

+ 1
- 1
themes/sandpoints/layouts/metadata/list.js.js 查看文件

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

正在加载...
取消
保存