Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gethinode/mod-simple-datatables

A Hugo module to enhance tables powered by simple-datatables to your Hinode site
https://github.com/gethinode/mod-simple-datatables

Last synced: 2 months ago
JSON representation

A Hugo module to enhance tables powered by simple-datatables to your Hinode site

Awesome Lists containing this project

README

        

# Hinode Module - Simple Datatables


A Hugo module to enhance tables powered by simple-datatables to your Hinode site





















## About

![Logo](https://raw.githubusercontent.com/gethinode/hinode/main/static/img/logo.png)

Hinode is a clean blog theme for [Hugo][hugo], an open-source static site generator. Hinode is available as a [template][repository_template], and a [main theme][repository]. This repository maintains a Hugo module to add [simple-datatables][simple-datatables] to a Hinode site. Visit the Hinode documentation site for [installation instructions][hinode_docs].

## Contributing

This module uses [semantic-release][semantic-release] to automate the release of new versions. The package uses `husky` and `commitlint` to ensure commit messages adhere to the [Conventional Commits][conventionalcommits] specification. You can run `npx git-cz` from the terminal to help prepare the commit message.

## Usage

Simple datatables is compatible with Bootstrap tables. It uses Hugo's `i18n` folder for the translation tables of [multilingual sites][hugo_multilingual]. Add the attribute `data-table` to the class of any table. The following arguments are supported:

| Argument | Default | Description |
|-----------------------|---------|-------------|
| data-table-sortable | `true` | Toggle the ability to sort the columns. |
| data-table-paging | `true` | Whether paging is enabled for the table. |
| data-table-searchable | `true` | Toggle the ability to search the dataset. |

[hugo]: https://gohugo.io
[hugo_multilingual]: https://gohugo.io/content-management/multilingual/
[hinode_docs]: https://gethinode.com
[simple-datatables]: https://github.com/fiduswriter/simple-datatables/tree/main
[repository]: https://github.com/gethinode/hinode.git
[repository_template]: https://github.com/gethinode/template.git
[conventionalcommits]: https://www.conventionalcommits.org
[husky]: https://typicode.github.io/husky/
[semantic-release]: https://semantic-release.gitbook.io/