mirror of https://github.com/luizdepra/hugo-coder.git

Simon Hollingshead
27.19.2024 de0dd46ed589385d9fe591d1e489d7cee7b2e08d
refs
author Simon Hollingshead <me@simonhollingshead.com>
Friday, September 27, 2024 00:19 +0200
committer GitHub <noreply@github.com>
Friday, September 27, 2024 00:19 +0200
commitde0dd46ed589385d9fe591d1e489d7cee7b2e08d
tree aa9e56853a210e89409d8b0700b3f8e34ff0ab98 tree | zip | gz
parent 4e8ce4a6a09c7f32548c5c33b532dcbbccc355b0 view | diff
Hide fediverse creator when unused, and allow a globally-set value. (#931)

### Prerequisites

Put an `x` into the box(es) that apply:

- [ ] This pull request fixes a bug.
- [x] This pull request adds a feature.
- [ ] This pull request introduces breaking change.

### Description

The new-ish changes to support fediverse creator tags seemed to
introduce two undesirable (to me) features.

1. People who didn't use the feature got an empty meta tag added to
every page with no value.
2. People who own their site and are the only author of content to it
needed to add the value on every single page to get it to function.

This change allows for a default value to be set, and removes the tag if
it is valueless.

### Issues Resolved

#930

### Checklist

Put an `x` into the box(es) that apply:

#### General

- [x] Describe what changes are being made
- [x] Explain why and how the changes were necessary and implemented
respectively
- [x] Reference issue with `#<ISSUE_NO>` if applicable

#### Resources

- [ ] If you have changed any SCSS code, run `make release` to
regenerate all CSS files

#### Contributors

- [ ] Add yourself to `CONTRIBUTORS.md` if you aren't on it already
2 files modified
3 ■■■■ changed files
docs/configurations.md 1 ●●●● diff | view | raw | blame | history
layouts/partials/head/meta-tags.html 2 ●●● diff | view | raw | blame | history