Blog for Codewars with Zola + TailwindCSS.
Contributions are welcomed!
To fix any issues you found, simply edit the Markdown files under content/ and open pull requests.
If you'd like to write about Codewars and publish here, please open an issue about it first.
You'll need zola and node installed:
zolaexecutable (a single binary, see how to install it)nodev12+ (see how to install it)
Then run npm install.
npm run devto start a local server that reloads automatically on file change. Works by runningzola serveandpostcss --watchconcurrently. CSS changes rarely thanks to Tailwind and Zola is extremely fast, so each build finishes in milliseconds!npm run buildto build the site.
├── content/ <- Markdown files
├── public/ <- generated site
├── static/ <- static assets to be copied to `public/`
├── templates/ <- Tera templates
├── config.toml <- Zora config
├── package.json
├── postcss.config.js
├── styles.css <- source of `static/styles.css` (processed by PostCSS)
└── tailwind.config.js
Zola's shortcodes allow easily inject HTML in Markdown and reduce repetition. We curently have the following custom shortcodes defined:
airtable(id: string, color?: string = "gray")embeds Airtable base withidwith optionalcolorforbackgroundColor.container(type: note|tip|info|warning|danger, title?: string)wrapsbodyin a styled container<div>with icon, similar to gridsome-remark-container.titledefaults totype.details(summary: string)wrapsbodyin<details>with<summary>.figure(src: string, alt?: string, themed?: bool = false)produces centered responsive image inside<figure>withaltin<figcaption>if provided.srcis a co-located asset and relative to the page or section. Ifthemedis true,light/darkimage variants are used.srcis a file name without-light/-darksuffix. For example,figure(src='foo.png', themed=true)requiresfoo-light.pngandfoo-dark.png.
- Use feeds to show recent articles on the Codewars dashboard
- Show short summary in listing
- Featured articles
- Categorize and provide navigation
- Authors
- Improve tagging
- Archiving old articles
- Add "Edit on GitHub" link