Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/VVelox/hugo-dusky-neon-potato.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZane C. Bowers-Hadley <vvelox@vvelox.net>2018-09-10 12:14:21 +0300
committerZane C. Bowers-Hadley <vvelox@vvelox.net>2018-09-10 12:14:21 +0300
commit8a80659ebfe903a2147280eec30414cac1c02d84 (patch)
tree6cc0d3ce31b9084fb6e48ec2706f8d3ba6c7d88f
parent8c99352d0b5b5ff5dcaf5f525aa560c19a0ff8ef (diff)
add a table example
-rw-r--r--exampleSite/content/posts/fun-with-tables.org34
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