浏览代码

feat: Table: rename src -> path

George Cushen 3 年之前
父节点
当前提交
437c4f0fde
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      wowchemy/layouts/shortcodes/table.html

+ 4 - 4
wowchemy/layouts/shortcodes/table.html

@@ -1,8 +1,8 @@
 {{/* Table Shortcode for Wowchemy. */}}
-{{/* Load table from page dir falling back back to remote URL */}}
-{{/* Supports delimiter separated files. The default delimiter is ',' */}}
+{{/* Load a CSV table from page dir falling back back to remote URL */}}
+{{/* Defaults to expecting a comma-separated CSV with a header row. */}}
 
-{{ $src := .Get "src" }}
+{{ $src := .Get "path" }}
 {{ $delimiter := .Get "delimiter" | default "," }}
 {{ $useHeaderRow := .Get "header" | default true }}
 {{ $caption := .Get "caption" }}
@@ -33,4 +33,4 @@
   {{ if $caption }}
     <caption>{{ $caption | markdownify | emojify }}</caption>
   {{ end }}
-</table>
+</table>