Skip to content

Commit

Permalink
Add descriptions and OpenGraph meta
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed May 8, 2023
1 parent 84e5b1f commit 3e72d7e
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 6 deletions.
18 changes: 13 additions & 5 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
{% if page.homepage %}
Minetest - {{ page.title }}
{% else %}
{{ page.title }} - Minetest
{% endif %}
{{ page.title }}
{% unless page.title_append == false %}- Minetest {% endunless %}
</title>
<link rel="canonical" href="https://www.minetest.net{{ page.url }}">
<meta name="og:url" content="https://www.minetest.net{{ page.url }}">
<meta name="og:title" content="{{ page.title | escape }}">
<meta name="og:site_name" content="Minetest">
{% if page.description %}
<meta name="og:description" content="{{ page.description | escape | strip }}">
<meta name="description" content="{{ page.description | escape | strip }}">
{% endif %}
{% if page.image %}
<meta name="og:image" content="{{ page.image | absolute_url }}">
{% endif %}
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
<link rel="apple-touch-icon" sizes="57x57" href="{{ '/media/favicon/57x57.png' | relative_url }}">
<link rel="apple-touch-icon" sizes="60x60" href="{{ '/media/favicon/60x60.png' | relative_url }}">
Expand Down
1 change: 1 addition & 0 deletions credits.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Credits
description: Key contributors and developers behind the Minetest project
layout: default
redirect_from:
- /credits.html
Expand Down
1 change: 1 addition & 0 deletions downloads.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Downloads
description: Download the latest version of Minetest
layout: default
redirect_from:
- /downloads.html
Expand Down
1 change: 1 addition & 0 deletions education.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Minetest for Education
description: Reasons and resources for using Minetest in education
layout: default
---

Expand Down
2 changes: 2 additions & 0 deletions get-involved.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Get Involved
description: >-
Learn how to get involved with the community or contribute to development.
layout: default
redirect_from:
- /get_involved/
Expand Down
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---
title: Open source voxel game engine
title: Minetest | Open source voxel game engine
description: >-
An open source voxel game engine. Play one of our many games, mod a game to
your liking, make your own game, or play on a multiplayer server.
title_append: false
image: /media/favicon/194x194.png
layout: default
homepage: true
redirect_from:
Expand Down
1 change: 1 addition & 0 deletions servers.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Server list
description: A list of public servers, as shown inside Minetest
layout: default
redirect_from:
- /servers.html
Expand Down

0 comments on commit 3e72d7e

Please sign in to comment.