Live demo: https://izy-zola.netlify.app/
Roadmap:
- Comments
- Page 404
- Categories
- Dark Mode
- Google Analytics
- Multilingual
- Search
- Social Links
- It is recommended to add this theme as a git submodule in your zola project:
cd zola-project
git submodule add -b main git@github.com:VV0JC13CH/izy-zola.git themes/izy-zola
- Change below parameter in your
config.toml
file:
# The site theme to use.
theme = "izy-zola"
- Overwrite default values of theme by editing your zola main
config.toml
file:
[extra]
favicon = "/ico/favicon.ico"
enable_search = true
enable_multilingue = false
# [extra.lang]
# items = [
# { lang = "en", links = [
# { base_url = "/", name = "English" },
# { base_url = "/pl", name = "Polish" }
# ] },
# { lang = "pl", links = [
# { base_url = "/", name = "Angielski" },
# { base_url = "/pl", name = "Polski" }
# ] }
# ]
[extra.share]
enabled = false
[extra.comments]
enabled = false
[extra.navbar]
title = ""
items = [
{ lang = "en", links = [
{ url = "/blog", name = "Blog"},
{ url = "/categories", name = "Categories"},
{ url = "/tags", name = "Tags"},
] },
]
[extra.sidebar]
enabled = false
show_categories = true
position = 'right' # left / right
custom_items = [
{ lang = "en", links = [
{ url = "/blog", name = "Blog"},
{ url = "/categories", name = "Categories"},
{ url = "/tags", name = "Tags"},
] },
]
[extra.social]
links = [
#{github = "https://github.com/johndoe"},
#{gitlab = "https://gitlab.com/johndoe"},
#{twitter = "https://twitter.com/johndoe"},
#{linkedin = "https://www.linkedin.com/in/john-doe-b1234567/"},
]
- Set below flag to true (required)
[extra]
enable_multilingue = true
- Add your language to config.toml (required)
[extra.lang]
items = [
{ lang = "en", links = [
{ base_url = "/", name = "English" },
{ base_url = "/pl", name = "Polish" }
] },
{ lang = "pl", links = [
{ base_url = "/", name = "Angielski" },
{ base_url = "/pl", name = "Polski" }
] }
]
- Customize your navbar (optional)
[extra.navbar]
items = [
{ lang = "en", links = [
{ url = "/assets", name = "Assets"},
{ url = "/blog", name = "Blog"},
{ url = "/snippets", name = "Snippets"},
{ url = "/projects", name = "Projects"},
] },
{ lang = "pl", links = [
{ url = "/pl/assets", name = "Assety"},
{ url = "/pl/blog", name = "Blog"},
{ url = "/pl/snippets", name = "Kod"},
{ url = "/pl/projects", name = "Projekty"},
] }
]
- Customize your sidebar (optional)
[extra.sidebar]
enabled = true
custom_items = [
{ lang = "en", links = [
{ url = "/markdown", name = "Markdown" },
{ url = "/blog", name = "Blog" }
] },
{ lang = "pl", links = [
{ url = "/pl/markdown", name = "Markdown" },
{ url = "/pl/blog", name = "Blog" }
] }
]
In order to use highlught css themes it is reguired to add below config. Themes to choose: https://www.getzola.org/documentation/getting-started/configuration/#syntax-highlighting
[markdown]
# The theme to use for code highlighting.
highlight_theme = "css"
highlight_themes_css = [
{ theme = "visual-studio-dark", filename = "syntax-dark.css" },
{ theme = "cheerfully-light", filename = "syntax-light.css" },
]
- Fork the Project
- Create your Feature Branch (
git checkout -b feature
) - Commit your Changes (
git commit -m 'Add some Feature'
) - Push to the Branch (
git push origin feature
) - Open a Pull Request to develop branch
Demo site always shows how current state of develop branch works:
https://izy-zola.netlify.app/
Distributed under the MIT License. See LICENSE
for more information.
The goal of this project was to learn Tailwindcss, basics of JS and Tera.
I'm very greatful to all the authors/owners of the MIT projects that I listed below and contributors of these projects.
Great work! You are very talented. In case below list is not complete, please create an Issue in this repository.
blow by Thomas Chartron (MIT)
blow was used as a starting 'zola theme' template for this theme.
- deployment pipeline (package.json, postcss.config.js)
- integration with tailwindcss (tailwind.config.js)
- core animations (lang.js, search.js, page.js, main.js)
tailwind-nextjs-starter-blog was used as a starting 'tailwindcss' template for this theme.
- origin of used tailwindcss classes and whole "look"
- tags, categories view
- navbar, footer
- search animation and elasticlunr code in search.js