From 437c4f0fdebceb93d1fcb4ce175f6b3fd3a8d4eb Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 7 Aug 2021 13:29:04 +0100 Subject: [PATCH] feat: Table: rename src -> path --- wowchemy/layouts/shortcodes/table.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wowchemy/layouts/shortcodes/table.html b/wowchemy/layouts/shortcodes/table.html index 41730879..0e162f5b 100644 --- a/wowchemy/layouts/shortcodes/table.html +++ b/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 | markdownify | emojify }} {{ end }} - \ No newline at end of file +