versbinarii / hermit_zola Goto Github PK
View Code? Open in Web Editor NEWMinimal Zola theme for bloggers
License: MIT License
Minimal Zola theme for bloggers
License: MIT License
I love the social icons on the home page, and it would be nice if more icons could be added. I particular, I was thinking of Codeberg and Matrix. Matrix is quite popular, I could imagine a fair amount of people using it. Codeberg is less wide-spread, but it would still be a nice addition.
Currently, the social icons are assigned a name in config.toml
, which must be lowercase to be recognized properly (i.e. github
instead of Github
or GitHub
). These names are then also used for the tooltips when hovering one of the icons. However, lowercase looks weird in a tooltip.
It would be nice if these names could be Uppercase as well, or any arbitrary case for that matter, to allow for uppercase tooltips. The name could then be converted to lowercase before assigned an icon.
This change seems to break for me with zola v0.16.1, both on my own site and doing zola build
after cloning this repo. I saw #19 which looks like it might be the cause of this.
Building site...
Error: Failed to build the site
Error: Error parsing templates from themes
Error: Reason:
* Failed to parse "/home/akiekintveld/src/akiekintveld/themes/Hermit_Zola/templates/section.html"
--> 54:7
|
54 | <h1>{% section.title %}</h1>
| ^---
|
= unexpected tag; expected an endblock tag (`{% endblock block_name %}` or some content
Hi. I really like this theme so I use it for my personal website. I tried to make an SVG to submit for Mastodon to add to the social icons, but could not make it look good, much less look like the others styling. That is apparently not my skill set. Just wanted to express some interest in having that added to this theme.
Here is the official branding page which shows the logo.
thanks!
Hi folks !
I didn't want to bother you with some pull request with features you didn't want. Then I forked the repository and made these features in my own fork.
My first intentions were to play with Zola and this theme, and not to maintain my own fork.
If you want to have these you can pick these from this : https://github.com/pawndev/hermit_zola/pulls?q=is%3Apr+is%3Aclosed
You can enable highlightjs to replace the built-in syntax high lighting.
But, make sure to disable the built-in syntax highlighting.
In your config.toml
highlight_code = false
[extra.highlightjs]
enable = true
You can change the highlightjs theme with this:
highlight_code = false
[extra.highlightjs]
enable = false
theme = "vs2015"
For all themes, see: https://unpkg.com/browse/[email protected]/highlightjs/styles/
You can enable the display of a button to copy the content of a pre>code tag.
This will display a "copy" button on the bottom of each pre tag.
Only when highlightjs is disable.
highlight_code = true
[extra.highlightjs]
enable = false
Enable it in the highlightjs config block.
highlight_code = false
[extra.highlightjs]
enable = true
clipboard = true
You can display a jupyter notebook from a ipynb file. Only if you have enable highlightjs
highlight_code = false
[extra.highlightjs]
enable = true
clipboard = true
theme = "vs2015"
notebook = true
You can add a background image when you set an extra variable in a page section:
+++
title="Test bg image"
date=2020-10-14
draft=false
[taxonomies]
tags=["test", "image"]
[extra]
featuredImg = "https://picsum.photos/1024/768/?random"
+++
This theme provide a figure
shortcode. You can use it like this:
{{ figure(src="https://via.placeholder.com/1600x800",
class="big"
caption_position="center",
caption="figure-big",
caption_style="font-style: italic;") }}
This theme provide a image
shortcode. You can use it like this:
{{ image(src="https://via.placeholder.com/1600x800", class="boulou" alt="Hello Friend", style="border-radius: 8px;") }}
In an article you can do footnotes like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.[^1]
> An apple is a sweet, edible fruit produced by an apple tree (Malus pumila). Apple trees are cultivated worldwide, and are the most widely grown species in the genus Malus. The tree originated in Central Asia, where its wild ancestor, Malus sieversii, is still found today. Apples have been grown for thousands of years in Asia and Europe, and were brought to North America by European colonists. Apples have religious and mythological significance in many cultures, including Norse, Greek and European Christian traditions.[^2]
[^1]: From [https://www.lipsum.com/](https://www.lipsum.com/)
[^2]: From [https://en.wikipedia.org/wiki/Apple](https://en.wikipedia.org/wiki/Apple)
I just started with Zola, if you see some mistakes in my repository, please tell me on issue or made a PR 😃
It's unavoidable that people eventually hit a 404 page when browsing a website. Having a 404 page look nice is very valuable, a rough one can scare novice internet users quite quickly.
I created a brand new zola project with zola init
, installed this theme through git clone
and set it up as the theme in the config.toml
.
Error: Failed to serve the site
Error: Failed to render section '\\?\C:\Repos\Site\content\_index.md'
Error: Reason: Failed to render 'index.html'
Error: Reason: Variable `config.extra.author.name` not found in context while rendering 'index.html'
themes\hermit_zola\theme.toml
[author]
with [extra.author]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.