Pracuji na novém webu. Veřejná verze bude co nejdřív.
Náhled pro autora
Nesprávné heslo.
build_search_index)Enables or disables the search functionality for your blog.
build_search_index = falseWhen enabled, a search index will be generated for your blog, allowing visitors to search for specific content. Additionally, a search button will be displayed in the navigation bar.
Configure the search like this:
build_search_index = true
[search]
include_title = true
include_description = true
include_path = true
include_content = true
index_format = "elasticlunr_json"
theme)Sets the color theme for your blog.
theme = "toggle"The "toggle" option allows users to switch between light and dark modes, while "auto" typically follows the user's system preferences.
Defines the navigation menu items for your blog.
menu = [
{ name = "/posts", url = "/posts", weight = 1 },
{ name = "/projects", url = "/projects", weight = 2 },
{ name = "/about", url = "/about", weight = 3 },
{ name = "/tags", url = "/tags", weight = 4 },
]
Defines the site logo image file.
logo = "site_logo.svg"
Defines the social media links.
socials = [
{ name = "twitter", url = "https://twitter.com/not_matthias", icon = "twitter" },
{ name = "github", url = "https://github.com/not-matthias/", icon = "github" },
]
toc)Enables or disables the table of contents for posts.
toc = trueWhen enabled, a table of contents will be generated for posts, making it easier for readers to navigate through longer articles.
Note: This feature adds additional JavaScript to your site.
use_cdn)Determines whether to use a Content Delivery Network (CDN) for assets.
use_cdn = falseWhen set to true, the theme will attempt to load assets from a CDN, which can improve loading times for visitors from different geographic locations.
favicon)Specifies the path to the favicon image for your blog.
favicon = "/icon/favicon.png"This sets the small icon that appears in the browser tab for your website.
stylesheets)Allows you to add custom stylesheets to your blog.
static directorystylesheets = [
"custom.css", # static/custom.css
"/css/another.css" # static/css/another.css
]
fancy_code)Enables enhanced styling for code blocks.
fancy_code = trueThis option adds the language label and a copy button.
dynamic_note)Allows for the creation of togglable note sections in your content.
dynamic_note = trueWhen enabled, you can create expandable/collapsible note sections in your blog posts.
You can add anchor links by adding the following to your _index.md:
insert_anchor_links = "heading"
Enable or disable analytics tracking:
[extra.analytics]
enabled = false
After enabling analytics, configure GoatCounter or Umami.
Configure GoatCounter analytics:
[extra.analytics.goatcounter]
user = "your_user" # Your GoatCounter username
host = "example.com" # Optional: Custom host
Configure Umami analytics:
[extra.analytics.umami]
website_id = "43929cd1-1e83...." # Your Umami website ID
host_url = "https://stats.mywebsite.com" # Optional: Custom host URL
repo_view)Do you want to link to the source code of your blog post? You can turn on the repo_view inside the [extra] section of your blog post.
[extra]
repo_view = true
repo_url = "https://github.com/not-matthias/apollo/tree/main/content" # Alternatively add the repo here
The repo_url can be set in the [extra] section or in your config.toml.
comment)Enables or disables the comment system for posts.
comment = falseAfter making comment = true in [extra] section of you post, save your script from Giscus to templates/_giscus_script.html.
When enabled, this allows readers to leave comments on your blog posts. This feature has to be set for each individual post and is not supported at higher levels.
Example configuration in content/posts/configuration.md:
+++
title = "Configuring Apollo"
[extra]
comment = true
+++
Comments via utterances can be configured in template/_giscus_script.html like this:
<script src="https://utteranc.es/client.js"
repo="YOUR_NAME/YOUR_REPO"
issue-term="pathname"
theme="github-light"
crossorigin="anonymous"
async>
</script>