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

Implement PageTitleMixin #482

Merged
merged 8 commits into from Jul 16, 2021
Merged

Implement PageTitleMixin #482

merged 8 commits into from Jul 16, 2021

Conversation

helrond
Copy link
Member

@helrond helrond commented Jul 12, 2021

Adds a PageTitleMixin and implements it across the application. This means that all pages now have a meta page title which aligns with the h1 on the page. It also allowed me to get rid of some get_context_data blocks in views, which was a nice feeling.

Asking for a review on this because it's fairly invasive.

Fixes #473

@HaSistrunk
Copy link
Member

I'm seeing all those great page titles showing up except in the /api and /api/schema/ pages, which are just showing "Aurora" but not the h1-aligned part.

@helrond
Copy link
Member Author

helrond commented Jul 15, 2021

good catch @HaSistrunk - that latest commit should have fixed that.

@HaSistrunk
Copy link
Member

HaSistrunk commented Jul 16, 2021

good catch @HaSistrunk - that latest commit should have fixed that.

I can't figure out why, because this fix makes sense to me, but I'm still seeing just "Aurora" in the <title> in the <head> after rebuilding for the api.

@helrond
Copy link
Member Author

helrond commented Jul 16, 2021

Hmm, I can't reproduce that. Did you try clearing your browser cache?

Screen Shot 2021-07-16 at 11 44 19 AM

@HaSistrunk
Copy link
Member

Cache was cleared, turns out it was some git chaos I created for myself locally that I won't bore you with. All good!

@helrond helrond merged commit 7b22778 into v2.1 Jul 16, 2021
@helrond helrond deleted the issue-473 branch July 16, 2021 17:39
@helrond helrond mentioned this pull request Aug 16, 2021
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.

None yet

4 participants