Skip to content
hexo tag-plugin for adding the class attribute to the table tag for themes bootstrap
JavaScript
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead of jorgeabad:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
.gitignore
LICENSE
Readme.md
index.js
package.json
table.js

Readme.md

hexo-tag-table-bootstrap, description and uses

hexo-tag-table-bootstrap is a hexo tag-plugin for adding the class attribute to the table tag. The values of the class are based on bootstrap. You can customize the tables of your posts with the bootstrap style sheets. This tag-plugin works for hexo themes based on bootstrap, for example the freewill theme, for this theme, the tables are rendered without the class attribute showing without style.

<table>
</table>

You need to install hexo-tag-table-bootstrap first. In your blog root folder, execute the following command:

$ npm install hexo-tag-table-bootstrap --save

Then you can use this tag plugins in your blog, as easily as you normally do using hexo tag plugins.

Syntax

{% table [class] %}
  table md
{% endtable %}

The class attribute is optional:

  • table-striped
  • table-bordered
  • table-hover
  • table-condensed

Example

{% table %}

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

{% endtable %}

Result

<table class="table">

table!

Example

{% table table-striped %}

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

{% endtable %}

Result

<table class="table table-striped">

table table-striped!

You can’t perform that action at this time.