diff --git a/assets/opengraph.jpg b/assets/opengraph.jpg new file mode 100644 index 0000000..d8581c3 Binary files /dev/null and b/assets/opengraph.jpg differ diff --git a/content/_data/site.json b/content/_data/site.json new file mode 100644 index 0000000..9dbfec9 --- /dev/null +++ b/content/_data/site.json @@ -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" +} diff --git a/content/_includes/base.njk b/content/_includes/base.njk index c1c8ad0..99d824b 100644 --- a/content/_includes/base.njk +++ b/content/_includes/base.njk @@ -5,6 +5,34 @@ {{ title }} + {% set pageDescription = description or site.description %} + {% set pageImage = image or site.image %} + + + + + + + {% if authors and authors.length %} + + {% else %} + + {% endif %} + + + + + {% if authors and authors.length %} + {% for person in authors %} + + {% endfor %} + {% endif %} + + + + + +