Skip to content

Commit

Permalink
Updates for seo on default
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHammond committed Jan 18, 2024
1 parent f77cd8e commit ff7b9ff
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,36 @@
{% endif %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<title>
{% if paginator.page %}
{% if paginator.page > 1 %}
Page {{ paginator.page }} of {{ paginator.total_pages }} -
{% endif %}
{% endif %}
{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %}

</title>
<link rel="icon" href="{{ site.baseurl }}{{ site.favicon }}">

{% seo %}
{% if page.keywords %}
<meta name="keywords" content="{{ page.keywords }}">
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
<meta property="og:image" content="{{ site.url }}{% if page.image %}{% picture direct {{ page.image }} %}{% else %}{{ site.header-img }}{% endif %}" />
{% if page.type %}
<meta property="og:type" content="{{ page.type }}" />
{% else %}
<meta property="og:type" content="article" />
{% endif %}
<meta property="og:title" content="{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %}" />
{% if page.description %}
<meta property="og:description" content="{{ page.description }}" />
<meta name="description" content="{{ page.description }}">
{% else %}
<meta property="og:description" content="{{ site.description }}" />
<meta name="description" content="{{ site.description }}">
{% endif %}
{% assign cacheBust = site.time | date:'?v=%s' %}

<meta name="keywords" content="{{ page.keywords }}">
<link rel="canonical" href="{{ site.url }}{{ page.url | replace:'index.html' }}">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">

Expand Down

0 comments on commit ff7b9ff

Please sign in to comment.