From b4ca49226691f53b7c0090277c1f44fe7c1cc810 Mon Sep 17 00:00:00 2001 From: Julian Date: Mon, 11 May 2020 15:37:41 +0200 Subject: Added table shortcode for styled tables --- exampleSite/content/shortcodes/table.md | 34 +++++++++++++++++++++++++++++++++ layouts/shortcodes/table.html | 4 ++++ 2 files changed, 38 insertions(+) create mode 100644 exampleSite/content/shortcodes/table.md create mode 100644 layouts/shortcodes/table.html diff --git a/exampleSite/content/shortcodes/table.md b/exampleSite/content/shortcodes/table.md new file mode 100644 index 0000000..232c324 --- /dev/null +++ b/exampleSite/content/shortcodes/table.md @@ -0,0 +1,34 @@ ++++ +title = "Table" +description = "" ++++ + +The table shortcode allows you to wrap your tables in a table class, providing styling to the table such as borders, stripes and hover effects. + +{{< table >}} +| Tables | are | cool | +| ------------- |:-------------:| -----:| +| col 3 is | right-aligned | $1600 | +| col 2 is | centered | $12 | +| zebra stripes | are neat | $1 | +{{< /table >}} + +## Usage +Place the following shortcode on the page +{{< code lang="html" >}} +{{}} +| Tables | are | cool | +| ------------- |:-------------:| -----:| +| col 3 is | right-aligned | $1600 | +| col 2 is | centered | $12 | +| zebra stripes | are neat | $1 | +{{}} +{{< /code >}} + +### Parameters +#### Style +The style parameter is directly applied to the table as a class in the format *"{STYLE}"*. Bootstrap comes with several styles that can be used with this: +- table-striped +- table-dark +- table-bordered +- table-hover diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html new file mode 100644 index 0000000..5413020 --- /dev/null +++ b/layouts/shortcodes/table.html @@ -0,0 +1,4 @@ +{{ $style := .Get "style" }} + -- cgit v1.2.3 From 0efd47c978ee31909a680deb2686680092155985 Mon Sep 17 00:00:00 2001 From: Julian Date: Mon, 11 May 2020 15:43:42 +0200 Subject: Added CHANGELOG.md --- CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..c7c2d91 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,21 @@ +## Version 1.0.3 + - [FIX] Remove source map imports from JS files (@jhollowe) + - [FIX] Fix minifier error with spacing in next-prev-page (@jhollowe) + - [ADD] Allow disabling the TOC (@jhollowe) + - [ADD] Allow Google Analytics to only track production site (@jhollowe) + - [FIX] Prevent empty heaver toggler (@jhollowe) + - [ADD] New table shortcode for styled tables (fixes issue #2) + - [FIX] Typo in readme + + +## Version 1.0.2 + +- [FIX] Fixed folder structure in exampleSite for non-extended Hugo version. + +## Version 1.0.1 + +- [FIX] Include the resources folder in the theme for Hugo standard version. + +## Version 1.0.0 + + - Initial release \ No newline at end of file -- cgit v1.2.3