Skip to content

Commit

Permalink
Fix meta description on news page (#2545)
Browse files Browse the repository at this point in the history
* Fix meta description on news page

Signed-off-by: Brian Hurst <[email protected]>

* Update meta.html

Signed-off-by: Brian Hurst <[email protected]>

* Same for knowledgebase

Signed-off-by: Brian Hurst <[email protected]>

---------

Signed-off-by: Brian Hurst <[email protected]>
  • Loading branch information
hursey013 authored Oct 2, 2024
1 parent f6c935e commit 440c781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{%- if page.title -%}{{- page.title | strip_html }} | {% endif -%}{{ site.title -}}
{% endcapture %}
{% capture description %}
{%- if page.url == "/" -%}
{%- if page.url == "/" or page.url == "/news/index.html" or page.url == "/knowledge-base/index.html" -%}
{{- site.description -}}
{%- elsif page.description -%}
{{- page.description | truncate: 160 -}}
Expand Down

0 comments on commit 440c781

Please sign in to comment.