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

Default Meta Tags #64

Open
rrgrs opened this issue Oct 4, 2017 · 1 comment
Open

Default Meta Tags #64

rrgrs opened this issue Oct 4, 2017 · 1 comment
Milestone

Comments

@rrgrs
Copy link

rrgrs commented Oct 4, 2017

Hello,

I was wondering/hoping there was a way to set default meta tags, such as for description and title. I see there's a setting for default keywords but not any other type of meta tag. I tried creating a mixin class with various properties that would act as defaults for the meta tags, e.g.:

class DefaultMetaTags:
    title = 'title'
    description = 'meta description'

and

class DefaultMetaTags(MetadataMixin):
    title = 'title'
    description = 'meta description'

but neither seem to do the trick. The goal would be to either set these defaults using a mixin or something in the settings file so I don't have to set these properties on every single view for websites I build. Any help or suggestions would be appreciated, but if it's not possible I can definitely contribute to this project to make it so.

Thanks

@yakky
Copy link
Member

yakky commented Dec 31, 2017

@rrgrs sorry it took me so long to reply to you
I'm a bit surprised the above approach does not work out of the box, thus I need to dive into it a bit before providing an answer.
Have you made further progresses in the meantime?
It's a totally valid use case and I am willing to support it in the easiest possible way

@yakky yakky added this to the 1.5 milestone Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants