Skip to content

config.yml ​

Site settings live in config.yml at the project root and are validated with Zod. Field names are case-sensitive. Rebuild and redeploy after editing. See the 1.14.0 config file for a complete example.

Site identity ​

yaml
title: Suzu
subTitle: My blog
description: Notes on everyday life and development
keywords: 'Suzu, blog, Next.js'
author:
  name: Your name
  link: https://example.com
lang: en
siteUrl: https://blog.example.com
avatar: /images/avatar.jpg
background: /images/background.jpg
slogan: Notes from my day
googleAnalytics:
FieldPurpose
titleSite name
subTitleSubtitle
descriptionDefault description and SEO summary
keywordsComma-separated keywords, optional
author.name, author.linkAuthor name and full personal website URL
langBCP 47 language tag such as zh-CN, en, or ja. Default en
siteUrlPublic origin without a trailing slash
avatarHomepage avatar
backgroundFallback image for posts without a thumbnail
sloganText below the homepage avatar, up to 100 characters
googleAnalyticsTracking ID such as G-XXXXXXXXXX. Leave empty to disable

Place local images in public/images and reference them as /images/.... Full HTTPS image URLs also work.

lang controls interface text and page language attributes. Chinese, English, and Japanese translations are included. Other languages fall back to English. This setting does not translate posts or create language-specific routes.

yaml
links:
  - rel: icon
    type: image/png
    href: /icons/favicon-96x96.png
    sizes: 96x96
  - rel: icon
    type: image/svg+xml
    href: /icons/favicon.svg
  - rel: apple-touch-icon
    href: /icons/apple-touch-icon.png
    sizes: 180x180

Each entry becomes an HTML <link> tag. rel and href are required. type and sizes are optional. Place the example files in public/icons.

yaml
postsPerPage: 5
creativeCommons:
  type: CC BY-SA 4.0
  link: https://creativecommons.org/licenses/by-sa/4.0/
travellings: false
startYear: 2024
FieldPurpose
postsPerPagePosts per page, from 1 to 15. Defaults to 5 when omitted or empty
creativeCommonsContent license name and full URL
travellingsShow the Travellings link
startYearFooter start year, from 1900 to the current year. Leave empty to show only the current year

Use showLicense: false in a post to hide its license notice.

Anime list ​

yaml
anilist_username: your-username
anilist_anime_name_style: english

anilist_username supplies the list at /about/anime. Leave it empty to hide the list. Name styles are english, romaji, and native. When unset, Japanese sites use native and other languages use english. Missing names fall back to romaji.

yaml
socialMedia:
  github_username: your-username
  linkedin_username:
  instagram_id:
  orcid_id:
  telegram_username:
  bluesky_username:
  youtube_id:
  zhihu_username:
  bilibili_id:
  email: [email protected]
  rss: true

Enter usernames or IDs. Empty fields hide their icons. Use the 0000-0000-0000-0000 format for orcid_id and a full address for email.

rss has three settings:

ValueResult
trueGenerate /feed.xml and show its icon
falseGenerate the feed and hide its icon
EmptySkip feed generation and hide its icon

The build also generates /llms.txt and /llms-full.txt. Posts in RSS, sitemap, and LLM files are limited to published content. After disabling RSS, check for and remove any previously generated public/feed.xml.

Comments ​

yaml
twikooEnvId: https://comments.example.com
disqusShortname:

Set twikooEnvId to the full Twikoo service URL or set disqusShortname to your Disqus site shortname. Twikoo takes priority when both are set. Leave both empty to disable comments. Use showComments: false in an individual post or page to disable its comments.

Custom code ​

yaml
headerJavascript:
  - /scripts/custom.js
slotFooter: |
  <p>Custom footer</p>

Each headerJavascript entry is a script URL or a root-relative path under public. For example, public/scripts/custom.js is referenced as /scripts/custom.js. slotFooter inserts HTML into the footer. Use trusted content only.

Documentation licensed under CC BY 4.0