Skip to content

Commit

Permalink
<title> for search results pages, fixes #110
Browse files Browse the repository at this point in the history
  • Loading branch information
phette23 committed Feb 22, 2021
1 parent bbbdcdd commit 2c2353c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libraries/libraries/templates/components/head/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>{% block title %}
{% if self.seo_title %}{{ self.seo_title }}{% else %}{{ page.title }}{% endif %}
{% endblock %} | CCA Libraries</title>
<title>{% block title %}{% if self.seo_title %}{{ self.seo_title }}{% elif search_query %}Search: {{search_query|striptags|truncatechars:32}}{% else %}{{ page.title }}{% endif %}{% endblock %} | CCA Libraries</title>
{% if self.search_description %}
<meta name="description" content="{{self.search_description}}" />
<meta property="og:description" content="{{self.search_description}}"/>
Expand Down

0 comments on commit 2c2353c

Please sign in to comment.