Skip to content
Open
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
Binary file added assets/opengraph.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions content/_data/site.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Linux Society UNSW Wiki",
"url": "https://wiki.linuxunsw.org",
"description": "The official wiki of Linux Society UNSW.",
"image": "/assets/opengraph.jpg",
"imageAlt": "Linux Society UNSW Wiki"
}
28 changes: 28 additions & 0 deletions content/_includes/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,34 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }}</title>

{% set pageDescription = description or site.description %}
{% set pageImage = image or site.image %}
<meta name="description" content="{{ pageDescription }}">

<meta property="og:site_name" content="{{ site.name }}" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ pageDescription }}" />
<meta property="og:url" content="{{ site.url + page.url }}" />
{% if authors and authors.length %}
<meta property="og:type" content="article" />
{% else %}
<meta property="og:type" content="website" />
{% endif %}

<meta property="og:image" content="{{ site.url + pageImage }}" />
<meta property="og:image:alt" content="{{ imageAlt or site.imageAlt }}" />
<meta property="og:locale" content="en_AU" />
{% if authors and authors.length %}
{% for person in authors %}
<meta property="article:author" content="https://github.com/{{ person }}" />
{% endfor %}
{% endif %}

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ title }}" />
<meta name="twitter:description" content="{{ pageDescription }}" />
<meta name="twitter:image" content="{{ site.url + pageImage }}" />

<link rel="stylesheet" href="/style/style.css">
<link rel="preconnect" href="https://api.fontshare.com" crossorigin>
<link rel="preload" as="text" type="text/css" crossorigin
Expand Down
2 changes: 1 addition & 1 deletion content/eduroam.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: eduroam
title: "how do i connect to eduroam on $distro?"
title: "How do I connect to eduroam on $distro?"
aliases: []
tags: []
authors:
Expand Down
2 changes: 1 addition & 1 deletion content/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: linux society wiki
title: Linux Society Wiki
layout: base.njk
---

Expand Down
2 changes: 1 addition & 1 deletion content/iot.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: iot
title: "how do i connect to UNSW-IoT?"
title: "How do I connect to UNSW-IoT?"
aliases: []
tags: []
authors:
Expand Down
Loading