Skip to content

Commit

Permalink
Fix: Metadata sucked. Now, only one set of metadata tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaGameDeveloper committed Aug 11, 2024
1 parent e5d326d commit cd190b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 51 deletions.
13 changes: 5 additions & 8 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<!-- BEGIN TEMPLATE head.html -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="/assets/js/konamirickroll/konamirickroll.min.js"></script>
{% seo %}
{% if page.title %}
<!-- page.title exists, using that. -->
<title>{{ page.title }} &bull; {{ site.title }}</title>
{% else %}
<!-- page.title does not exist, defaulting to site.title -->
<title>{{ site.title }}</title>
{% endif %}

<link href='https://fonts.googleapis.com/css?family=Inconsolata:400,700' rel='stylesheet' type='text/css'>
<link rel="alternate" type="application/rss+xml" title="{{ site.title }} RSS" href="/feed.xml" />
<link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">

<!-- END TEMPLATE head.html -->
40 changes: 1 addition & 39 deletions _includes/metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,6 @@
<title>{{ site.title }}</title>
{% endif %}

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="blog, accent, {{ site.author }}, {{ site.title }}, jekyll">
<meta name="author" content="{{ site.author }}">
{% if page.description %}
{% assign desc = page.description %}
{% else %}
{% assign desc = site.description %}
{% endif %}
{% if page.url %}
{% assign url = site.url | append: site.baseurl | append: page.url %}
{% else %}
{% assign url = site.url | append: site.baseurl | append: page.url %}
{% endif %}
<meta name="description" content="{{ desc }}">
<link href='https://fonts.googleapis.com/css?family=Inconsolata:400,700' rel='stylesheet' type='text/css'>
<link rel="alternate" type="application/rss+xml" title="{{ site.title }} RSS" href="/feed.xml" />
<link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">
{% if site.favicon %}
<!-- Using site.favicon as it is defined -->
<link rel="icon" type="image/ico" href="{{ site.favicon_location }}">
Expand All @@ -34,25 +16,5 @@
<!-- Using site.twitter_username as it is defined -->
<link rel="author" href="https://twitter.com/{{ site.twitter_username }}">
{% endif %}
<!-- Facebook Open Graph -->
<meta name="og:description" content="{{ desc }}">
<meta name="og:title" content="{{ site.title }}">
<meta name="og:url" content="{{ url }}">
<meta name="og:type" content="article">
{% if site.og_image %}
<meta name="og:image" content="{{ site.og_image }}">
{% endif %}
{% if site.facebook_id %}
<meta name="fb:admins" content="{{ site.facebook_id }}">
{% endif %}
<!-- Twitter -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{ site.title }}">
<meta name="twitter:description" content="{{ desc }}">
<meta name="twitter:url" content="{{ url }}">
{% if site.twitter_image %}
<meta name="twitter:image" content="{{ site.twitter_image }}">
{% else %}
<meta name="twitter:image" content="{{ site.profile_picture }}">
{% endif %}
{% seo title=false %}
<!-- END TEMPLATE metadata.html -->
2 changes: 0 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@
</div>

</body>
<footer>
</footer>
2 changes: 0 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,3 @@ <h1>{{ page.title }}</h1>
</div>
<script src="/assets/js/externalLink.js"></script>
</body>
<footer>
</footer>

0 comments on commit cd190b3

Please sign in to comment.