question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

default meta description value

See original GitHub issue

When you start fresh project (wagtail 4.1.1) then you get some nice default file. In your templates you will find base.html and will see that the title of the page is already filled in to the common pattern you will use for wagtail But the default meta description is empty. You can have several meta description strategies but in wagtail we have a dedicated field. Maybe this should be in the default markup then

<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>
            {% block title %}
            {% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}
            {% endblock %}
            {% block title_suffix %}
            {% wagtail_site as current_site %}
            {% if current_site and current_site.site_name %}- {{ current_site.site_name }}{% endif %}
            {% endblock %}
        </title>
        <meta name="description" content="" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />

to

<meta name="description" content="{{ page.search_description }}" />

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
lb-commented, Dec 7, 2022

Awesome @salty-ivy - I have marked it as needing a review

0reactions
gasmancommented, Dec 8, 2022

Fixed in #9764

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to create the right meta description - Yoast
Characteristics of a good meta description · 1. Keep it up to 155 characters. The right length doesn't really exist; it depends on...
Read more >
What Are Meta Descriptions And How to Write Them - Moz
Optimal meta description length. Meta descriptions can technically be any length, but Google generally truncates snippets to ~155-160 characters. It's best to ...
Read more >
What is a meta description - complex SEO guide | Spotibo - Blog
Learn everything about meta description length, its generating by the search engines ... Therefore, Google used a default meta description in the snippet....
Read more >
Meta Tags and Attributes that Google Supports | Documentation
Google supports both page-level meta tags and tag attributes. ... The default values are index, follow and don't need to be specified.
Read more >
HTML meta tag - W3Schools
Describe metadata within an HTML document: ... content, text, Specifies the value associated with the http-equiv or name attribute ... default-style
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found