From 1f6b363a0c8dcae072d672d4c3bb8293d9abe25e Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 25 Oct 2021 11:03:22 -0400 Subject: themes/hugo-pt2021/layouts/shortcodes/table.html: remove inline documentation --- themes/hugo-pt2021/layouts/shortcodes/table.html | 76 +----------------------- 1 file changed, 1 insertion(+), 75 deletions(-) (limited to 'themes/hugo-pt2021/layouts/shortcodes') diff --git a/themes/hugo-pt2021/layouts/shortcodes/table.html b/themes/hugo-pt2021/layouts/shortcodes/table.html index 6fa778b..1493a9b 100644 --- a/themes/hugo-pt2021/layouts/shortcodes/table.html +++ b/themes/hugo-pt2021/layouts/shortcodes/table.html @@ -41,82 +41,8 @@ Notes: alignment, id, colspan, and rowspan, class) * row tooltip with _row and id with _id -Example: - - {{< table "favorite-fruits" "fruits" >}} - -And the corresponding `data/favorite-fruits/fruits.yaml`: - - --- - # table name (required) - name: "Favorite Fruits" - - # column list (required) - cols: - - id: "name" - name: "Name" - - id: "color" - name: "Color" - - id: "description" - name: "Description" - - # table rows (required) - rows: - - name: "Apple" - color: "Red or Green" - description: "Sweet if red, or sour if green." - - name: "Banana" - color: "Yellow" - description: "Skin is slipping hazard on floor." - - name: "Orange" - color: "Orange" - description: "Citrus bonanza." - - name: "Peach" - color: "Orange" - description: "Don't eat the core!" - -This shortcode will render the following table: - - - - - - - - - +Remove complicated example (moved to table-shortcode-examples article) - - - - - - - - - - - - - - ... (other rows omitted for brevity) ... - -
My favorite fruits.
- Name - - Color - - Description -
- Apple - - Red or Green - - Sweet if red, or sour if green. -
- -You can also configure alignment on a per-column or per-cell basis, and -you can override the `class` attribute for individual cells. */}} {{/* get table config -- cgit v1.2.3