Skip to content

Commit

Permalink
Merge pull request #6 from szepeviktor/patch-1
Browse files Browse the repository at this point in the history
Reorder head elements in base.html
  • Loading branch information
adamlaki authored Mar 2, 2024
2 parents 66e868d + e6572e3 commit 8d80e49
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
10 changes: 6 additions & 4 deletions src/_includes/layout/base.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="/js/theme-detection.js"></script>
{% include "partial/preload.html" %}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="alternate" type="application/rss+xml" href="{{ site.url }}/feed.xml" />
<meta http-equiv="X-UA-Compatible" content="ie=edge">
{% include "partial/meta.html" %}
<link rel="alternate" type="application/rss+xml" href="{{ site.url }}/feed.xml">

<script src="/js/theme-detection.js"></script>
{% include "partial/preload.html" %}

<link rel="stylesheet" href="/css/main.css">
</head>
<body>
Expand Down
28 changes: 14 additions & 14 deletions src/_includes/partial/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@
{% endif %}

<title>{{ pageTitle }}</title>
<link rel="canonical" href="{{ currentUrl }}" />
<link rel="canonical" href="{{ currentUrl }}">

<meta name="generator" content="{{ eleventy.generator }}" />
<meta name="generator" content="{{ eleventy.generator }}">

<meta property="og:site_name" content="{{ siteTitle }}" />
<meta property="og:title" content="{{ pageTitle }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ currentUrl }}" />
<meta property="og:site_name" content="{{ siteTitle }}">
<meta property="og:title" content="{{ pageTitle }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ currentUrl }}">

{% if socialImage %}
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:image" content="{{ socialImage }}" />
<meta name="twitter:image" content="{{ socialImage }}" />
<meta property="og:image:alt" content="Page image for {{ site.name }}" />
<meta name="twitter:image:alt" content="Page image for {{ site.name }}" />
<meta name="twitter:card" content="summary_large_image">
<meta property="og:image" content="{{ socialImage }}">
<meta name="twitter:image" content="{{ socialImage }}">
<meta property="og:image:alt" content="Page image for {{ site.name }}">
<meta name="twitter:image:alt" content="Page image for {{ site.name }}">
{% endif %}

{% if metaDesc %}
<meta name="description" content="{{ metaDesc }}" />
<meta name="twitter:description" content="{{ metaDesc }}" />
<meta property="og:description" content="{{ metaDesc }}" />
<meta name="description" content="{{ metaDesc }}">
<meta name="twitter:description" content="{{ metaDesc }}">
<meta property="og:description" content="{{ metaDesc }}">
{% endif %}

<link rel="apple-touch-icon" sizes="180x180" href="/img/favicon/apple-touch-icon.png">
Expand Down

0 comments on commit 8d80e49

Please sign in to comment.