From 028f23e96dd4c6a86465cb616be84480ac3a7a1e Mon Sep 17 00:00:00 2001 From: Ahmed M Alaa Date: Sat, 3 Dec 2022 21:01:01 +0200 Subject: init: just ported the theme --- README.md | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..af74eee --- /dev/null +++ b/README.md @@ -0,0 +1,75 @@ +# no style, please! + +A (nearly) no-CSS, fast, minimalist [Zola](https://www.getzola.org/) theme. +Ported from from [riggraz](https://riggraz.dev/)'s [no style, please! Jekyll theme](https://riggraz.dev/no-style-please/), and I use it for [my site](https://4b.cx/) + +![screenshot](./screenshot.png) + +## Installation + +First download this theme to your `themes` directory: + +```bash +cd themes +git clone https://gitlab.com/4bcx/no-style-please.git +``` + +and then enable it in your `config.toml`: + +```toml +theme = "no-style-please" +``` + +## Options + +### Pages list in homepage + +To enable listing of pages in homepage add the following in `content\_index.md` frontmatter + +```toml +[exta] +list_pages = false +``` + +### Extra data + +- `author` can be set in both main config and in pages metadata +- `image` variable can be used in pages to add an image to HTML `` tags +- Same for `logo` in main config, except this one is also used as the site icon + +### Horizontal rule shortcode `hr()` + +Adds the option to insert text in the thematic break + +```html +{{ hr(data_content="footnotes") }} +``` + +is rendered + +![thematic break screenshot](./hr_footnotes.png) + +### Invertable image `iimg()` + +Images are not inverted in darkmode by default. To add an invertable image use the following + +```html +{{ iimg(src="logo.png", alt="alt text") }} +``` + +In light mode + +![image in light mode](./iimg_light.png) + +In dark mode + +![image in dark mode](./iimg_dark.png) + +## TODO + +- [ ] Add RTL support +- [ ] Write proper test pages + +## License + +The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). -- cgit v1.2.3