Initial commit
6
themes/DeepThought/content/docs/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
title = "Docs"
|
||||
description = "Documentation for the Deep Thought theme."
|
||||
sort_by = "date"
|
||||
paginate_by = 5
|
||||
+++
|
562
themes/DeepThought/content/docs/basic-markdown-syntax.md
Normal file
|
@ -0,0 +1,562 @@
|
|||
+++
|
||||
title="Basic Markdown Syntax"
|
||||
date=2020-08-28
|
||||
|
||||
[taxonomies]
|
||||
categories = ["Markdown"]
|
||||
tags = ["post", "markdown"]
|
||||
[extra]
|
||||
toc = true
|
||||
comments = false
|
||||
+++
|
||||
|
||||
This article offers a sample of basic Markdown syntax that can be used in Zola content files.
|
||||
|
||||
<!--more-->
|
||||
|
||||
|
||||
Let's face it: Writing content for the Web is tiresome. WYSIWYG editors help alleviate this task, but they generally result in horrible code, or worse yet, ugly web pages.
|
||||
|
||||
**Markdown** is a better way to write **HTML**, without all the complexities and ugliness that usually accompanies it.
|
||||
|
||||
Some of the key benefits are:
|
||||
|
||||
1. Markdown is simple to learn, with minimal extra characters, so it's also quicker to write content.
|
||||
2. Less chance of errors when writing in Markdown.
|
||||
3. Produces valid XHTML output.
|
||||
4. Keeps the content and the visual display separate, so you cannot mess up the look of your site.
|
||||
5. Write in any text editor or Markdown application you like.
|
||||
6. Markdown is a joy to use!
|
||||
|
||||
Without further delay, let us go over the main elements of Markdown and what the resulting HTML looks like!
|
||||
|
||||
|
||||
# Headings
|
||||
|
||||
Headings from `h1` through `h6` are constructed with a `#` for each level:
|
||||
|
||||
```markdown
|
||||
# h1 Heading
|
||||
## h2 Heading
|
||||
### h3 Heading
|
||||
#### h4 Heading
|
||||
##### h5 Heading
|
||||
###### h6 Heading
|
||||
```
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<h1>h1 Heading</h1>
|
||||
<h2>h2 Heading</h2>
|
||||
<h3>h3 Heading</h3>
|
||||
<h4>h4 Heading</h4>
|
||||
<h5>h5 Heading</h5>
|
||||
<h6>h6 Heading</h6>
|
||||
```
|
||||
|
||||
# Comments
|
||||
|
||||
Comments should be HTML compatible.
|
||||
|
||||
```html
|
||||
<!--
|
||||
This is a comment
|
||||
-->
|
||||
```
|
||||
|
||||
Comment below should **NOT** be seen:
|
||||
|
||||
<!--
|
||||
This is a comment
|
||||
-->
|
||||
|
||||
# Horizontal Rules
|
||||
|
||||
The HTML `<hr>` element is for creating a "thematic break" between paragraph-level elements.
|
||||
In Markdown, you can create a `<hr>` with any of the following:
|
||||
|
||||
* `___`: three consecutive underscores
|
||||
* `---`: three consecutive dashes
|
||||
* `***`: three consecutive asterisks
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
___
|
||||
---
|
||||
***
|
||||
|
||||
# Body
|
||||
|
||||
Body written as normal, plain text will be wrapped with `<p></p>` tags in the rendered HTML.
|
||||
|
||||
So this body:
|
||||
|
||||
```markdown
|
||||
Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri,
|
||||
animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi. Labore officiis his ex,
|
||||
soluta officiis concludaturque ei qui, vide sensibus vim ad.
|
||||
```
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<p>Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri, animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi. Labore officiis his ex, soluta officiis concludaturque ei qui, vide sensibus vim ad.</p>
|
||||
```
|
||||
|
||||
A **line break** can be done with one blank line.
|
||||
|
||||
# Inline HTML
|
||||
|
||||
If you need a certain HTML tag (with a class) you can simply use HTML:
|
||||
|
||||
```html
|
||||
Paragraph in Markdown.
|
||||
|
||||
<div class="class">
|
||||
This is <b>HTML</b>
|
||||
</div>
|
||||
|
||||
Paragraph in Markdown.
|
||||
```
|
||||
|
||||
# Emphasis
|
||||
|
||||
## Bold
|
||||
|
||||
For emphasizing a snippet of text with a heavier font-weight.
|
||||
|
||||
The following snippet of text is **rendered as bold text**.
|
||||
|
||||
```markdown
|
||||
**rendered as bold text**
|
||||
__rendered as bold text__
|
||||
```
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<strong>rendered as bold text</strong>
|
||||
```
|
||||
|
||||
## Italics
|
||||
|
||||
For emphasizing a snippet of text with italics.
|
||||
|
||||
The following snippet of text is _rendered as italicized text_.
|
||||
|
||||
```markdown
|
||||
*rendered as italicized text*
|
||||
_rendered as italicized text_
|
||||
```
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<em>rendered as italicized text</em>
|
||||
```
|
||||
|
||||
## Strikethrough
|
||||
|
||||
In [[GFM]^(GitHub flavored Markdown)](https://github.github.com/gfm/) you can do strikethroughs.
|
||||
|
||||
```markdown
|
||||
~~Strike through this text.~~
|
||||
```
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<del>Strike through this text.</del>
|
||||
```
|
||||
|
||||
# Blockquotes
|
||||
|
||||
For quoting blocks of content from another source within your document.
|
||||
|
||||
Add `>` before any text you want to quote:
|
||||
|
||||
```markdown
|
||||
> **Fusion Drive** combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
> **Fusion Drive** combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<blockquote>
|
||||
<p>
|
||||
<strong>Fusion Drive</strong> combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.
|
||||
</p>
|
||||
</blockquote>
|
||||
```
|
||||
|
||||
Blockquotes can also be nested:
|
||||
|
||||
```markdown
|
||||
> Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
|
||||
Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi.
|
||||
>> Sed adipiscing elit vitae augue consectetur a gravida nunc vehicula. Donec auctor
|
||||
odio non est accumsan facilisis. Aliquam id turpis in dolor tincidunt mollis ac eu diam.
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
> Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
|
||||
Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi.
|
||||
>> Sed adipiscing elit vitae augue consectetur a gravida nunc vehicula. Donec auctor
|
||||
odio non est accumsan facilisis. Aliquam id turpis in dolor tincidunt mollis ac eu diam.
|
||||
|
||||
# Lists
|
||||
|
||||
## Unordered
|
||||
|
||||
A list of items in which the order of the items does not explicitly matter.
|
||||
|
||||
You may use any of the following symbols to denote bullets for each list item:
|
||||
|
||||
```markdown
|
||||
* valid bullet
|
||||
- valid bullet
|
||||
+ valid bullet
|
||||
```
|
||||
|
||||
For example:
|
||||
|
||||
```markdown
|
||||
* Lorem ipsum dolor sit amet
|
||||
* Consectetur adipiscing elit
|
||||
* Integer molestie lorem at massa
|
||||
* Facilisis in pretium nisl aliquet
|
||||
* Nulla volutpat aliquam velit
|
||||
* Phasellus iaculis neque
|
||||
* Purus sodales ultricies
|
||||
* Vestibulum laoreet porttitor sem
|
||||
* Ac tristique libero volutpat at
|
||||
* Faucibus porta lacus fringilla vel
|
||||
* Aenean sit amet erat nunc
|
||||
* Eget porttitor lorem
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
* Lorem ipsum dolor sit amet
|
||||
* Consectetur adipiscing elit
|
||||
* Integer molestie lorem at massa
|
||||
* Facilisis in pretium nisl aliquet
|
||||
* Nulla volutpat aliquam velit
|
||||
* Phasellus iaculis neque
|
||||
* Purus sodales ultricies
|
||||
* Vestibulum laoreet porttitor sem
|
||||
* Ac tristique libero volutpat at
|
||||
* Faucibus porta lacus fringilla vel
|
||||
* Aenean sit amet erat nunc
|
||||
* Eget porttitor lorem
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<ul>
|
||||
<li>Lorem ipsum dolor sit amet</li>
|
||||
<li>Consectetur adipiscing elit</li>
|
||||
<li>Integer molestie lorem at massa</li>
|
||||
<li>Facilisis in pretium nisl aliquet</li>
|
||||
<li>Nulla volutpat aliquam velit
|
||||
<ul>
|
||||
<li>Phasellus iaculis neque</li>
|
||||
<li>Purus sodales ultricies</li>
|
||||
<li>Vestibulum laoreet porttitor sem</li>
|
||||
<li>Ac tristique libero volutpat at</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Faucibus porta lacus fringilla vel</li>
|
||||
<li>Aenean sit amet erat nunc</li>
|
||||
<li>Eget porttitor lorem</li>
|
||||
</ul>
|
||||
```
|
||||
|
||||
## Ordered
|
||||
|
||||
A list of items in which the order of items does explicitly matter.
|
||||
|
||||
```markdown
|
||||
1. Lorem ipsum dolor sit amet
|
||||
2. Consectetur adipiscing elit
|
||||
3. Integer molestie lorem at massa
|
||||
4. Facilisis in pretium nisl aliquet
|
||||
5. Nulla volutpat aliquam velit
|
||||
6. Faucibus porta lacus fringilla vel
|
||||
7. Aenean sit amet erat nunc
|
||||
8. Eget porttitor lorem
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
1. Lorem ipsum dolor sit amet
|
||||
2. Consectetur adipiscing elit
|
||||
3. Integer molestie lorem at massa
|
||||
4. Facilisis in pretium nisl aliquet
|
||||
5. Nulla volutpat aliquam velit
|
||||
6. Faucibus porta lacus fringilla vel
|
||||
7. Aenean sit amet erat nunc
|
||||
8. Eget porttitor lorem
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<ol>
|
||||
<li>Lorem ipsum dolor sit amet</li>
|
||||
<li>Consectetur adipiscing elit</li>
|
||||
<li>Integer molestie lorem at massa</li>
|
||||
<li>Facilisis in pretium nisl aliquet</li>
|
||||
<li>Nulla volutpat aliquam velit</li>
|
||||
<li>Faucibus porta lacus fringilla vel</li>
|
||||
<li>Aenean sit amet erat nunc</li>
|
||||
<li>Eget porttitor lorem</li>
|
||||
</ol>
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Task Lists
|
||||
|
||||
Task lists allow you to create a list of items with checkboxes. To create a task list, add dashes (`-`) and brackets with a space (`[ ]`) before task list items. To select a checkbox, add an x in between the brackets (`[x]`).
|
||||
|
||||
```markdown
|
||||
- [x] Write the press release
|
||||
- [ ] Update the website
|
||||
- [ ] Contact the media
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
- [x] Write the press release
|
||||
- [ ] Update the website
|
||||
- [ ] Contact the media
|
||||
|
||||
# Code
|
||||
|
||||
## Inline Code
|
||||
|
||||
Wrap inline snippets of code with <code>`</code>.
|
||||
|
||||
```markdown
|
||||
In this example, `<section></section>` should be wrapped as **code**.
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
In this example, `<section></section>` should be wrapped as **code**.
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<p>
|
||||
In this example, <code><section></section></code> should be wrapped with <strong>code</strong>.
|
||||
</p>
|
||||
```
|
||||
|
||||
## Indented Code
|
||||
|
||||
Or indent several lines of code by at least four spaces, as in:
|
||||
|
||||
```markdown
|
||||
// Some comments
|
||||
line 1 of code
|
||||
line 2 of code
|
||||
line 3 of code
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
// Some comments
|
||||
line 1 of code
|
||||
line 2 of code
|
||||
line 3 of code
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<pre>
|
||||
<code>
|
||||
// Some comments
|
||||
line 1 of code
|
||||
line 2 of code
|
||||
line 3 of code
|
||||
</code>
|
||||
</pre>
|
||||
```
|
||||
|
||||
# Tables
|
||||
|
||||
Tables are created by adding pipes as dividers between each cell, and by adding a line of dashes (also separated by bars) beneath the header. Note that the pipes do not need to be vertically aligned.
|
||||
|
||||
```markdown
|
||||
| Option | Description |
|
||||
| ------ | ----------- |
|
||||
| data | path to data files to supply the data that will be passed into templates. |
|
||||
| engine | engine to be used for processing templates. Handlebars is the default. |
|
||||
| ext | extension to be used for dest files. |
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
| Option | Description |
|
||||
| ------ | ----------- |
|
||||
| data | path to data files to supply the data that will be passed into templates. |
|
||||
| engine | engine to be used for processing templates. Handlebars is the default. |
|
||||
| ext | extension to be used for dest files. |
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Option</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>data</td>
|
||||
<td>path to data files to supply the data that will be passed into templates.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>engine</td>
|
||||
<td>engine to be used for processing templates. Handlebars is the default.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ext</td>
|
||||
<td>extension to be used for dest files.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
```
|
||||
|
||||
|
||||
# Links
|
||||
|
||||
## Basic Link
|
||||
|
||||
```markdown
|
||||
<https://assemble.io>
|
||||
<contact@revolunet.com>
|
||||
[Assemble](https://assemble.io)
|
||||
```
|
||||
|
||||
The rendered output looks like this (hover over the link, there is no tooltip):
|
||||
|
||||
<https://assemble.io>
|
||||
|
||||
<contact@revolunet.com>
|
||||
|
||||
[Assemble](https://assemble.io)
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<a href="https://assemble.io">https://assemble.io</a>
|
||||
<a href="mailto:contact@revolunet.com">contact@revolunet.com</a>
|
||||
<a href="https://assemble.io">Assemble</a>
|
||||
```
|
||||
|
||||
## Add a Title
|
||||
|
||||
```markdown
|
||||
[Upstage](https://github.com/upstage/ "Visit Upstage!")
|
||||
```
|
||||
|
||||
The rendered output looks like this (hover over the link, there should be a tooltip):
|
||||
|
||||
[Upstage](https://github.com/upstage/ "Visit Upstage!")
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
```html
|
||||
<a href="https://github.com/upstage/" title="Visit Upstage!">Upstage</a>
|
||||
```
|
||||
|
||||
## Named Anchors
|
||||
|
||||
Named anchors enable you to jump to the specified anchor point on the same page. For example, each of these chapters:
|
||||
|
||||
```markdown
|
||||
## Table of Contents
|
||||
* [Chapter 1](#chapter-1)
|
||||
* [Chapter 2](#chapter-2)
|
||||
* [Chapter 3](#chapter-3)
|
||||
```
|
||||
|
||||
will jump to these sections:
|
||||
|
||||
```markdown
|
||||
## Chapter 1 <a id="chapter-1"></a>
|
||||
Content for chapter one.
|
||||
|
||||
## Chapter 2 <a id="chapter-2"></a>
|
||||
Content for chapter one.
|
||||
|
||||
## Chapter 3 <a id="chapter-3"></a>
|
||||
Content for chapter one.
|
||||
```
|
||||
|
||||
# Footnotes
|
||||
|
||||
Footnotes allow you to add notes and references without cluttering the body of the document. When you create a footnote, a superscript number with a link appears where you added the footnote reference. Readers can click the link to jump to the content of the footnote at the bottom of the page.
|
||||
|
||||
To create a footnote reference, add a caret and an identifier inside brackets (`[^1]`). Identifiers can be numbers or words, but they can’t contain spaces or tabs. Identifiers only correlate the footnote reference with the footnote itself — in the output, footnotes are numbered sequentially.
|
||||
|
||||
Add the footnote using another caret and number inside brackets with a colon and text (`[^1]: My footnote.`). You don’t have to put footnotes at the end of the document. You can put them anywhere except inside other elements like lists, block quotes, and tables.
|
||||
|
||||
```markdown
|
||||
This is a digital footnote[^1].
|
||||
This is a footnote with "label"[^label]
|
||||
|
||||
[^1]: This is a digital footnote
|
||||
[^label]: This is a footnote with "label"
|
||||
```
|
||||
|
||||
This is a digital footnote[^1].
|
||||
|
||||
This is a footnote with "label"[^label]
|
||||
|
||||
[^1]: This is a digital footnote
|
||||
[^label]: This is a footnote with "label"
|
||||
|
||||
# Images
|
||||
|
||||
Images have a similar syntax to links but include a preceding exclamation point.
|
||||
|
||||
```markdown
|
||||

|
||||
```
|
||||
|
||||

|
||||
|
||||
or:
|
||||
|
||||
```markdown
|
||||

|
||||
```
|
||||
|
||||

|
||||
|
||||
Like links, images also have a footnote style syntax:
|
||||
|
||||
```markdown
|
||||
![Alt text][id]
|
||||
```
|
||||
|
||||
![Alt text][id]
|
||||
|
||||
With a reference later in the document defining the URL location:
|
||||
|
||||
```markdown
|
||||
[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
|
||||
```
|
||||
|
||||
[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
|
143
themes/DeepThought/content/docs/config-options.md
Normal file
|
@ -0,0 +1,143 @@
|
|||
+++
|
||||
title = "Config Options"
|
||||
description = "Few config options provides by DeepThought theme."
|
||||
date = 2020-08-30
|
||||
|
||||
[taxonomies]
|
||||
categories = ["Documentation"]
|
||||
tags = ["theme", "zola"]
|
||||
|
||||
[extra]
|
||||
toc = true
|
||||
comments = false
|
||||
+++
|
||||
|
||||
DeepThought theme provides some config option like option to add favicon to your site, add avatar for profile, setup social links for the profile etc
|
||||
|
||||
<!-- more -->
|
||||
|
||||
# Site Configurations
|
||||
|
||||
## Author Details
|
||||
|
||||
You can configure author details in `[extra.author]` of `config.toml` file.
|
||||
|
||||
```toml
|
||||
[extra.author]
|
||||
name = "<your_name>"
|
||||
avatar = "<path_to_avatar>"
|
||||
```
|
||||
|
||||
## Favicon Setup
|
||||
|
||||
You can configure favicon in `[extra.favicon]` of `config.toml` file. You can use something like [realfavicongenerator](https://realfavicongenerator.net/) to generate your favicon.
|
||||
|
||||
```toml
|
||||
[extra.favicon]
|
||||
favicon_16x16 = "/icons/favicon-16x16.png"
|
||||
favicon_32x32 = "/icons/favicon-32x32.png"
|
||||
apple_touch_icon = "/icons/apple-touch-icon.png"
|
||||
safari_pinned_tab = "/icons/safari-pinned-tab.svg"
|
||||
webmanifest = "/icons/site.webmanifest"
|
||||
```
|
||||
|
||||
## Social Link Setup
|
||||
|
||||
You can configure social links in `[extra.social]` of `config.toml` file.
|
||||
|
||||
```toml
|
||||
[extra.social]
|
||||
email = "<email_id>"
|
||||
facebook = "<facebook_username>"
|
||||
github = "<github_username>"
|
||||
gitlab = "<gitlab_username>"
|
||||
keybase = "<keybase_username>"
|
||||
linkedin = "<linkedin_username>"
|
||||
stackoverflow = "<stackoverflow_userid>"
|
||||
twitter = "<twitter_username>"
|
||||
instagram = "<instagram_usernaem>"
|
||||
behance = "<behance_username>"
|
||||
google_scholar = "<googlescholar_userid>"
|
||||
orcid = "<orcid_userid>"
|
||||
mastodon = "<mastadon_username>"
|
||||
```
|
||||
|
||||
## Google Analytics Setup
|
||||
|
||||
**DeepThought** supports google analytics out of the box. You can configure google in `[extra.analytics]` of `config.toml` file.
|
||||
|
||||
```toml
|
||||
[extra.analytics]
|
||||
google = "<your_gtag>"
|
||||
```
|
||||
|
||||
## Disqus Comments Setup
|
||||
|
||||
**DeepThought** supports disqus commenting out of the box. You can configure disqus in `[extra.commenting]` of `config.toml` file.
|
||||
|
||||
```toml
|
||||
[extra.commenting]
|
||||
disqus = "<your_disqus>"
|
||||
```
|
||||
|
||||
## External Libraries
|
||||
|
||||
### Mermaid, Chart and Galleria
|
||||
|
||||
To gain the features displayed in [Extended Shortcodes](/docs/extended-shortcodes),
|
||||
enable the libraries you want to use in the `[extra]` section of `config.toml`.
|
||||
|
||||
```toml
|
||||
chart.enabled = true
|
||||
mermaid.enabled = true
|
||||
galleria.enabled = true
|
||||
```
|
||||
|
||||
### Mapbox
|
||||
|
||||
**DeepThought** supports Mapbox out of the box to add maps in your posts.
|
||||
You can enable it and set an access token in the `[extra.mapbox]` section of `config.toml`.
|
||||
|
||||
```toml
|
||||
[extra.mapbox]
|
||||
enabled = true
|
||||
access_token = "<your_access_token>"
|
||||
```
|
||||
|
||||
### KaTeX
|
||||
|
||||
This theme contains math formula support using [KaTeX](https://katex.org/).
|
||||
To enable KaTeX in your project, set the following in the `[extra]` section of `config.toml`:
|
||||
```toml
|
||||
[extra]
|
||||
katex.enabled = true
|
||||
katex.auto_render = true # automatic rendering without shortcodes
|
||||
```
|
||||
|
||||
# Section Configurations
|
||||
|
||||
Apart from standard config you can also add a `description` in your `_index.md` file for your sections that appears in listing.
|
||||
|
||||
```toml
|
||||
description = "Blog posts accumulated over the time."
|
||||
```
|
||||
|
||||
# Page Configurations
|
||||
|
||||
## Enable Table Of Content
|
||||
|
||||
In order to enable `toc` for your post change as below code snippet in your page.
|
||||
|
||||
```toml
|
||||
[extra]
|
||||
toc = true
|
||||
```
|
||||
|
||||
## Enable Comments
|
||||
|
||||
In order to enable `comments` for your post change as below code snippet in your page.
|
||||
|
||||
```toml
|
||||
[extra]
|
||||
comments = true
|
||||
```
|
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 40 KiB |
829
themes/DeepThought/content/docs/extended-shortcodes/index.md
Normal file
|
@ -0,0 +1,829 @@
|
|||
+++
|
||||
title = "Extended Shortcodes"
|
||||
description = "Few more shortcodes provided by DeepThought."
|
||||
date = 2020-08-29
|
||||
|
||||
[taxonomies]
|
||||
categories = ["Documentation"]
|
||||
tags = ["theme", "zola"]
|
||||
|
||||
[extra]
|
||||
toc = true
|
||||
comments = true
|
||||
+++
|
||||
|
||||
DeepThought theme provides multiple shortcodes on top of built-in ones in Zola.
|
||||
Please, have a look at the [Config Options](/docs/config-options#external-libraries)
|
||||
that explain how to enable them.
|
||||
|
||||
<!-- more -->
|
||||
|
||||
# Mermaid
|
||||
|
||||
[Mermaid](https://mermaidjs.github.io/) is a library helping you to generate diagram and flowcharts from text, in a similar manner as Markdown.
|
||||
|
||||
## Flowchart
|
||||
|
||||
To put a flowchart in your post use below snippet
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* mermaid() */%}
|
||||
graph TD;
|
||||
A-->B;
|
||||
A-->C;
|
||||
B-->D;
|
||||
C-->D;
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
{% mermaid() %}
|
||||
graph TD;
|
||||
A-->B;
|
||||
A-->C;
|
||||
B-->D;
|
||||
C-->D;
|
||||
{% end %}
|
||||
|
||||
## Sequence Diagram
|
||||
|
||||
To put a sequence diagram in your post use below snippet
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* mermaid() */%}
|
||||
sequenceDiagram
|
||||
participant Alice
|
||||
participant Bob
|
||||
Alice->>John: Hello John, how are you?
|
||||
loop Healthcheck
|
||||
John->>John: Fight against hypochondria
|
||||
end
|
||||
Note right of John: Rational thoughts <br/>prevail!
|
||||
John-->>Alice: Great!
|
||||
John->>Bob: How about you?
|
||||
Bob-->>John: Jolly good!
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
{% mermaid() %}
|
||||
sequenceDiagram
|
||||
participant Alice
|
||||
participant Bob
|
||||
Alice->>John: Hello John, how are you?
|
||||
loop Healthcheck
|
||||
John->>John: Fight against hypochondria
|
||||
end
|
||||
Note right of John: Rational thoughts <br/>prevail!
|
||||
John-->>Alice: Great!
|
||||
John->>Bob: How about you?
|
||||
Bob-->>John: Jolly good!
|
||||
{% end %}
|
||||
|
||||
## Gantt diagram
|
||||
|
||||
To put a gantt diagram in your post use below snippet
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* mermaid() */%}
|
||||
gantt
|
||||
dateFormat YYYY-MM-DD
|
||||
title Adding GANTT diagram to mermaid
|
||||
excludes weekdays 2014-01-10
|
||||
|
||||
section A section
|
||||
Completed task :done, des1, 2014-01-06,2014-01-08
|
||||
Active task :active, des2, 2014-01-09, 3d
|
||||
Future task : des3, after des2, 5d
|
||||
Future task2 : des4, after des3, 5d
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
|
||||
{% mermaid() %}
|
||||
gantt
|
||||
dateFormat YYYY-MM-DD
|
||||
title Adding GANTT diagram to mermaid
|
||||
excludes weekdays 2014-01-10
|
||||
|
||||
section A section
|
||||
Completed task :done, des1, 2014-01-06,2014-01-08
|
||||
Active task :active, des2, 2014-01-09, 3d
|
||||
Future task : des3, after des2, 5d
|
||||
Future task2 : des4, after des3, 5d
|
||||
{% end %}
|
||||
|
||||
## Class diagram - experimental
|
||||
|
||||
To put a class diagram in your post use below snippet
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* mermaid() */%}
|
||||
classDiagram
|
||||
Class01 <|-- AveryLongClass : Cool
|
||||
Class03 _-- Class04
|
||||
Class05 o-- Class06
|
||||
Class07 .. Class08
|
||||
Class09 --> C2 : Where am i?
|
||||
Class09 --_ C3
|
||||
Class09 --|> Class07
|
||||
Class07 : equals()
|
||||
Class07 : Object[] elementData
|
||||
Class01 : size()
|
||||
Class01 : int chimp
|
||||
Class01 : int gorilla
|
||||
Class08 <--> C2: Cool label
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
{% mermaid() %}
|
||||
classDiagram
|
||||
Class01 <|-- AveryLongClass : Cool
|
||||
Class03 _-- Class04
|
||||
Class05 o-- Class06
|
||||
Class07 .. Class08
|
||||
Class09 --> C2 : Where am i?
|
||||
Class09 --_ C3
|
||||
Class09 --|> Class07
|
||||
Class07 : equals()
|
||||
Class07 : Object[] elementData
|
||||
Class01 : size()
|
||||
Class01 : int chimp
|
||||
Class01 : int gorilla
|
||||
Class08 <--> C2: Cool label
|
||||
{% end %}
|
||||
|
||||
## Entity Relationship Diagram - experimental
|
||||
|
||||
To put an ER diagram in your post use below snippet
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* mermaid() */%}
|
||||
erDiagram
|
||||
CUSTOMER ||--o{ ORDER : places
|
||||
ORDER ||--|{ LINE-ITEM : contains
|
||||
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
{% mermaid() %}
|
||||
erDiagram
|
||||
CUSTOMER ||--o{ ORDER : places
|
||||
ORDER ||--|{ LINE-ITEM : contains
|
||||
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
|
||||
{% end %}
|
||||
|
||||
## User Journey Diagram
|
||||
|
||||
To put an user journey diagram in your post use below snippet
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* mermaid() */%}
|
||||
journey
|
||||
title My working day
|
||||
section Go to work
|
||||
Make tea: 5: Me
|
||||
Go upstairs: 3: Me
|
||||
Do work: 1: Me, Cat
|
||||
section Go home
|
||||
Go downstairs: 5: Me
|
||||
Sit down: 5: Me
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
{% mermaid () %}
|
||||
journey
|
||||
title My working day
|
||||
section Go to work
|
||||
Make tea: 5: Me
|
||||
Go upstairs: 3: Me
|
||||
Do work: 1: Me, Cat
|
||||
section Go home
|
||||
Go downstairs: 5: Me
|
||||
Sit down: 5: Me
|
||||
{% end %}
|
||||
|
||||
# Mapbox
|
||||
|
||||
[Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js) is a JavaScript library that uses WebGL to render interactive maps from vector tiles and Mapbox styles.
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* mapbox(zoom=6) */%}
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"features": [
|
||||
{
|
||||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [78.016667, 27.183333]
|
||||
},
|
||||
"properties": {
|
||||
"title": "Agra",
|
||||
"description": "Agra is a major tourist destination because of its many Mughal-era buildings, most notably the Taj Mahal, Agra Fort and Fatehpur Sikri, all of which are UNESCO World Heritage Sites."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [77.2, 28.6]
|
||||
},
|
||||
"properties": {
|
||||
"title": "New Delhi",
|
||||
"description": "New Delhi is the capital of India and an administrative district of NCT Delhi."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
{% mapbox(zoom=6) %}
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"features": [
|
||||
{
|
||||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [78.016667, 27.183333]
|
||||
},
|
||||
"properties": {
|
||||
"title": "Agra",
|
||||
"description": "Agra is a major tourist destination because of its many Mughal-era buildings, most notably the Taj Mahal, Agra Fort and Fatehpur Sikri, all of which are UNESCO World Heritage Sites."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [77.2, 28.6]
|
||||
},
|
||||
"properties": {
|
||||
"title": "New Delhi",
|
||||
"description": "New Delhi is the capital of India and an administrative district of NCT Delhi."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
{% end %}
|
||||
|
||||
# Chart
|
||||
|
||||
[Chart.xkcd](https://timqian.com/chart.xkcd/) is a chart library plots “sketchy”, “cartoony” or “hand-drawn” styled charts.
|
||||
|
||||
## Line chart
|
||||
|
||||
Line chart displays series of data points in the form of lines. It can be used to show trend data, or comparison of different data sets.
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* chart() */%}
|
||||
{
|
||||
"type": "Line",
|
||||
"title": "Monthly income of an indie developer",
|
||||
"xLabel": "Month",
|
||||
"yLabel": "$ Dollars",
|
||||
"data": {
|
||||
"labels": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
|
||||
"datasets": [
|
||||
{
|
||||
"label": "Plan",
|
||||
"data": [30, 70, 200, 300, 500, 800, 1500, 2900, 5000, 8000]
|
||||
},
|
||||
{
|
||||
"label": "Reality",
|
||||
"data": [0, 1, 30, 70, 80, 100, 50, 80, 40, 150]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
|
||||
{% chart() %}
|
||||
{
|
||||
"type": "Line",
|
||||
"title": "Monthly income of an indie developer",
|
||||
"xLabel": "Month",
|
||||
"yLabel": "$ Dollars",
|
||||
"data": {
|
||||
"labels": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
|
||||
"datasets": [
|
||||
{
|
||||
"label": "Plan",
|
||||
"data": [30, 70, 200, 300, 500, 800, 1500, 2900, 5000, 8000]
|
||||
},
|
||||
{
|
||||
"label": "Reality",
|
||||
"data": [0, 1, 30, 70, 80, 100, 50, 80, 40, 150]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
{% end %}
|
||||
|
||||
|
||||
## XY chart
|
||||
|
||||
XY chart is used to plot points by specifying their XY coordinates.
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* chart() */%}
|
||||
{
|
||||
"type": "XY",
|
||||
"title": "Pokemon farms",
|
||||
"xLabel": "Coordinate",
|
||||
"yLabel": "Count",
|
||||
"data": {
|
||||
"datasets": [
|
||||
{
|
||||
"label": "Pikachu",
|
||||
"data": [
|
||||
{
|
||||
"x": 3,
|
||||
"y": 10
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 122
|
||||
},
|
||||
{
|
||||
"x": 10,
|
||||
"y": 100
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Squirtle",
|
||||
"data": [
|
||||
{
|
||||
"x": 1,
|
||||
"y": 1
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Charizard",
|
||||
"data": [
|
||||
{
|
||||
"x": 2,
|
||||
"y": 5
|
||||
},
|
||||
{
|
||||
"x": 6,
|
||||
"y": 8
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"xTickCount": 5,
|
||||
"yTickCount": 5,
|
||||
"showLine": false,
|
||||
"dotSize": 1
|
||||
}
|
||||
}
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
|
||||
{% chart() %}
|
||||
{
|
||||
"type": "XY",
|
||||
"title": "Pokemon farms",
|
||||
"xLabel": "Coordinate",
|
||||
"yLabel": "Count",
|
||||
"data": {
|
||||
"datasets": [
|
||||
{
|
||||
"label": "Pikachu",
|
||||
"data": [
|
||||
{
|
||||
"x": 3,
|
||||
"y": 10
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 122
|
||||
},
|
||||
{
|
||||
"x": 10,
|
||||
"y": 100
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Squirtle",
|
||||
"data": [
|
||||
{
|
||||
"x": 1,
|
||||
"y": 1
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Charizard",
|
||||
"data": [
|
||||
{
|
||||
"x": 2,
|
||||
"y": 5
|
||||
},
|
||||
{
|
||||
"x": 6,
|
||||
"y": 8
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"xTickCount": 5,
|
||||
"yTickCount": 5,
|
||||
"showLine": false,
|
||||
"dotSize": 1
|
||||
}
|
||||
}
|
||||
{% end %}
|
||||
|
||||
|
||||
|
||||
## Bar chart
|
||||
|
||||
A bar chart provides a way of showing data values represented as vertical bars
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* chart() */%}
|
||||
{
|
||||
"type": "Bar",
|
||||
"title": "How to feel powerful ?",
|
||||
"xLabel": "Platforms",
|
||||
"yLabel": "Count",
|
||||
"data": {
|
||||
"labels": ["Earn Money", "Get Famous", "Use terminal in front of non-programmers"],
|
||||
"datasets": [
|
||||
{
|
||||
"data": [30, 45, 100]
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"yTickCount": 2,
|
||||
"dataColors": ["Red", "Green", "Blue"]
|
||||
}
|
||||
}
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
|
||||
{% chart() %}
|
||||
{
|
||||
"type": "Bar",
|
||||
"title": "How to feel powerful ?",
|
||||
"xLabel": "Platforms",
|
||||
"yLabel": "Count",
|
||||
"data": {
|
||||
"labels": ["Earn Money", "Get Famous", "Use terminal in front of non-programmers"],
|
||||
"datasets": [
|
||||
{
|
||||
"data": [30, 45, 100]
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"yTickCount": 2,
|
||||
"dataColors": ["Red", "Green", "Blue"]
|
||||
}
|
||||
}
|
||||
{% end %}
|
||||
|
||||
|
||||
|
||||
## Stacked bar chart
|
||||
|
||||
A stacked bar chart provides a way of showing data values represented as vertical bars
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* chart() */%}
|
||||
{
|
||||
"type": "StackedBar",
|
||||
"title": "Issues and PR Submissions",
|
||||
"xLabel": "Month",
|
||||
"yLabel": "Count",
|
||||
"data": {
|
||||
"labels": ["Jan", "Feb", "Mar", "April", "May"],
|
||||
"datasets": [
|
||||
{
|
||||
"label": "Issues",
|
||||
"data": [12, 19, 11, 29, 17]
|
||||
},
|
||||
{
|
||||
"label": "PRs",
|
||||
"data": [3, 5, 2, 4, 1]
|
||||
},
|
||||
{
|
||||
"label": "Merges",
|
||||
"data": [2, 3, 0, 1, 1]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
|
||||
{% chart() %}
|
||||
{
|
||||
"type": "StackedBar",
|
||||
"title": "Issues and PR Submissions",
|
||||
"xLabel": "Month",
|
||||
"yLabel": "Count",
|
||||
"data": {
|
||||
"labels": ["Jan", "Feb", "Mar", "April", "May"],
|
||||
"datasets": [
|
||||
{
|
||||
"label": "Issues",
|
||||
"data": [12, 19, 11, 29, 17]
|
||||
},
|
||||
{
|
||||
"label": "PRs",
|
||||
"data": [3, 5, 2, 4, 1]
|
||||
},
|
||||
{
|
||||
"label": "Merges",
|
||||
"data": [2, 3, 0, 1, 1]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
{% end %}
|
||||
|
||||
|
||||
|
||||
## Pie/Doughnut chart
|
||||
|
||||
A pie/doughnut chart provides a way of illustrating numerical proportion.
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* chart() */%}
|
||||
{
|
||||
"type": "Pie",
|
||||
"title": "What Tim is made of",
|
||||
"data": {
|
||||
"labels": ["a", "b", "e", "f", "g"],
|
||||
"datasets": [
|
||||
{
|
||||
"data": [500, 200, 80, 90, 100]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
|
||||
{% chart() %}
|
||||
{
|
||||
"type": "Pie",
|
||||
"title": "What Tim is made of",
|
||||
"data": {
|
||||
"labels": ["a", "b", "e", "f", "g"],
|
||||
"datasets": [
|
||||
{
|
||||
"data": [500, 200, 80, 90, 100]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
{% end %}
|
||||
|
||||
## Radar chart
|
||||
|
||||
A radar chart provides a way of displaying multivariate data in the form of a two-dimensional chart of three or more quantitative variables represented on axes starting from the same point.
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* chart() */%}
|
||||
{
|
||||
"type": "Radar",
|
||||
"title": "Letters in random words",
|
||||
"data": {
|
||||
"labels": ["c", "h", "a", "r", "t"],
|
||||
"datasets": [
|
||||
{
|
||||
"label": "ccharrrt",
|
||||
"data": [2, 1, 1, 3, 1]
|
||||
},
|
||||
{
|
||||
"label": "chhaart",
|
||||
"data": [1, 2, 2, 1, 1]
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"showLegend": true,
|
||||
"showLabels": true
|
||||
}
|
||||
}
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
|
||||
{% chart() %}
|
||||
{
|
||||
"type": "Radar",
|
||||
"title": "Letters in random words",
|
||||
"data": {
|
||||
"labels": ["c", "h", "a", "r", "t"],
|
||||
"datasets": [
|
||||
{
|
||||
"label": "ccharrrt",
|
||||
"data": [2, 1, 1, 3, 1]
|
||||
},
|
||||
{
|
||||
"label": "chhaart",
|
||||
"data": [1, 2, 2, 1, 1]
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"showLegend": true,
|
||||
"showLabels": true
|
||||
}
|
||||
}
|
||||
{% end %}
|
||||
|
||||
# Galleria
|
||||
|
||||
[Galleria](https://galleriajs.github.io/) is a framework that simplifies the process of creating beautiful image galleries for the web and mobile devices.
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* galleria() */%}
|
||||
{
|
||||
"images": [
|
||||
{
|
||||
"src": "alexandre-dinaut-GHxr3O6yZ1c-unsplash.jpg",
|
||||
"title": "Clouds & Mountains",
|
||||
"description": "Just hanging out with each other."
|
||||
},
|
||||
{
|
||||
"src": "chandler-cruttenden-YYemke7BfuE-unsplash.jpg",
|
||||
"title": "Crop",
|
||||
"description": "Waiting for the harvest."
|
||||
},
|
||||
{
|
||||
"src": "jung-ho-park-7aZtpsyaWVM-unsplash.jpg",
|
||||
"title": "The Fog",
|
||||
"description": "Engulfing everything."
|
||||
},
|
||||
{
|
||||
"src": "kitera-dent-BIj4LObC6es-unsplash.jpg",
|
||||
"title": "Just Plants",
|
||||
"description": "Backdrop of ocean."
|
||||
},
|
||||
{
|
||||
"src": "koes-nadi-XkUFF1nnbA8-unsplash.jpg",
|
||||
"title": "Whoa",
|
||||
"description": "Something to look at."
|
||||
},
|
||||
{
|
||||
"src": "lazyartistgallery-HHaIRbgzcGw-unsplash.jpg",
|
||||
"title": "Let's Chill",
|
||||
"description": "Three birds just chilling !!"
|
||||
},
|
||||
{
|
||||
"src": "saira-nUxdL_19OQw-unsplash.jpg",
|
||||
"title": "Canyon",
|
||||
"description": "Might of nature."
|
||||
},
|
||||
{
|
||||
"src": "waldemar-brandt-2hAEHCt25eM-unsplash.jpg",
|
||||
"title": "Evening",
|
||||
"description": "Time to wind down."
|
||||
}
|
||||
]
|
||||
}
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
|
||||
{% galleria() %}
|
||||
{
|
||||
"images": [
|
||||
{
|
||||
"src": "alexandre-dinaut-GHxr3O6yZ1c-unsplash.jpg",
|
||||
"title": "Clouds & Mountains",
|
||||
"description": "Just hanging out with each other."
|
||||
},
|
||||
{
|
||||
"src": "chandler-cruttenden-YYemke7BfuE-unsplash.jpg",
|
||||
"title": "Crop",
|
||||
"description": "Waiting for the harvest."
|
||||
},
|
||||
{
|
||||
"src": "jung-ho-park-7aZtpsyaWVM-unsplash.jpg",
|
||||
"title": "The Fog",
|
||||
"description": "Engulfing everything."
|
||||
},
|
||||
{
|
||||
"src": "kitera-dent-BIj4LObC6es-unsplash.jpg",
|
||||
"title": "Just Plants",
|
||||
"description": "Backdrop of ocean."
|
||||
},
|
||||
{
|
||||
"src": "koes-nadi-XkUFF1nnbA8-unsplash.jpg",
|
||||
"title": "Whoa",
|
||||
"description": "Something to look at."
|
||||
},
|
||||
{
|
||||
"src": "lazyartistgallery-HHaIRbgzcGw-unsplash.jpg",
|
||||
"title": "Let's Chill",
|
||||
"description": "Three birds just chilling !!"
|
||||
},
|
||||
{
|
||||
"src": "saira-nUxdL_19OQw-unsplash.jpg",
|
||||
"title": "Canyon",
|
||||
"description": "Might of nature."
|
||||
},
|
||||
{
|
||||
"src": "waldemar-brandt-2hAEHCt25eM-unsplash.jpg",
|
||||
"title": "Evening",
|
||||
"description": "Time to wind down."
|
||||
}
|
||||
]
|
||||
}
|
||||
{% end %}
|
||||
|
||||
# KaTeX
|
||||
[KaTeX](https://katex.org/) is a math typesetting library based on TeX.
|
||||
|
||||
**Code**
|
||||
|
||||
```
|
||||
{%/* katex(block=true) */%}
|
||||
\KaTeX
|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
**Output**
|
||||
|
||||
{% katex(block=true) %}
|
||||
\KaTeX
|
||||
{% end %}
|
||||
|
||||
**Photo By:**
|
||||
- [ALEXANDRE DINAUT](https://unsplash.com/@alexdinaut?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/@alexdinaut?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
|
||||
- [Chandler Cruttenden](https://unsplash.com/@chanphoto?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/@chanphoto?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
|
||||
- [Jung Ho Park](https://unsplash.com/@mylovefromjesus?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/@mylovefromjesus?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
|
||||
- [Kitera Dent](https://unsplash.com/@kitera?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/@kitera?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
|
||||
- [Koes nadi](https://unsplash.com/@bangkoes?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/@bangkoes?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
|
||||
- [Lazyartistgallery](https://unsplash.com/@rahulp9800?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/@rahulp9800?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
|
||||
- [Saira](https://unsplash.com/@sairaa?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/@sairaa?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
|
||||
- [Waldemar Brandt](https://unsplash.com/@waldemarbrandt67w?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/@waldemarbrandt67w?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
|
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 50 KiB |
43
themes/DeepThought/content/docs/theme-extension.md
Normal file
|
@ -0,0 +1,43 @@
|
|||
+++
|
||||
title = "Theme extension"
|
||||
description = "Extending a theme"
|
||||
date = 2022-02-07
|
||||
|
||||
[taxonomies]
|
||||
categories = ["Documentation"]
|
||||
tags = ["theme", "zola"]
|
||||
|
||||
[extra]
|
||||
toc = true
|
||||
comments = false
|
||||
+++
|
||||
|
||||
DeepThought theme can be extended with [usual Zola extension mechanisms](https://www.getzola.org/documentation/themes/extending-a-theme/).
|
||||
|
||||
<!-- more -->
|
||||
|
||||
# Replacing a template
|
||||
|
||||
As any theme, all DeepThought templates [can be replaced to override a whole template](https://www.getzola.org/documentation/themes/extending-a-theme/#replacing-a-template).
|
||||
|
||||
# Blocks to extend
|
||||
|
||||
If you don't want to replace a whole DeepThought template, but override parts of it, [you can extend the template and redefine some specific blocks](https://www.getzola.org/documentation/themes/extending-a-theme/#overriding-a-block).
|
||||
|
||||
Here is a WIP list of blocks in DeepThought templates to override:
|
||||
|
||||
| Template location[^1] | Block | Description |
|
||||
| ------ | ----------- | -- |
|
||||
| `base.html` | `user_custom_stylesheet` | Custom stylesheet (css or saas) to fine-tune DeepThought styling |
|
||||
| `base.html` | `title` | Customize default page's titles |
|
||||
| `base.html` | `analytics` | Provide your own analytics script. Google Analytics by default |
|
||||
| `base.html` | `header` | Customize page's header |
|
||||
| `base.html` | `content` | Customize page's content |
|
||||
| `base.html` | `search` | Provide your own search box partial template |
|
||||
| `base.html` | `pagination` | Override default pagination |
|
||||
| `base.html` | `comment` | Provide your own pagination partial template |
|
||||
| `base.html` | `other_lang_search_js` | Provide custom search behavior, eg. [to use languages others than English](https://github.com/RatanShreshtha/DeepThought/#elasticlunr-search-in-other-language) |
|
||||
| `base.html` | `user_custom_js` | Provide any custom JS scripts at the end of the body of the page |
|
||||
|
||||
---
|
||||
[^1]: Relative to the `templates` directory
|
126
themes/DeepThought/content/docs/welcome-to-deep-thought.md
Normal file
|
@ -0,0 +1,126 @@
|
|||
+++
|
||||
title = "Welcome to DeepThought"
|
||||
description = "A simple blog theme focused on writing powered by Bulma and Zola"
|
||||
date = 2020-08-31
|
||||
[taxonomies]
|
||||
categories = ["Documentation"]
|
||||
tags = ["theme", "zola"]
|
||||
|
||||
[extra]
|
||||
comments = false
|
||||
+++
|
||||
|
||||
This is a small example post of stuff you can do with the `DeepThought` theme.
|
||||
We'll try to represent all possible markdown and shortcode combinations here
|
||||
so you can develop easily.
|
||||
|
||||
<!-- more -->
|
||||
|
||||
## Here's some lists
|
||||
|
||||
- let's list some stuff
|
||||
- unordered, of course.
|
||||
|
||||
1. We can also order lists
|
||||
1. And nesting here works too
|
||||
2. We can do whatever we want!
|
||||
2. And drop back to the original indentation.
|
||||
|
||||
# Headers
|
||||
|
||||
## Smaller
|
||||
|
||||
### Smaller still!
|
||||
|
||||
#### Can't really get much smaller than this
|
||||
|
||||
##### Even if you try
|
||||
|
||||
###### It won't do anything
|
||||
|
||||
We can also *italicize* stuff, or make it **bold**.
|
||||
|
||||
# Code
|
||||
|
||||
Want some Rust code? We got Rust code.
|
||||
|
||||
```rust
|
||||
|
||||
// `vst` uses macros, so we'll need to specify that we're using them!
|
||||
#[macro_use]
|
||||
extern crate vst;
|
||||
|
||||
// We're implementing a trait `Plugin` that does all the VST-y stuff for us.
|
||||
impl Plugin for Whisper {
|
||||
fn get_info(&self) -> Info {
|
||||
Info {
|
||||
name: "Whisper".to_string()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
We can also add a filename to our code blocks which is super useful when
|
||||
providing tutorials, etc. Here's some HTML we can insert into our
|
||||
markdown file right before the code block. (Meta, right?)
|
||||
|
||||
<div class='filename'>
|
||||
<div>www/index.html</div>
|
||||
</div>
|
||||
|
||||
```html
|
||||
<div class='filename'>
|
||||
<div>src/lib.rs</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
If we want, we can also `specify inline code` which is useful for `the small stuff`.
|
||||
|
||||
## Horizontal rules
|
||||
|
||||
We have them!
|
||||
|
||||
---
|
||||
|
||||
## Youtube
|
||||
|
||||
with `youtube(id="the_id_here")`
|
||||
{{ youtube(id="dNRDvLACg5Q") }}
|
||||
|
||||
## Vimeo
|
||||
with `vimeo(id="id_here")`
|
||||
{{ vimeo(id="115189988") }}
|
||||
|
||||
## Links
|
||||
|
||||
[Of Course](https://deepthought-theme.netlify.app/)
|
||||
|
||||
## Tables
|
||||
You can make tables in markdown, too! Who would have thought. Are these styled yet?
|
||||
|
||||
First Header | Second Header
|
||||
------------- | -------------
|
||||
Content Cell | Content Cell
|
||||
Content Cell | Content Cell
|
||||
|
||||
## Foldable Text
|
||||
|
||||
<details>
|
||||
<summary>Title 1</summary>
|
||||
<p>Content 1 Content 1 Content 1 Content 1 Content 1</p>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Title 2</summary>
|
||||
<p>Content 2 Content 2 Content 2 Content 2 Content 2</p>
|
||||
</details>
|
||||
|
||||
We can do that like this:
|
||||
|
||||
```html
|
||||
<details>
|
||||
<summary>Title 1</summary>
|
||||
<p>Content 1 Content 1 Content 1 Content 1 Content 1</p>
|
||||
</details>
|
||||
```
|