Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
hursey013 committed Feb 16, 2024
1 parent ec01e7c commit c7128e2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions _includes/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Title and meta description
================================================== -->
{% capture title %}{%- if page.title -%}{{ page.title | strip_html }} | {% endif -%}{{ site.title }}{% endcapture %}
{% capture title %}
{%- if page.title -%}{{- page.title | strip_html }} | {% endif -%}{{ site.title -}}
{% endcapture %}
{% capture description %}
{%- if page.url == "/" -%}
{{ site.description }}
{{- site.description -}}
{%- elsif page.description -%}
{{ page.description | truncate: 160 }}
{{- page.description | truncate: 160 -}}
{%- else -%}
{{ page.content | markdownify | strip | strip_html | strip_newlines | truncate: 160 }}
{{- page.content | markdownify | strip_html | normalize_whitespace | strip | truncate: 160 -}}
{%- endif -%}
{% endcapture %}

<title>{{title}}</title>
<meta property="og:title" content="{{title}}">
<meta name="description" content="{{description}}">
Expand Down

0 comments on commit c7128e2

Please sign in to comment.