# Hugo - Fuji Theme - Author info present but not displayed

**URL:** <https://discourse.gohugo.io/t/hugo-fuji-theme-author-info-present-but-not-displayed/33389>\
**Category:** support\
**Created:** [June 15, 2021, 8:28pm UTC](https://discourse.gohugo.io/t/hugo-fuji-theme-author-info-present-but-not-displayed/33389 "2021-06-15T20:28:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![itsraghz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/itsraghz/32/14616_2.png) [@itsraghz](https://discourse.gohugo.io/u/itsraghz)\
**Post date:** [June 15, 2021, 8:28pm UTC](https://discourse.gohugo.io/t/hugo-fuji-theme-author-info-present-but-not-displayed/33389/1 "2021-06-15T20:28:38Z")

</div>

Hello,

I have been learning Hugo recently and made my site using Hugo ([https://raghsonline.com](https://raghsonline.com)) hosted with Netlify using [Fuji Theme](https://github.com/dsrkafuu/hugo-theme-fuji).

As part of my learning journey, I am customizing few other stuff on the default aspects of the site. One such thing is the default author, which I felt it is a nice to have thought at the moment I am the only one managing the site.

I made use of the settings explained in the [exampleSite of Fuji Theme in the GitHub Repo](https://github.com/dsrkafuu/hugo-theme-fuji/blob/master/exampleSite/config.toml#L36) and also added a snippet in the `archetypes\default.md` file to have this snippet prepopulated in the new posts. I see that the author name is present in the new `.md` file generated for the post, however it does _not_ get displayed in the web page.

Any idea as to what I am missing here ? Should I need to modify any meta html files for the posts?

### Changes in the `config.toml` file

```auto
[params]
  author = "Raghs" # You can also set author in post front matter individually
  .......

```

### Changes in the `archetypes\default.md` file

```auto
---
....
author: {{ .Site.Params.author }}
---

```

### Actual file content of the `default-author-test.md`

```auto
---
title: "Default Author Test"
date: 2021-06-16T00:48:15+05:30
draft: false
tags: ["Test", "Hugo", "TODO"]
toc: true
author: Raghs
---

```

You can check the actual blog post I made on my website here → [Default Author Test - Blogs of Raghs](https://raghsonline.com/posts/test/hugo/default-author-test/)

### Screenshot to show that the author info is not rendered

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/7/7a884c4a36ca7f4aee6049e551dafc9daf4784c9.png)

Cheers,  
RM…

---

<div class="post-metadata">

**Author:** ![funkydan2](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/funkydan2/32/5636_2.png) [@funkydan2](https://discourse.gohugo.io/u/funkydan2)\
**Post date:** [June 15, 2021, 10:44pm UTC](https://discourse.gohugo.io/t/hugo-fuji-theme-author-info-present-but-not-displayed/33389/2 "2021-06-15T22:44:55Z")

</div>

Your guess in the _TODO_ section of the screenshot is spot on. You’ll need to override `post-meta.html` and make use of something like `{{with .Params.author}} {{.}} {{end}}`.

---

<div class="post-metadata">

**Author:** ![itsraghz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/itsraghz/32/14616_2.png) [@itsraghz](https://discourse.gohugo.io/u/itsraghz)\
**Post date:** [June 16, 2021, 9:28am UTC](https://discourse.gohugo.io/t/hugo-fuji-theme-author-info-present-but-not-displayed/33389/3 "2021-06-16T09:28:30Z")

</div>

> [@funkydan2](#):
>
> `{{with .Params.author}} {{.}} {{end}}` .

Perfecto @funkydan2 . It worked 🙂

I just made a small tweak on the icon, but it does not seem to work. Guess I need to work with the _Fuji_ team, as the customization of the CSS and icons is more inclined with the theme setup/config.

### change in `\layouts\partial\post-meta.html`

```auto
<span><i class="iconfont icon-pricetags-sharp"></i>&nbsp;{{with .Params.author}} {{.}} {{end}}</span>

```

Works fine. But the icon what I used is for ‘pricetag’ - which was used for the _tags_. I wanted to use something different like a human icon for an author. I tried the steps given in the websites as follows.

- [https://www.client9.com/using-font-awesome-icons-in-hugo/](https://www.client9.com/using-font-awesome-icons-in-hugo/)
- [https://fontawesome.com/v5.15/icons?d=gallery&p=2&c=users-people](https://fontawesome.com/v5.15/icons?d=gallery&p=2&c=users-people)
- [https://fontawesome.com/v5.15/icons/user-tag?style=solid](https://fontawesome.com/v5.15/icons/user-tag?style=solid)

```auto
<span><i class="fab fa-github"></i>&nbsp;GitHub</span>
<span><i class="fas fa-user-tag"></i>&nbsp;{{with .Params.author}} {{.}} {{end}}</span>

```

But the classes start with `fab` and the css to be configured in the header or footer, with the `.js` file as well. It is a bit too detailed as per this link [https://fontawesome.com/v5.15/how-to-use/on-the-web/setup/hosting-font-awesome-yourself](https://fontawesome.com/v5.15/how-to-use/on-the-web/setup/hosting-font-awesome-yourself). I also see that in this location is appropriate to keep the new icons in the Fuji Theme in the [Assets - IconFont in Fuji Theme - GitHub Repo](https://github.com/dsrkafuu/hugo-theme-fuji/tree/master/static/assets/iconfont)

If you can share any quick resolution on this, it would be highly appreciated. Else, I will post this in the Fuji Theme Git Hub Repo as a feature request or something. I wish once I gain a bit more knowledge on this (perhaps with the Go Lang Knowledge, I do it on my own 🙂 😊 )

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/2/27c556eaf8f408cdf2bce8549cbf005189398d0a.png)

Cheers,  
RM…

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [June 18, 2021, 9:28am UTC](https://discourse.gohugo.io/t/hugo-fuji-theme-author-info-present-but-not-displayed/33389/4 "2021-06-18T09:28:55Z")

</div>

Closed on June 18, 2021, 9:28am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
