Commit 255bdcac authored by Phu Nguyen's avatar Phu Nguyen

Make better use of title and description

parent b8a9cbaf
......@@ -338,7 +338,9 @@ languages:
parent: menu
url: /themes/
weight: 120
title: Kate | Get an Edge in Editing
params:
description: 'Kate is a modern text editor built on the KDE Frameworks and Qt.'
title: Kate
weight: 1
en-gb:
languageCode: en-gb
......
---
title: Kate
description: "Get an Edge in Editing"
title: 'Kate - Get an Edge in Editing'
name: Kate
subtitle: "Get an Edge in Editing"
menu:
main:
name: Kate
weight: 1
---
{{ define "main" }}
<main id="home">
<section class="text-center py-4 mt-0 header-plasma20" style="background: linear-gradient(-30deg, #00d2ff 0%, #3a47d5 100%);; color: white">
<h1>{{ .Title }}</h1>
<h2>{{ .Description }}</h2>
<h1>{{ .Params.name }}</h1>
<h2>{{ .Params.subtitle }}</h2>
<p>{{ i18n "available" }}</p>
<a href="{{ "/get-it" | relLangURL }}" hreflang="{{ .Site.LanguagePrefix }}" class="learn-more button noblefir my-2 mx-3">{{ i18n "get-it" }}</a>
<div class="laptop-with-overlay d-block my-3 mx-auto w-100" style="max-width: 1000px">
......
......@@ -331,6 +331,16 @@ def extract(args):
except:
pass
entry = polib.POEntry(
msgid=config['languages']['en']['params']['description'],
msgstr=u'',
occurrences=[('config.yaml', '0')]
)
try:
pot.append(entry)
except:
pass
pot.save(pot_file)
......@@ -423,6 +433,8 @@ def generate_translations(args):
config_content['languages'][translations]['menu'] = dict()
config_content['languages'][translations]['menu']['main'] = list()
config_content['languages'][translations]['languageCode'] = translations
config_content['languages'][translations]['params'] = dict()
config_content['languages'][translations]['params']['description'] = _(config_content['languages']['en']['params']['description'])
config_content['languages'][translations]['title'] = _(config_content['languages']['en']['title'])
config_content['languages'][translations]['weight'] = 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment