From 641a36405f4c396af0b29bf4c647b7ae9ecc880a Mon Sep 17 00:00:00 2001
From: George <31376482+george-gca@users.noreply.github.com>
Date: Mon, 1 May 2023 00:10:30 -0300
Subject: [PATCH] Added support for Bootstrap table (#1283)
Added support for [Bootstrap Table](https://bootstrap-table.com/).
Haven't checked the impact on website loading, but I believe [this kind
of table](https://examples.bootstrap-table.com/#welcomes/from-data.html)
is way more useful for blog posts and projects pages.
---
_includes/scripts/misc.html | 6 ++
_posts/2023-03-21-tables.md | 103 +++++++++++++++++++++++++++++
_sass/_base.scss | 57 ++++++++++++++--
_sass/_themes.scss | 4 +-
assets/js/common.js | 6 +-
assets/js/no_defer.js | 22 +++++++
assets/js/theme.js | 13 +++-
assets/json/table_data.json | 128 ++++++++++++++++++++++++++++++++++++
8 files changed, 330 insertions(+), 9 deletions(-)
create mode 100644 _posts/2023-03-21-tables.md
create mode 100644 assets/js/no_defer.js
create mode 100644 assets/json/table_data.json
diff --git a/_includes/scripts/misc.html b/_includes/scripts/misc.html
index 411b51d..305c062 100644
--- a/_includes/scripts/misc.html
+++ b/_includes/scripts/misc.html
@@ -4,6 +4,7 @@
$(function () {$('[data-toggle="tooltip"]').tooltip()})
{%- endif %}
+
{%- if site.enable_medium_zoom %}
@@ -15,6 +16,11 @@
{% endif %}
+
+
+
+
+
diff --git a/_posts/2023-03-21-tables.md b/_posts/2023-03-21-tables.md
new file mode 100644
index 0000000..cd56f71
--- /dev/null
+++ b/_posts/2023-03-21-tables.md
@@ -0,0 +1,103 @@
+---
+layout: post
+title: displaying beatiful tables with Bootstrap Tables
+date: 2023-03-20 14:37:00-0400
+description: an example of how to use Bootstrap Tables
+categories: sample-posts
+giscus_comments: true
+related_posts: true
+datatable: true
+---
+
+Using markdown to display tables is easy. Just use the following syntax:
+
+```markdown
+| Left aligned | Center aligned | Right aligned |
+| :----------- | :------------: | ------------: |
+| Left 1 | center 1 | right 1 |
+| Left 2 | center 2 | right 2 |
+| Left 3 | center 3 | right 3 |
+```
+
+That will generate:
+
+| Left aligned | Center aligned | Right aligned |
+| :----------- | :------------: | ------------: |
+| Left 1 | center 1 | right 1 |
+| Left 2 | center 2 | right 2 |
+| Left 3 | center 3 | right 3 |
+
+
+
+It is also possible to use HTML to display tables. For example, the following HTML code will display a table with [Bootstrap Table](https://bootstrap-table.com/), loaded from a JSON file:
+
+{% raw %}
+```html
+
+
+
+
ID
+
Item Name
+
Item Price
+
+
+
+```
+{% endraw %}
+
+
+
+
+
ID
+
Item Name
+
Item Price
+
+
+
+
+
+
+By using [Bootstrap Table](https://bootstrap-table.com/) it is possible to create pretty complex tables, with pagination, search, and more. For example, the following HTML code will display a table, loaded from a JSON file, with pagination, search, checkboxes, and header/content alignment. For more information, check the [documentation](https://examples.bootstrap-table.com/index.html).
+
+{% raw %}
+```html
+