2020-09-02 17:34:02 +00:00
+++
title = "DeepThought"
description = "A simple blog theme focused on writing powered by Bulma and Zola."
template = "theme.html"
2024-02-04 21:39:07 +00:00
date = 2024-01-25T10:41:35+02:00
2020-09-02 17:34:02 +00:00
[extra]
2024-02-04 21:39:07 +00:00
created = 2024-01-25T10:41:35+02:00
updated = 2024-01-25T10:41:35+02:00
2020-09-02 17:34:02 +00:00
repository = "https://github.com/RatanShreshtha/DeepThought.git"
homepage = "https://github.com/RatanShreshtha/DeepThought"
2022-06-06 08:46:29 +00:00
minimum_version = "0.14.1"
2020-09-02 17:34:02 +00:00
license = "MIT"
2021-02-03 12:13:49 +00:00
demo = "https://deepthought-theme.netlify.app/"
2020-09-02 17:34:02 +00:00
[extra.author]
name = "Ratan Kulshreshtha"
homepage = "https://ratanshreshtha.dev"
+++
2023-04-30 20:03:30 +00:00
< div align = "center" >
2020-09-02 17:34:02 +00:00
2023-04-30 20:03:30 +00:00
< img src = "static/images/avatar.png" alt = "logo" width = "200" height = "auto" / >
< h1 > DeepThought< / h1 >
< p >
2021-09-12 19:44:45 +00:00
A simple blog theme focused on writing powered by Bulma and Zola.
< / p >
2023-04-30 20:03:30 +00:00
<!-- Badges -->
< p >
< a href = "https://github.com/RatanShreshtha/DeepThought/graphs/contributors" >
< img src = "https://img.shields.io/github/contributors/RatanShreshtha/DeepThought" alt = "contributors" / >
< / a >
< a href = "" >
< img src = "https://img.shields.io/github/last-commit/RatanShreshtha/DeepThought" alt = "last update" / >
< / a >
< a href = "https://github.com/RatanShreshtha/DeepThought/network/members" >
< img src = "https://img.shields.io/github/forks/RatanShreshtha/DeepThought" alt = "forks" / >
< / a >
< a href = "https://github.com/RatanShreshtha/DeepThought/stargazers" >
< img src = "https://img.shields.io/github/stars/RatanShreshtha/DeepThought" alt = "stars" / >
< / a >
< a href = "https://github.com/RatanShreshtha/DeepThought/issues/" >
< img src = "https://img.shields.io/github/issues/RatanShreshtha/DeepThought" alt = "open issues" / >
< / a >
< a href = "https://github.com/RatanShreshtha/DeepThought/blob/main/LICENSE" >
< img src = "https://img.shields.io/github/license/RatanShreshtha/DeepThought.svg" alt = "license" / >
< / a >
2021-09-12 19:44:45 +00:00
< / p >
2023-04-30 20:03:30 +00:00
< h4 >
< a href = "https://github.com/RatanShreshtha/DeepThought/" > View Demo< / a >
< span > · < / span >
< a href = "https://github.com/RatanShreshtha/DeepThought" > Documentation< / a >
< span > · < / span >
< a href = "https://github.com/RatanShreshtha/DeepThought/issues/" > Report Bug< / a >
< span > · < / span >
< a href = "https://github.com/RatanShreshtha/DeepThought/issues/" > Request Feature< / a >
< / h4 >
< / div >
< br / >
<!-- Table of Contents -->
# :notebook_with_decorative_cover: Table of Contents
- :notebook_with_decorative_cover: Table of Contents
- :star2: About the Project
- :camera: Screenshots
- :space_invader: Tech Stack
- :dart: Features
- :toolbox: Getting Started
- :bangbang: Prerequisites
- :gear: Installation
- :running: Run Locally
- :triangular_flag_on_post: Deployment
- :eyes: Usage
- Multilingual Navbar
- KaTeX math formula support
- Automatic rendering without short codes
- Elasticlunr search in other language
- :wave: Contributing
- :warning: License
- :handshake: Contact
- :gem: Acknowledgements
<!-- About the Project -->
## :star2: About the Project
<!-- Screenshots -->
### :camera: Screenshots
< div align = "center" >
< img src = "screenshot.png" alt = "screenshot" / >
< / div >
<!-- TechStack -->
### :space_invader: Tech Stack
- [Zola ](https://www.getzola.org/ ) - Your one-stop static site engine
- [Bulma ](https://bulma.io/ ) - The modern CSS framework that just works.
<!-- Features -->
### :dart: Features
2022-06-06 08:46:29 +00:00
2021-09-12 19:44:45 +00:00
- [x] Dark Mode
- [x] Pagination
- [x] Search
- [x] Charts
- [x] Maps
- [x] Diagrams
- [x] Galleria
- [x] Analytics
- [x] Comments
- [x] Categories
- [x] Social Links
- [x] Multilingual Navbar
- [x] Katex
2023-04-30 20:03:30 +00:00
<!-- Getting Started -->
## :toolbox: Getting Started
2021-09-12 19:44:45 +00:00
2023-04-30 20:03:30 +00:00
<!-- Prerequisites -->
### :bangbang: Prerequisites
2021-09-12 19:44:45 +00:00
You need static site generator (SSG) [Zola ](https://www.getzola.org/documentation/getting-started/installation/ ) installed in your machine to use this theme follow their guide on [getting started ](https://www.getzola.org/documentation/getting-started/overview/ ).
2023-04-30 20:03:30 +00:00
<!-- Installation -->
### :gear: Installation
2021-09-12 19:44:45 +00:00
Follow zola's guide on [installing a theme ](https://www.getzola.org/documentation/themes/installing-and-using-themes/ ).
2020-09-02 17:34:02 +00:00
Make sure to add `theme = "DeepThought"` to your `config.toml`
2021-02-18 21:33:11 +00:00
**Check zola version (only 0.9.0+)**
2022-06-06 08:46:29 +00:00
Just to double-check to make sure you have the right version. It is not supported to use this theme with a version under 0.14.1.
2021-09-12 19:44:45 +00:00
2023-04-30 20:03:30 +00:00
<!-- Run Locally -->
### :running: Run Locally
2022-06-06 08:46:29 +00:00
2021-09-12 19:44:45 +00:00
Go into your sites directory and type `zola serve` . You should see your new site at `localhost:1111` .
2020-09-02 17:34:02 +00:00
2022-06-06 08:46:29 +00:00
**NOTE**: you must provide the theme options variables in `config.toml` to serve a functioning site
2021-02-18 21:33:11 +00:00
2023-04-30 20:03:30 +00:00
<!-- Deployment -->
### :triangular_flag_on_post: Deployment
2022-06-06 08:46:29 +00:00
2020-09-02 17:34:02 +00:00
[Zola ](https://www.getzola.org ) already has great documentation for deploying to [Netlify ](https://www.getzola.org/documentation/deployment/netlify/ ) or [Github Pages ](https://www.getzola.org/documentation/deployment/github-pages/ ). I won't bore you with a regurgitated explanation.
2023-04-30 20:03:30 +00:00
<!-- Usage -->
## :eyes: Usage
Following options are available with the `DeepThought` theme
2022-06-06 08:46:29 +00:00
2020-09-02 17:34:02 +00:00
```toml
2022-06-06 08:46:29 +00:00
# Enable external libraries
[extra]
katex.enabled = true
katex.auto_render = true
chart.enabled = true
mermaid.enabled = true
galleria.enabled = true
2021-02-18 21:33:11 +00:00
navbar_items = [
2021-09-12 19:44:45 +00:00
{ code = "en", nav_items = [
{ url = "$BASE_URL/", name = "Home" },
{ url = "$BASE_URL/posts", name = "Posts" },
{ url = "$BASE_URL/docs", name = "Docs" },
{ url = "$BASE_URL/tags", name = "Tags" },
{ url = "$BASE_URL/categories", name = "Categories" },
]},
2021-02-18 21:33:11 +00:00
]
# Add links to favicon, you can use https://realfavicongenerator.net/ to generate favicon for your site
2020-09-02 17:34:02 +00:00
[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"
# Author details
[extra.author]
name = "DeepThought"
avatar = "/images/avatar.png"
2021-02-18 21:33:11 +00:00
# Social links
2020-09-02 17:34:02 +00:00
[extra.social]
2021-02-18 21:33:11 +00:00
email = "< email_id > "
2020-09-02 17:34:02 +00:00
facebook = "< facebook_username > "
github = "< github_username > "
2021-02-18 21:33:11 +00:00
gitlab = "< gitlab_username > "
2020-09-02 17:34:02 +00:00
keybase = "< keybase_username > "
linkedin = "< linkedin_username > "
stackoverflow = "< stackoverflow_userid > "
twitter = "< twitter_username > "
2022-06-06 08:46:29 +00:00
instagram = "< instagram_username > "
2021-09-12 19:44:45 +00:00
behance = "< behance_username > "
2022-06-06 08:46:29 +00:00
google_scholar = "< googlescholar_userid > "
orcid = "< orcid_userid > "
2023-04-30 20:03:30 +00:00
mastodon_username = "< mastadon_username > "
mastodon_server = "< mastodon_server > " (if not set, defaults to mastodon.social)
2021-09-12 19:44:45 +00:00
2020-09-02 17:34:02 +00:00
# To add google analytics
[extra.analytics]
google = "< your_gtag > "
2021-09-12 19:44:45 +00:00
# To add disqus comments
2020-09-02 17:34:02 +00:00
[extra.commenting]
2021-09-12 19:44:45 +00:00
disqus = "< your_disqus_shortname > "
2020-09-02 17:34:02 +00:00
# To enable mapbox maps
[extra.mapbox]
2022-06-06 08:46:29 +00:00
enabled = true
2020-09-02 17:34:02 +00:00
access_token = "< your_access_token > "
```
2021-09-12 19:44:45 +00:00
#### Multilingual Navbar
If you want to have a multilingual navbar on your blog, you must add your new code language in the [languages ](https://www.getzola.org/documentation/content/multilingual/#configuration ) array in the `config.toml` file.
**NOTE**: Don't add you default language to this array
```toml
languages = [
2022-06-06 08:46:29 +00:00
{code = "fr"},
2021-09-12 19:44:45 +00:00
{code = "es"},
]
```
And then create and array of nav item for each language:
**NOTE**: Include your default language in this array
```toml
navbar_items = [
{ code = "en", nav_items = [
{ url = "$BASE_URL/", name = "Home" },
{ url = "$BASE_URL/posts", name = "Posts" },
{ url = "$BASE_URL/docs", name = "Docs" },
{ url = "$BASE_URL/tags", name = "Tags" },
{ url = "$BASE_URL/categories", name = "Categories" },
]},
{ code = "fr", nav_items = [
{ url = "$BASE_URL/", name = "Connexion" },
]},
{ code = "es", nav_items = [
{ url = "$BASE_URL/", name = "Publicationes" },
{ url = "$BASE_URL/", name = "Registrar" },
]}
]
```
en:
![DeepThought ](./screenshot_navbar_en.png )
fr:
![DeepThought ](./screenshot_navbar_fr.png )
2022-06-06 08:46:29 +00:00
es:
2021-09-12 19:44:45 +00:00
![DeepThought ](./screenshot_navbar_es.png )
### KaTeX math formula support
This theme contains math formula support using [KaTeX ](https://katex.org/ ),
which can be enabled by setting `katex.enabled = true` in the `extra` section
2022-06-06 08:46:29 +00:00
of `config.toml` .
2021-09-12 19:44:45 +00:00
After enabling this extension, the `katex` short code can be used in documents:
2022-06-06 08:46:29 +00:00
- `{{/* katex(body="\KaTeX") */}}` to typeset a math formula inlined into a text,
2021-09-12 19:44:45 +00:00
similar to `$...$` in LaTeX
2022-06-06 08:46:29 +00:00
- `{%/* katex(block=true) */%}\KaTeX{%/* end */%}` to typeset a block of math formulas,
2021-09-12 19:44:45 +00:00
similar to `$$...$$` in LaTeX
#### Automatic rendering without short codes
Optionally, `\\( \KaTeX \\)` / `$ \KaTeX $` inline and `\\[ \KaTeX \\]` / `$$ \KaTeX $$`
2022-06-06 08:46:29 +00:00
block-style automatic rendering is also supported, if enabled in the config
by setting `katex.auto_render = true` .
2021-09-12 19:44:45 +00:00
2022-06-06 08:46:29 +00:00
### Elasticlunr search in other language
Zola use [Elasticlunr.js ](https://github.com/weixsong/elasticlunr.js ) to add full-text search feature.
To use languages other than en (English), you need to add some javascript files. See the Zola's issue [#1349 ](https://github.com/getzola/zola/issues/1349 ).
By placing the `templates/base.html` on your project and using the `other_lang_search_js` block, you can load the required additional javascript files in the right timing.
e.g. `templates/base.html`
```html
{%/* extends "DeepThought/templates/base.html" */%} {%/* block other_lang_search_js */%}
< script src = "{{/* get_url(path='js/lunr.stemmer.support.js') */}}" > < / script >
< script src = "{{/* get_url(path='js/tinyseg.js') */}}" > < / script >
< script src = "{{/* get_url(path='js/lunr.' ~ lang ~ '.js') */}}" > < / script >
< script src = "{{/* get_url(path='js/search.js') */}}" > < / script >
{%/* endblock */%}
2021-09-12 19:44:45 +00:00
```
2022-06-06 08:46:29 +00:00
More detailed explanations are aound in [elasticlunr's documents ](https://github.com/weixsong/elasticlunr.js#other-languages-example-in-browser ).
2023-04-30 20:03:30 +00:00
<!-- Contributing -->
## :wave: Contributing
< a href = "https://github.com/RatanShreshtha/DeepThought/graphs/contributors" >
< img src = "https://contrib.rocks/image?repo=RatanShreshtha/DeepThought" / >
< / a >
2021-09-12 19:44:45 +00:00
2023-04-30 20:03:30 +00:00
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
2021-09-12 19:44:45 +00:00
2023-04-30 20:03:30 +00:00
- Fork the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
2021-09-12 19:44:45 +00:00
2023-04-30 20:03:30 +00:00
<!-- License -->
## :warning: License
2021-09-12 19:44:45 +00:00
2023-04-30 20:03:30 +00:00
Distributed under the MIT License. See `LICENSE` for more information.
2021-09-12 19:44:45 +00:00
2023-04-30 20:03:30 +00:00
<!-- Contact -->
## :handshake: Contact
2021-09-12 19:44:45 +00:00
2023-04-30 20:03:30 +00:00
Ratan Kulshreshtha - [@RatanShreshtha ](https://twitter.com/RatanShreshtha ) - ratan.shreshtha[at]gmail.com
2021-09-12 19:44:45 +00:00
Project Link: [https://github.com/RatanShreshtha/DeepThought ](https://github.com/RatanShreshtha/DeepThought )
2023-04-30 20:03:30 +00:00
<!-- Acknowledgments -->
## :gem: Acknowledgements
Use this section to mention useful resources and libraries that you have used in your projects.
- [Shields.io ](https://shields.io/ )
2022-06-06 08:46:29 +00:00
- [Choose an Open Source License ](https://choosealicense.com )
2023-04-30 20:03:30 +00:00
- [Awesome README ](https://github.com/matiassingers/awesome-readme )
- [Emoji Cheat Sheet ](https://github.com/ikatyang/emoji-cheat-sheet/blob/main/README.md#travel--places )
2022-06-06 08:46:29 +00:00
- [Slick Carousel ](https://kenwheeler.github.io/slick )
- [Font Awesome ](https://fontawesome.com )
- [Unsplash ](https://unsplash.com/ )
2020-09-02 17:34:02 +00:00