Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Hugo theme that applies the Classless CSS templates, with theme selection via config.toml and optional per-post covers.
Classless for Hugo is a Hugo theme that implements the Classless CSS template collection, letting you choose any supported Classless theme directly from your site's config.toml.
Classless for Hugo is a Hugo theme built around the Classless CSS templates. It takes a Hugo site and applies a chosen Classless theme via configuration, outputting fully static pages with that theme's styling. The theme is maintained on GitHub, with the Hugo implementation described as "The Classless templates and themes implemented in Hugo". The theme serves the selected CSS from rawgit.com using the commit hash from the classless repository to get CDNized versions of the themes.
theme and commit_sha parameters in config.toml to load a specific Classless theme; alternatively set theme_url to include any custom CSS URL.description parameter fills the <meta> description and the body > header element, and is overridden by post summaries on normal posts.show_summaries to false to suppress automatic summaries on list pages.layouts/partials/aside.html and layouts/partials/footer.html files can be overwritten to customize the body elements that Classless provides.cover URL to show an image in the article header and on list pages.hide_date to hide the date and tags as an array, both optional.content/posts/ directory structure.Hugo developers who want a minimal, classless CSS aesthetic without writing custom styles. Minimalist bloggers who want a no-frills theme with a clean reading experience. Developers building a quick Hugo site who want to try multiple Classless themes before settling on one.
content/posts/ with optional cover images, tags, and hidden dates, and have them styled with a chosen Classless theme.config.toml.theme_url to a custom stylesheet URL.aside.html and footer.html partials to extend the Classless layout.Install the theme, create a config.toml with a [params] section, set theme and commit_sha (or theme_url), and place posts in content/posts/. The theme fetches the chosen CSS from rawgit.com using the commit hash for caching. If nothing is set, a random theme and a theme-picker widget are rendered.
Set the theme parameter to the name of any theme listed at the Classless themes page and set commit_sha to the 7-character commit hash from the classless GitHub repository. The site then loads that theme's CSS via rawgit.com.
If neither theme nor theme_url is configured, a random Classless theme is included and a widget appears on the site that lets you switch themes interactively. You can experiment and then write your selection into config.toml.
Yes. Set theme_url to a direct URL of any CSS file. That URL is included as the theme's stylesheet, overriding the default random theme.
In the post's front matter, set cover to an image URL. The image appears in the article header on the post page and on list pages.
Yes. Posts can declare a tags array in front matter, which the theme's partials can use to display tags (the content documents the parameter but not the default display markup).