Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve meta tags and page title #11

Merged
merged 1 commit into from
Apr 5, 2018
Merged

Improve meta tags and page title #11

merged 1 commit into from
Apr 5, 2018

Conversation

tijmenb
Copy link
Contributor

@tijmenb tijmenb commented Apr 5, 2018

This PR adds all the appropriate meta tags to pages. This makes will improve SEO and improve previews in services like Slack, which uses both Twitter and Facebook/OpenGraph data for its "unfurling".

Example

These meta tags are currently in use on the GOV.UK developer docs. They cause Slack to show a nice preview, unlike other sites like the PaaS tech docs:

screen shot 2018-04-05 at 10 50 30

Part of the Q4 GOV.UK 🔥 firebreak: https://trello.com/c/QbspvRc2

This PR adds all the appropriate meta tags to pages. This makes will
improve SEO and improve previews in services like Slack, which uses
both Twitter and Facebook/OpenGraph data for its unfurling.
@tijmenb tijmenb merged commit 0d0700a into master Apr 5, 2018
@tijmenb tijmenb deleted the better-metatags branch April 5, 2018 14:11
tijmenb added a commit that referenced this pull request Apr 18, 2018
Since #11 the template
crashes when `host` isn't specified in config/tech-docs.yml.

This makes sure that we don't crash.
tijmenb added a commit that referenced this pull request Apr 18, 2018
Since #11 the template
crashes when `host` isn't specified in config/tech-docs.yml.

This makes sure that we don't crash.
tijmenb added a commit to alphagov/govuk-developer-docs that referenced this pull request Feb 7, 2019
This is a bit of a big commit, but it should be fine since it's mostly
deletions and it's all interconnected.

Things that happen in this commit:

- We remove the layout overrides that exist in these docs, in favour of
the layouts provided by the gem.
- The layouts now provide the meta tags functionality
(alphagov/tech-docs-gem#11), so we can remove
our own code for that.
- The page review is now provided by the gem as well
(alphagov/tech-docs-gem#12), so we get rid of
the custom code for that too.
- We turn on the search functionality from the gem which was added in
alphagov/tech-docs-gem#28 and follow up PRs.

After this commit, we're mostly running code from the gem instead of
our own. This should make it easier to update, and makes it more likely
that we'll contribute back to the gem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants