Allow for changing OGP title and desc

This commit is contained in:
HackerNCoder 2022-11-01 10:40:23 +00:00
parent d58f02e021
commit 5ff1a269d7
6 changed files with 22 additions and 8 deletions

View file

@ -6,9 +6,11 @@ sort_key: 2
--- ---
title: Butterfly Soup 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. Butterfly Soup is a romantic sports visual novel about four LGBT+ Asian-American teens playing baseball and falling in love.
---
body:
With Californias 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. With Californias 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.
--- ---

View file

@ -6,9 +6,11 @@ sort_key: 0
--- ---
title: Butterfly Soup 2 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. 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 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
--- ---

View file

@ -6,9 +6,11 @@ sort_key: 1
--- ---
title: Lucah Born Of A Dream title: Lucah Born Of A Dream
--- ---
body: shortbody:
HACK, SLASH, ASCEND. Lucah: Born of a Dream is a harrowing struggle through our worst nightmares. 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. 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.
--- ---

View file

@ -18,6 +18,11 @@ label = Title
type = string type = string
translate = False translate = False
[fields.shortbody]
label = Short Body
type = markdown
translate = True
[fields.body] [fields.body]
label = Body label = Body
type = markdown type = markdown

View file

@ -1,20 +1,20 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="{{ _("A community of people that translate queer games") }}" /> <meta name="description" content="{% block ogpdesc %}{{ _("A community of people that translate queer games") }}{% endblock %}" />
<!-- Open Graph Protocol --> <!-- Open Graph Protocol -->
<meta name="og:title" content="Queerscriptors" /> <meta name="og:title" content="{% block ogptitle %}Queerscriptors{% endblock %}" />
<meta name="og:type" content="website" /> <meta name="og:type" content="website" />
<meta name="og:image" content="{{ this.ogpimage|url(absolute=True,external=True) }}" /> <meta name="og:image" content="{{ this.ogpimage|url(absolute=True,external=True) }}" />
<meta name="og:url" content="{{ '.'|url(absolute=True,external=True) }}" /> <meta name="og:url" content="{{ '.'|url(absolute=True,external=True) }}" />
<meta name="og:description" content="{{ _("A community of people that translate queer games") }}" /> <meta name="og:description" content="{% block ogpdesc %}{{ _("A community of people that translate queer games") }}{% endblock %}" />
<!-- Twitter card (OGP equv) --> <!-- Twitter card (OGP equv) -->
<meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:domain" content="queerscriptors.org" /> <meta name="twitter:domain" content="queerscriptors.org" />
<meta name="twitter:url" content="{{ '.'|url(absolute=True,external=True) }}" /> <meta name="twitter:url" content="{{ '.'|url(absolute=True,external=True) }}" />
<meta name="twitter:title" content="Queerscriptors" /> <meta name="twitter:title" content="{% block ogptitle %}Queerscriptors{% endblock %}" />
<meta name="twitter:description" content="{{ _("A community of people that translate queer games") }}" /> <meta name="twitter:description" content="{% block ogpdesc %}{{ _("A community of people that translate queer games") }}{% endblock %}" />
<meta name="twitter:image" content="{{ this.ogpimage|url(absolute=True,external=True) }}" /> <meta name="twitter:image" content="{{ this.ogpimage|url(absolute=True,external=True) }}" />
<title>{{ this.title }}</title> <title>{{ this.title }}</title>

View file

@ -1,4 +1,6 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block ogpdesc %}{{ this.shortbody }}{% endblock %}
{% block ogptitle %}{{ this.title }} | Queerscriptors{% endblock %}
{% block page %} {% block page %}
{% include 'header.html' %} {% include 'header.html' %}
<div class="container my-5 pt-5"> <div class="container my-5 pt-5">
@ -9,6 +11,7 @@
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<h3 class="my-3">{{ _("Project Description") }}</h3> <h3 class="my-3">{{ _("Project Description") }}</h3>
<p>{{this.shortbody}}</p>
<p>{{this.body}}</p> <p>{{this.body}}</p>
<h3 class="my-3">{{ _("Weblate status") }}</h3> <h3 class="my-3">{{ _("Weblate status") }}</h3>
<a class="crop" href="https://littleroot.net/weblate/engage/{{ this.weblate }}/"> <a class="crop" href="https://littleroot.net/weblate/engage/{{ this.weblate }}/">