og metatags added
This commit is contained in:
parent
31319c6dd9
commit
ab3123d167
|
@ -2,6 +2,7 @@
|
||||||
separator_char = ;
|
separator_char = ;
|
||||||
timezone = Europe/Berlin
|
timezone = Europe/Berlin
|
||||||
mail = abgame@21x9.org
|
mail = abgame@21x9.org
|
||||||
|
base_url = https://ab.21x9.org
|
||||||
|
|
||||||
[i18n]
|
[i18n]
|
||||||
lang = de
|
lang = de
|
||||||
|
@ -11,3 +12,4 @@ separator = oder
|
||||||
questions_prefix = Es gibt derzeit
|
questions_prefix = Es gibt derzeit
|
||||||
questions_suffix = Fragen.
|
questions_suffix = Fragen.
|
||||||
send_questions = Einreichen!
|
send_questions = Einreichen!
|
||||||
|
desc = Ein simples Entweder/Oder-Entscheidungsspiel
|
||||||
|
|
4
game.py
4
game.py
|
@ -65,11 +65,13 @@ def hello():
|
||||||
title = config.get('i18n', 'title')
|
title = config.get('i18n', 'title')
|
||||||
mail = config.get('main', 'mail')
|
mail = config.get('main', 'mail')
|
||||||
more = config.get('i18n', 'more')
|
more = config.get('i18n', 'more')
|
||||||
|
desc = config.get('i18n', 'desc')
|
||||||
questions_prefix = config.get('i18n', 'questions_prefix')
|
questions_prefix = config.get('i18n', 'questions_prefix')
|
||||||
questions_suffix = config.get('i18n', 'questions_suffix')
|
questions_suffix = config.get('i18n', 'questions_suffix')
|
||||||
send_questions = config.get('i18n', 'send_questions')
|
send_questions = config.get('i18n', 'send_questions')
|
||||||
separator = config.get('i18n', 'separator')
|
separator = config.get('i18n', 'separator')
|
||||||
separator_char = config.get('main', 'separator_char')
|
separator_char = config.get('main', 'separator_char')
|
||||||
|
url = config.get('main', 'base_url')
|
||||||
ablines = []
|
ablines = []
|
||||||
|
|
||||||
now = datetime.now(tz=tz)
|
now = datetime.now(tz=tz)
|
||||||
|
@ -91,7 +93,7 @@ def hello():
|
||||||
with open("ab.txt", "r") as f:
|
with open("ab.txt", "r") as f:
|
||||||
num_lines = sum(1 for _ in f)
|
num_lines = sum(1 for _ in f)
|
||||||
|
|
||||||
return render_template('index.html', title=title, separator=separator, content=ablines, num_lines=num_lines, epoch=epoch, mailto=mail, more=more, questions_prefix=questions_prefix, questions_suffix=questions_suffix, send_questions=send_questions, lang=lang)
|
return render_template('index.html', title=title, separator=separator, content=ablines, num_lines=num_lines, epoch=epoch, mailto=mail, more=more, questions_prefix=questions_prefix, questions_suffix=questions_suffix, send_questions=send_questions, lang=lang, url=url, desc=desc)
|
||||||
|
|
||||||
def getContent():
|
def getContent():
|
||||||
lines = [a.strip() for a in open("ab.txt", "r").readlines()]
|
lines = [a.strip() for a in open("ab.txt", "r").readlines()]
|
||||||
|
|
|
@ -12,6 +12,12 @@
|
||||||
<meta name="theme-color" content="#ffffff">
|
<meta name="theme-color" content="#ffffff">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
|
<meta property="og:title" content="{{ title }}">
|
||||||
|
<meta property="og:site_name" content="{{ title }}">
|
||||||
|
<meta property="og:url" content="{{ url }}">
|
||||||
|
<meta property="og:description" content="{{ desc }}">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:image" content="{{ url_for('static', filename='ab.jpg') }}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
|
|
Loading…
Reference in New Issue