OxideTalis Messaging Protocol (OTMP) https://otmp.4rs.nl
Find a file
Ahmed Alaa 6496bae0a3 Merge branch 'no-twitter' into 'no-twitter'
templates/base: allow excluding twitter stuff from page source

See merge request 4bcx/no-style-please!3
2023-04-05 19:14:29 +00:00
content fix: adjusted list_page option, typos 2022-12-04 23:19:16 +02:00
sass added: default taxonomies templates, custom nav links 2022-12-05 14:48:27 +02:00
static/images init: just ported the theme 2022-12-03 21:01:01 +02:00
templates Merge branch 'no-twitter' into 'no-twitter' 2023-04-05 19:14:29 +00:00
.gitignore init: just ported the theme 2022-12-03 21:01:01 +02:00
.gitlab-ci.yml fix: branch setting in .gitlab-ci.yml (remember to read what you're copying) 2022-12-03 21:10:35 +02:00
config.toml templates/base: allow excluding twitter stuff from page source 2023-02-10 11:34:45 -08:00
hr_footnotes.png init: just ported the theme 2022-12-03 21:01:01 +02:00
iimg_dark.png init: just ported the theme 2022-12-03 21:01:01 +02:00
iimg_light.png init: just ported the theme 2022-12-03 21:01:01 +02:00
LICENSE init: just ported the theme 2022-12-03 21:01:01 +02:00
README.md Merge branch 'new-tab' into 'main' 2023-04-05 18:46:07 +00:00
screenshot.png init: just ported the theme 2022-12-03 21:01:01 +02:00
theme.toml fix: theme demo and repo urls 2022-12-03 23:54:37 +02:00

no style, please!

A (nearly) no-CSS, fast, minimalist Zola theme. Ported from from riggraz's no style, please! Jekyll theme, and I use it for my site

screenshot

Installation

First download this theme to your themes directory:

cd themes
git clone https://gitlab.com/4bcx/no-style-please.git

and then enable it in your config.toml:

theme = "no-style-please"

Options

Default taxonomies

Special templates for tags, categories, and contexts taxonomies are provided. However, generic templates exist for custom taxonomies.

To use taxonomies, in a page metadata add

[taxonomies]
tags = [ 'tag1', 'tag2' ]
categories = [ 'category A', 'B class' ]
genre = [ 'rock', 'alternative' ]   # custom taxonomy

Pages list in homepage

To enable listing of pages in homepage add the following in config.toml

[extra]
list_pages = true

Also in the extra section in config.toml

[extra]

header_nav = [
    { name = "~home", url = "/" },
    { name = "#tags", url = "/tags" },
    { name = "+categories", url = "/categories" },
    { name = "@contexts", url = "/contexts" },
    { name = "example", url = "http://example.com", new_tab=true },
]
footer_nav = [
    { name = "< previous", url = "#" },
    { name = "webring", url = "#" },
    { name = "next >", url = "#" },
]

Add TOC to pages

In a page frontmatter, set extra.add_toc to true

[extra]
add_toc = true

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 <meta> 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

{{ hr(data_content="footnotes") }}

is rendered

thematic break screenshot

Invertable image iimg()

Images are not inverted in darkmode by default. To add an invertable image use the following

{{ iimg(src="logo.png", alt="alt text") }}

In light mode

image in light mode

In dark mode

image in dark mode

TODO

  • Add RTL support
  • Write proper test pages

License

The theme is available as open source under the terms of the MIT License.