Skip to content

Commit

Permalink
Merge pull request #305 from cagov/jbum-fix-meta-description
Browse files Browse the repository at this point in the history
Corrected meta description to use SEO-supplied meta description, if supplied.
  • Loading branch information
jbum authored May 3, 2024
2 parents adaf181 + e99c217 commit 69b0879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/_includes/base-layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<meta content="#000000" name="theme-color">
<title>{% if title %}{{ title | safe }}{% else %}California Office of Data and Innovation{% endif %}{% if title != "Office of Data and Innovation" %} | Office of Data and Innovation{% endif %}</title>

<meta name="description" content="{{ data.og_meta.page_description | striptags }}" />
<meta name="description" content="{% if data.og_meta.meta_description %}{{data.og_meta.meta_description | striptags}}{% else %}{{ data.og_meta.page_description | striptags }}{% endif %}" />
<link rel="icon" href="/img/favicon.png">
<link rel="alternate" type="application/atom+xml" title="RSS Feed ODI Blog" href="/feed.xml" />
{%- if tags | includes("do-not-crawl") %}
Expand Down

0 comments on commit 69b0879

Please sign in to comment.