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

Simon Hollingshead
06.03.2023 cb77c217e145ba8e9d54cbdc765d31868e205499
refs
author Simon Hollingshead <me@simonhollingshead.com>
Thursday, April 6, 2023 17:03 +0200
committer GitHub <noreply@github.com>
Thursday, April 6, 2023 17:03 +0200
commitcb77c217e145ba8e9d54cbdc765d31868e205499
tree 55b6f4a078f5f3bfc6c840068c6adcc938f66204 tree | zip | gz
parent 989c0a5a8128f012aaa07fd5babb58f677f0eb51 view | diff
Only include the generator tag on the homepage. (#792)

### Prerequisites

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

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

### Description

From the context links below, Hugo only ask (or use injection to force)
that the meta generator tag is added to the homepage for their own
monitoring of adoption, not to every page. This change simply makes
hugo-coder follow the same convention.

https://github.com/gohugoio/hugo/issues/2850#issuecomment-269673618


https://github.com/gohugoio/hugo/blob/f1e8f010f5f5990c6e172b977e5e2d2878b9a338/publisher/publisher.go#L175

### Issues Resolved

None

### 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
- [ ] Reference issue with `#<ISSUE_NO>` if applicable

#### Resources

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

#### Contributors

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