Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/frjo/hugo-theme-zen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Jonsson <frjo@xdeb.org>2022-06-03 10:58:41 +0300
committerFredrik Jonsson <frjo@xdeb.org>2022-06-03 10:58:41 +0300
commit2c9feecc71bad7eae21ab7f1ac9cbd53f1a8e2b2 (patch)
treef4a3506b447d04c0b48d635c5c2a6caede99cc11
parent66b79fc31b45648c3ccf74188ec423fd5393ed9e (diff)
README code lang formatting.
-rw-r--r--README.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/README.md b/README.md
index d3c4846..c64dc72 100644
--- a/README.md
+++ b/README.md
@@ -194,7 +194,7 @@ Some performance tools will complain about to many files (js and css files are n
Configurations parameters for the sites config file, in yaml format. All the "params" are optional.
-```
+```yaml
baseurl: "https://example.org/"
title: "SiteTitle"
theme: "zen"
@@ -358,7 +358,7 @@ For "rtl" languages add a `languageDirection` parameter to the language configur
Add a `languageCode` parameter to each language as well, that is used to set the correct language attribute in the `html` tag and in feeds. The root `languageCode` is then not needed. If not set the language key (e.g. "en") will be used.
-```
+```yaml
languages:
sv:
weight: 1
@@ -383,7 +383,7 @@ Set `defaultContentLanguage` to your language code, otherwise it will default to
Here how it looks for a site in Swedish.
-```
+```yaml
languageCode: "sv-SE"
defaultContentLanguage: "sv"
```
@@ -396,7 +396,7 @@ Built in integration with the excellent [FlexSearch.js](https://github.com/nexta
Here is the three steps needed to create a search page.
1. Add a new output format in your configuration file.
- ```
+ ```yaml
outputFormats:
SearchIndex:
mediaType: "application/json"
@@ -405,7 +405,7 @@ Here is the three steps needed to create a search page.
notAlternative: true
```
2. Add the new output format to output setting for "home".
- ```
+ ```yaml
outputs:
home: ["HTML", "SearchIndex", "[other formats you need]"]
```
@@ -460,7 +460,7 @@ The Zen theme supports podcasting.
Here follow all the possible podcast frontmatter parameters. Only the first two is mandatory and are in the podcast archetype.
-```
+```yaml
podcast:
mp3: # * The path to the mp3 file,
duration: # * Episode duration, e.g 1:04:02 (iTunes).
@@ -608,7 +608,7 @@ Creates a link to an internal page.
This will output:
-```
+```html
<a href="/path/to/page/">The title of the page</a>
```
@@ -657,7 +657,7 @@ Some more content.
This will produce:
-```
+```html
<div class="class-name-you-want">
<p>The <strong>content</strong> that should be wrapped.</p>
@@ -677,7 +677,7 @@ Some more content.
This will produce:
-```
+```html
<div class="class-name-you-want">
The **content** that should be wrapped. Some more content.
</div>
@@ -696,7 +696,7 @@ This is the way I construct my JavaScript files.
**Umbrella JS:**
-```
+```js
(function ($) {
'use strict';
@@ -709,7 +709,7 @@ This is the way I construct my JavaScript files.
**jQuery:**
-```
+```js
(function ($) {
'use strict';