Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add titles to pages and print them in the head #16

Merged
merged 1 commit into from
Jun 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
9 changes: 5 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# General configuration
url: "https://www.openra.net"
baseurl: ""
title: OpenRA
description: >-
OpenRA is an open source project that recreates and modernizes classic real time strategy games, like Red Alert, Command & Conquer, and Dune 2000.
tagline: >-
Classic strategy games rebuilt for the modern era
twitter_username: OpenRA
github_username: OpenRA
permalink: /:categories/:title/index.html
Expand Down Expand Up @@ -28,10 +33,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.title %}
{{ page.title }} | {{ site.title }}
{% else %}
{{ site.title }} - {{ site.tagline }}
{% 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