From 5ff1a269d7c17d08ad706271e9685167d8da1684 Mon Sep 17 00:00:00 2001 From: HackerNCoder Date: Tue, 1 Nov 2022 10:40:23 +0000 Subject: [PATCH] Allow for changing OGP title and desc --- content/projects/butterflysoup/contents.lr | 4 +++- content/projects/butterflysoup2/contents.lr | 4 +++- content/projects/lucahboad/contents.lr | 4 +++- models/project.ini | 5 +++++ templates/meta.html | 10 +++++----- templates/project.html | 3 +++ 6 files changed, 22 insertions(+), 8 deletions(-) diff --git a/content/projects/butterflysoup/contents.lr b/content/projects/butterflysoup/contents.lr index a254c55..3890d01 100644 --- a/content/projects/butterflysoup/contents.lr +++ b/content/projects/butterflysoup/contents.lr @@ -6,9 +6,11 @@ sort_key: 2 --- title: Butterfly Soup --- -body: +shortbody: Butterfly Soup is a romantic sports visual novel about four LGBT+ Asian-American teens playing baseball and falling in love. +--- +body: With California’s 2008 Proposition 8 debate as a backdrop, the story switches through the perspectives of Diya, Noelle, Akarsha, and Min-seo as they navigate high school life in the San Francisco Bay Area. --- diff --git a/content/projects/butterflysoup2/contents.lr b/content/projects/butterflysoup2/contents.lr index b4bc39b..d9cabe8 100644 --- a/content/projects/butterflysoup2/contents.lr +++ b/content/projects/butterflysoup2/contents.lr @@ -6,9 +6,11 @@ sort_key: 0 --- title: Butterfly Soup 2 --- -body: +shortbody: A sequel to Butterfly Soup, a romantic sports visual novel about gay Asian-American teens playing baseball and falling in love. +--- +body: Set a few months after the events of the original story, the game switches between the perspectives of Diya, Noelle, Akarsha, and Min-seo as they navigate high school life in the San Francisco Bay Area --- diff --git a/content/projects/lucahboad/contents.lr b/content/projects/lucahboad/contents.lr index 451f59c..c1e3cb6 100644 --- a/content/projects/lucahboad/contents.lr +++ b/content/projects/lucahboad/contents.lr @@ -6,9 +6,11 @@ sort_key: 1 --- title: Lucah Born Of A Dream --- -body: +shortbody: HACK, SLASH, ASCEND. Lucah: Born of a Dream is a harrowing struggle through our worst nightmares. +--- +body: You have been MARKED, cursed to have your inner demons come to life as vicious Nightmares. After awakening a false god, you must atone. Traverse the hellish realm of dreams, endure the nightmare onslaught, and uncover the strength to accept yourself. --- diff --git a/models/project.ini b/models/project.ini index b55cb1f..6029e37 100644 --- a/models/project.ini +++ b/models/project.ini @@ -18,6 +18,11 @@ label = Title type = string translate = False +[fields.shortbody] +label = Short Body +type = markdown +translate = True + [fields.body] label = Body type = markdown diff --git a/templates/meta.html b/templates/meta.html index 65a63b2..ef0bc3a 100644 --- a/templates/meta.html +++ b/templates/meta.html @@ -1,20 +1,20 @@ - + - + - + - - + + {{ this.title }} diff --git a/templates/project.html b/templates/project.html index 1ef7d66..66ca77e 100644 --- a/templates/project.html +++ b/templates/project.html @@ -1,4 +1,6 @@ {% extends "layout.html" %} +{% block ogpdesc %}{{ this.shortbody }}{% endblock %} +{% block ogptitle %}{{ this.title }} | Queerscriptors{% endblock %} {% block page %} {% include 'header.html' %}
@@ -9,6 +11,7 @@

{{ _("Project Description") }}

+

{{this.shortbody}}

{{this.body}}

{{ _("Weblate status") }}