diff options
author | Zane C. Bowers-Hadley <vvelox@vvelox.net> | 2018-09-10 12:14:21 +0300 |
---|---|---|
committer | Zane C. Bowers-Hadley <vvelox@vvelox.net> | 2018-09-10 12:14:21 +0300 |
commit | 8a80659ebfe903a2147280eec30414cac1c02d84 (patch) | |
tree | 6cc0d3ce31b9084fb6e48ec2706f8d3ba6c7d88f | |
parent | 8c99352d0b5b5ff5dcaf5f525aa560c19a0ff8ef (diff) |
add a table example
-rw-r--r-- | exampleSite/content/posts/fun-with-tables.org | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/exampleSite/content/posts/fun-with-tables.org b/exampleSite/content/posts/fun-with-tables.org new file mode 100644 index 0000000..76bd467 --- /dev/null +++ b/exampleSite/content/posts/fun-with-tables.org @@ -0,0 +1,34 @@ +--- +author: "VVelox" +date: 2018-09-10 +title: Fun With Tables +sort_tables: true +--- + +Below is a example of a sortable table in org mode. + +#+BEGIN_SRC +| a | b | c | d | e | +|---+---+------------+--------------+---| +| 1 | f | 2017-03-14 | 127.0.0.1 | | +| 2 | b | 2018-02-14 | 192.168.15.2 | | +| 3 | e | 2017-03-15 | 192.168.1.1 | | +| 4 | d | 2012-03-14 | 10.10.10.10 | 3 | +#+END_SRC + +Which results in table such as below. + +| a | b | c | d | e | +|---+---+------------+--------------+---| +| 1 | f | 2017-03-14 | 127.0.0.1 | | +| 2 | b | 2018-02-14 | 192.168.15.2 | | +| 3 | e | 2017-03-15 | 192.168.1.1 | | +| 4 | d | 2012-03-14 | 10.10.10.10 | 3 | + +By clicking on the table headers, you can change the sorting. + +This is enabled on a page by putting the following in the Front Matter. + +#+BEGIN_SRC +sort_tables: true +#+END_SRC |