getpelican / pelican

Static site generator that supports Markdown and reST syntax. Powered by Python.
https://getpelican.com
GNU Affero General Public License v3.0
12.49k stars 1.81k forks source link

Use classless semantic HTML in the "simple" theme #3233

Closed pauloxnet closed 10 months ago

pauloxnet commented 10 months ago

Feature Request

Premise

Currently, in the "simple" theme there is no style sheet and it uses semantic HTML almost entirely, but not completely yet.

Proposal

I propose to remove any class references from the HTML code, which are not used anyway, and make the HTML code entirely semantic.

Feature

avaris commented 10 months ago

cleaner and lighter HTML code, thanks to the removal of unused parts (e.g. classes, ids, comments)

I get the other two but "comments"? Unused in rendering, yes, but they are not useless. Especially for a theme that's supposed to be a starter template for people to write their own.

pauloxnet commented 10 months ago

I provided the working PR #3234 (yet not tests complete)

pauloxnet commented 10 months ago

I tried the "simple" theme combined with some classless CSS frameworks found in this list: "Awesome Classless CSS" https://github.com/dbohdan/classless-css

Below are some screenshots of the various versions of my website using the updated "simple" theme, simply by providing a different URL in the STYLESHEET_URL setting, as shown in the example below

STYLESHEET_URL = "https://cdn.simplecss.org/simple.min.css"
pauloxnet commented 10 months ago

Bamboo

STYLESHEET_URL = "https://unpkg.com/bamboo.css"
dark light
bamboo dark-min bamboo light-min
pauloxnet commented 10 months ago

Holiday

STYLESHEET_URL = "https://cdn.jsdelivr.net/npm/holiday.css@0.11.2"
dark light
holiday dark-min holiday light-min
pauloxnet commented 10 months ago

Missing

STYLESHEET_URL = "https://unpkg.com/missing.css@1.1.1"
dark light
missing dark-min missing light-min
pauloxnet commented 10 months ago

Pico

STYLESHEET_URL = "https://cdn.jsdelivr.net/npm/@picocss/pico@next/css/pico.classless.min.css"
dark light
pico dark-min pico light-min
pauloxnet commented 10 months ago

Simple

STYLESHEET_URL = "https://cdn.simplecss.org/simple.min.css"
dark light
simple dark-min simple light-min
pauloxnet commented 10 months ago

SpCSS

STYLESHEET_URL = "https://cdn.jsdelivr.net/npm/spcss@0.9.0"
dark light
spcss dark-min spcss light-min
pauloxnet commented 10 months ago

Tufte CSS

STYLESHEET_URL = "https://unpkg.com/tufte-css@1.8.0/tufte.min.css"
dark light
tufte dark-min tufte light-min
pauloxnet commented 10 months ago

Water

STYLESHEET_URL = "https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css"
dark light
water dark-min water light-min
pauloxnet commented 10 months ago

Default

Web page as rendered by Firefox with no STYLESHEET_URL. default-min