From c9d6b629078f70f4392818a17a4a7ac6b11c0480 Mon Sep 17 00:00:00 2001 From: welpo Date: Tue, 23 Jan 2024 23:42:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(README):=20add=20CSS=20code?= =?UTF-8?q?=20block=20setup=20in=20required=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Related discussion: #258 --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f099841..ebcb217 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,15 @@ theme = "tabi" title = "Your Site Title" ``` -4. Create a `content/_index.md` file with the following content: +4. Configure code block highlighting in your `config.toml`: + +```toml +[markdown] +highlight_code = true +highlight_theme = "css" +``` + +5. Create a `content/_index.md` file with the following content: ``` +++ @@ -111,7 +119,7 @@ If you want to serve your blog posts from a different path, such as `blog/`, add section_path = "blog/_index.md" ``` -5. If you want an introduction section (see screenshot above), add these lines to `content/_index.md`: +6. If you want an introduction section (see screenshot above), add these lines to `content/_index.md`: ``` [extra] @@ -120,7 +128,7 @@ header = {title = "Hello! I'm tabi~", img = "img/main.webp", img_alt = "Your Nam The content outside the front matter will be rendered between the header title and the posts listing. In the screenshot above, it's the text that reads "tabi is a fast, lightweight, and modern Zola themeā€¦". -6. If you want a multilingual site, you will need to set up each language. In `config.toml`, set the title and taxonomies for each language, like: +7. If you want a multilingual site, you will need to set up each language. In `config.toml`, set the title and taxonomies for each language, like: ```toml [languages.es]