SEO and Django with title and description tags

0 votes
I have a base.html for the base template for my files. I have a tag inside it where I define both title & description tags.
I also have my home page that is home.html and it doesn't need a specific title or description a general one is enough .
I also have detail.html used for blog posts and I try to improve the seo with this

 :<meta name="description"
 content="{{ blog.formatted_summary|striptags }}">

<title>{{ blog.title|safe }}</title>

I am  defining both title and description twice and I can't think why that would be a good idea. How do I insert the title and description into the base.html so if it is a blog post that I can specify to take the body or the summary as a description without defining the properties again?
Mar 8 in Digital Marketing by Kichu
• 19,040 points
88 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Digital Marketing

0 votes
0 answers

Does hiding site title and/or tagline or site description matter SEO?

In so many tutorials and videos I ...READ MORE

Mar 8 in Digital Marketing by Kichu
• 19,040 points
101 views
0 votes
0 answers

Replace tags with space in PHP for SEO Meta Description

I am trying to strip tags from ...READ MORE

Mar 12 in Digital Marketing by Kichu
• 19,040 points
64 views
0 votes
0 answers

Replace tags with space in PHP for SEO Meta Description

I am trying to strip tags from ...READ MORE

Mar 13 in Digital Marketing by Kichu
• 19,040 points
172 views
0 votes
1 answer

Yoast SEO: remove og:description and twitter:description

add_filter("wpseo_opengraph_desc", "remove_yoast_og"); add_filter("wpseo_twitter_description", "remove_yoast_og"); function remove_yoast_og($description) { ...READ MORE

answered Mar 1 in Digital Marketing by narikkadan
• 37,660 points
68 views
0 votes
0 answers

Angular 2 and SEO meta tags

i need to add met tags to ...READ MORE

Mar 6 in Digital Marketing by Kichu
• 19,040 points
92 views
0 votes
0 answers

How does writing heading (h1, h2, h3) tags helps with SEO?

I have heard that using h1 h2 ...READ MORE

Mar 8 in Digital Marketing by Kichu
• 19,040 points
73 views
0 votes
1 answer

how to download and install Django rest framework?

To install Django, you can simply open ...READ MORE

answered Apr 24, 2018 in Python by Christine
• 15,790 points
1,073 views
0 votes
1 answer
0 votes
1 answer

Host not allowed

Go to your project directory cd project cd project ALLOWED_HOSTS ...READ MORE

answered Aug 9, 2018 in AWS by Priyaj
• 58,100 points
1,047 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP