Skip to content

Commit

Permalink
Configure title & description (#22)
Browse files Browse the repository at this point in the history
* Adjustments found while investigating getzola/zola#2024
* Zola uses both values when generating atom.xml, despite being marked optional.
* Have base.html also use the same metadata.
  • Loading branch information
sangsatori authored Dec 4, 2022
1 parent d8ad98a commit 61d144e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ build_search_index = true
# Generate an RSS feed
generate_feed = true

# The site title and description; used in feeds by default.
title = "Helix"
description = "A post-modern modal text editor."

[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
Expand Down
4 changes: 2 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Helix</title>
<meta name="description" content="A post-modern modal text editor.">
<title>{{ config.title }}</title>
<meta name="description" content="{{ config.description }}">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="preconnect" href="https://fonts.gstatic.com">
Expand Down

0 comments on commit 61d144e

Please sign in to comment.