Hugo Narrow author information render at hoempage, in the sample configuration, the avatar file is placed in the ~/static/ directory. icon value uses the file name of ~/assets/icons/ directory.

params.yaml
 1author:
 2  name: "Hugo Narrow"
 3  title: "A Clean and Minimal Hugo Theme"
 4  description: "Focused on content and user experience."
 5  avatar: "/images/avatar.svg"
 6  social:
 7    - name: "GitHub"
 8      url: "https://github.com/username"
 9      icon: "github"
10    - name: "Twitter"
11      url: "https://twitter.com/username"
12      icon: "twitter"
13    - name: "Email"
14      url: "mailto:hello@example.com"
15      icon: "email"
Click to expand and view more

Multilingual

If your site supports multiple languages, set parameters in the front matter of the index file ~/content/_index.md and the translation file ~/content/_index.zh-cn.md of the home page bundle. Page configurations are prioritized; otherwise, configurations from the site configuration file params.yaml will be used.

content/_index.zh-cn.md
 1author:
 2  name: "Hugo Narrow"
 3  title: "A Clean and Minimal Hugo Theme"
 4  description: "Focused on content and user experience."
 5  avatar: "/images/avatar.svg"
 6  social:
 7    - name: "GitHub"
 8      url: "https://github.com/username"
 9      icon: "github"
10    - name: "Twitter"
11      url: "https://twitter.com/username"
12      icon: "twitter"
13    - name: "Email"
14      url: "mailto:hello@example.com"
15      icon: "email"
Click to expand and view more

Copyright Notice

Author: Hugo Narrow

Link: https://hugo-narrow-docs.vercel.app/docs/author/

License: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut