Skip to content

Commit

Permalink
Add titles to pages and print them in the head
Browse files Browse the repository at this point in the history
This also changes and moves the global site.title and site.description variables.
These variables are intended for use as global site properties and should
not be limited to just the feed.
  • Loading branch information
dragunoff committed May 28, 2021
1 parent 4b368f2 commit a4425c1
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Page Not Found"
permalink: /404.html
---

Expand Down
7 changes: 3 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# General configuration
url: "https://www.openra.net"
baseurl: ""
title: OpenRA - Classic strategy games rebuilt for the modern era
description: >
OpenRA is an open source project that recreates and modernizes classic real time strategy games, like Red Alert, Command & Conquer, and Dune 2000.
twitter_username: OpenRA
github_username: OpenRA
permalink: /:categories/:title/index.html
Expand Down Expand Up @@ -28,10 +31,6 @@ plugins:
- jekyll-github-metadata

# jekyll-feed configuration
title: OpenRA - News Feed
description: >- # this means to ignore newlines until "baseurl:"
Classic strategy games rebuilt for the modern era
feed:
path: /news/atom/index.xml

Expand Down
9 changes: 8 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@
<!-- query param at the end is for cache busting if/when more dynamic social images are added -->
<meta name="twitter:image" content="{{ '/images/social.jpg' | relative_url }}?t={{ site.time | date: "%Y-%m-%d-%H-%M" }}">

<title>OpenRA - Classic strategy games rebuilt for the modern era</title>
{% capture page_title %}
{% if page.url == '/' %}
{{ site.title }}
{% else %}
{{ page.title }} | OpenRA
{% endif %}
{% endcapture %}
<title>{{ page_title | strip }}</title>
<link rel="stylesheet" href="{{ '/styles/normalize.css' | relative_url }}" />
<link rel="stylesheet" href="{{ '/styles/index.css' | relative_url }}" />
<link rel="stylesheet" href="{{ '/styles/lite-youtube-embed.css' | relative_url }}" />
Expand Down
1 change: 1 addition & 0 deletions about.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "About"
permalink: "/about/"
---

Expand Down
1 change: 1 addition & 0 deletions community.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Community"
permalink: "/community/"
---

Expand Down
1 change: 1 addition & 0 deletions download.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Download"
permalink: "/download/"
js:
- /scripts/download.js
Expand Down
1 change: 1 addition & 0 deletions games.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Server Browser"
permalink: "/games/"
js:
- /scripts/vendor/popper.js
Expand Down
1 change: 1 addition & 0 deletions legal.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Legal"
permalink: "/legal/"
---

Expand Down
1 change: 1 addition & 0 deletions news/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "News Archive"
layout: "default"
---

Expand Down
1 change: 1 addition & 0 deletions players.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Player Statistics"
permalink: "/players/"
js:
- /scripts/server-browser.js
Expand Down

0 comments on commit a4425c1

Please sign in to comment.