├── .gitignore ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── config.toml ├── content ├── 2014 │ ├── 2014-05-22_comment-tracking-system │ │ └── index.md │ ├── 2014-05-22_honor-point-updates │ │ └── index.md │ ├── 2014-05-22_solutions-tag-voting │ │ └── index.md │ ├── 2014-05-26_kata-are-no-longer-fully-locked │ │ └── index.md │ ├── 2014-07-23_docker │ │ └── index.md │ ├── 2014-07-23_kata-contributor │ │ └── index.md │ ├── 2014-09-11_sneak-peak-kumite │ │ └── index.md │ ├── 2014-11-10_the-codewars-team-is-growing │ │ └── index.md │ └── _index.md ├── 2016 │ ├── 2016-01-06_announcing-the-codewars-codex │ │ └── index.md │ ├── 2016-05-19_codewars-runner-now-open-source │ │ └── index.md │ ├── 2016-05-24_new-language-updates │ │ └── index.md │ ├── 2016-07-16_php-and-dart │ │ └── index.md │ ├── 2016-10-20_introducing-sql │ │ ├── index.md │ │ └── sql-results.png │ ├── 2016-10-26_sql-updates │ │ ├── charts.png │ │ ├── expected-results.png │ │ ├── index.md │ │ └── test-output.png │ ├── 2016-11-22_honor-corrections │ │ └── index.md │ ├── 2016-12-05_introducing-codewars-red │ │ ├── head-to-head.png │ │ ├── index.md │ │ ├── language-stats.png │ │ ├── red-banner.png │ │ ├── solution-upvotes.png │ │ └── streaks.png │ └── _index.md ├── 2017 │ ├── 2017-01-26_honor-and-leaderboard-updates │ │ └── index.md │ ├── 2017-08-21_smarter-markdown │ │ └── index.md │ ├── 2017-10-20_new-languages-and-updated-beta-process │ │ └── index.md │ └── _index.md ├── 2018 │ ├── 2018-04-16_next-gen-code-execution-engine │ │ ├── duplicate-warning.png │ │ ├── index.md │ │ ├── new-languages-dark.png │ │ ├── new-languages-light.png │ │ └── top.png │ └── _index.md ├── 2019 │ ├── 2019-03-19_new-languages │ │ └── index.md │ └── _index.md ├── 2021 │ ├── 2021-01-21_updates-from-the-past-year │ │ └── index.md │ └── _index.md └── _index.md ├── netlify.toml ├── package-lock.json ├── package.json ├── postcss.config.js ├── static ├── favicon.ico └── logo.png ├── styles.css ├── tailwind.config.js └── templates ├── 404.html ├── anchor-link.html ├── base.html ├── icons.html ├── index.html ├── macros.html ├── page.html ├── rss.xml ├── section.html ├── shortcodes ├── airtable.html ├── container.html ├── details.html └── figure.html └── tags ├── list.html └── single.html /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | public/ 3 | # Generated by PostCSS 4 | static/styles.css 5 | # Generated by resize_image function 6 | static/processed_images/ 7 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "*.html": "tera" 4 | }, 5 | "[tera]": { 6 | "editor.formatOnSave": false 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 kazk 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The Codewars Blog 2 | 3 | Blog for Codewars with [Zola](https://www.getzola.org/) + [TailwindCSS](https://tailwindcss.com/). 4 | 5 | ## Contributing Content 6 | 7 | Contributions are welcomed! 8 | 9 | To fix any issues you found, simply edit the Markdown files under `content/` and open pull requests. 10 | 11 | If you'd like to write about Codewars and publish here, please open an issue about it first. 12 | 13 | ## Developing 14 | 15 | ### Installing Dependencies 16 | 17 | You'll need `zola` and `node` installed: 18 | 19 | - `zola` executable (a single binary, see [how to install it](https://www.getzola.org/documentation/getting-started/installation/)) 20 | - `node` v12+ (see [how to install it](https://nodejs.org/en/download)) 21 | 22 | Then run `npm install`. 23 | 24 | ### Commands 25 | 26 | - `npm run dev` to start a local server that reloads automatically on file change. Works by running `zola serve` and `postcss --watch` concurrently. CSS changes rarely thanks to Tailwind and Zola is extremely fast, so each build finishes in milliseconds! 27 | - `npm run build` to build the site. 28 | 29 | ### Directory Structure 30 | 31 | ```text 32 | ├── content/ <- Markdown files 33 | ├── public/ <- generated site 34 | ├── static/ <- static assets to be copied to `public/` 35 | ├── templates/ <- Tera templates 36 | ├── config.toml <- Zora config 37 | ├── package.json 38 | ├── postcss.config.js 39 | ├── styles.css <- source of `static/styles.css` (processed by PostCSS) 40 | └── tailwind.config.js 41 | ``` 42 | 43 | ## Shortcodes 44 | 45 | Zola's [shortcodes] allow easily inject HTML in Markdown and reduce repetition. We curently have the following custom shortcodes defined: 46 | 47 | - `airtable(id: string, color?: string = "gray")` [embeds Airtable base][airtable-embed] with `id` with optional `color` for `backgroundColor`. 48 | - `container(type: note|tip|info|warning|danger, title?: string)` wraps `body` in a styled container `