Skip to content

Commit

Permalink
Update author param
Browse files Browse the repository at this point in the history
  • Loading branch information
clente committed Jan 4, 2024
1 parent 0b1713a commit bd5d81f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ defaultContentLanguage = "en"
# Generate a nice robots.txt for SEO
enableRobotsTXT = true

# Your name. For more information on why this must be a list, see
# https://discourse.gohugo.io/t/site-author-usage/31459/8
[author]
name = "John Doe"

# Setup syntax highlighting without inline styles. For more information about
# why you'd want to avoid inline styles, see
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src#unsafe_inline_styles
Expand Down Expand Up @@ -215,9 +210,14 @@ enableRobotsTXT = true
# Social media. Delete any item you aren't using to make sure it won't show up
# in your website's metadata.
[params.social]
email = "[email protected]" # Added to the footer so readers can reply to posts
twitter = "example" # Twitter handle (without '@')
facebook_admin = "0000000000" # Facebook Page Admin ID

# Author metadata. This is mostly used for the RSS feed of your site, but the
# email is also added to the footer of each post
[params.author]
name = "John Doe" # Your name as shown in the RSS feed metadata
email = "[email protected]" # Added to the footer so readers can reply to posts
```

## Contributing
Expand Down
12 changes: 6 additions & 6 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ defaultContentLanguage = "en"
# Generate a nice robots.txt for SEO
enableRobotsTXT = true

# Your name. For more information on why this must be a list, see
# https://discourse.gohugo.io/t/site-author-usage/31459/8
[author]
name = "John Doe"

# Setup syntax highlighting without inline styles. For more information about
# why you'd want to avoid inline styles, see
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src#unsafe_inline_styles
Expand Down Expand Up @@ -77,6 +72,11 @@ enableRobotsTXT = true
# Social media. Delete any item you aren't using to make sure it won't show up
# in your website's metadata.
[params.social]
email = "[email protected]" # Added to the footer so readers can reply to posts
twitter = "example" # Twitter handle (without '@')
facebook_admin = "0000000000" # Facebook Page Admin ID

# Author metadata. This is mostly used for the RSS feed of your site, but the
# email is also added to the footer of each post
[params.author]
name = "John Doe" # Your name as shown in the RSS feed metadata
email = "[email protected]" # Added to the footer so readers can reply to posts
2 changes: 1 addition & 1 deletion layouts/partials/social_card.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
)) }}

{{ $date := .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
{{ $author := (default $.Site.Author.name ($.Param "author") ) }}
{{ $author := (default $.Site.Params.author.name ($.Param "author") ) }}
{{ $byline := (printf "%s | %s" $author $date) }}

{{ $fg = $fg.Filter (images.Text $byline (dict
Expand Down

0 comments on commit bd5d81f

Please sign in to comment.