Skip to content

Commit

Permalink
#5 german translations
Browse files Browse the repository at this point in the history
  • Loading branch information
chraebsli authored May 13, 2024
1 parent c827655 commit 1ab3afd
Show file tree
Hide file tree
Showing 15 changed files with 1,023 additions and 41 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Minimal Theme

The **Minimal** Theme is for [Grav CMS](http://github.com/getgrav/grav).
The **Minimal** Theme is for [Grav CMS](http://github.com/getgrav/grav).

## Description

Expand All @@ -11,3 +11,6 @@ Simple Theme for Grav CMS, depending on Quark and Quark Open Publishing. Minimal
## Features

- makes tables responsive on small screens
- german translations for everything
- enhanced blog options
- more enhancements to the Quark and Quark Open Publishing theme
126 changes: 126 additions & 0 deletions blueprints/blog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
title: Blog Metadata
'@extends':
type: blog
context: blueprints://pages

form:
fields:
tabs:
type: tabs
fields:
blog:
title: TEMPLATE.BLOG.TITLE
fields:

content_title:
type: spacer
title: TEMPLATE.BLOG.CONTENT.TITLE

header.content.items:
type: textarea
yaml: true
label: PLUGIN_ADMIN.ITEMS
default: '@self.children'
validate:
type: yaml

header.content.limit:
type: text
label: TEMPLATE.BLOG.CONTENT_LIMIT.LABEL
default: 5
validate:
required: true
type: int
min: 1

header.content.order.by:
type: select
label: PLUGIN_ADMIN.ORDER_BY
default: date
size: small
options:
folder: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.FOLDER
title: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.TITLE
date: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.DATE
default: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.DEFAULT

header.content.order.dir:
type: select
label: PLUGIN_ADMIN.ORDER
default: desc
size: small
options:
asc: TEMPLATE.PARTIALS.COLLECTION.ORDER_DIR.OPTIONS.ASC
desc: TEMPLATE.PARTIALS.COLLECTION.ORDER_DIR.OPTIONS.DESC

header.content.pagination:
replace-options@: true
type: toggle
label: TEMPLATE.BLOG.CONTENT_PAGINATION.LABEL
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool

header.content.url_taxonomy_filters:
replace-options@: true
type: toggle
label: TEMPLATE.BLOG.CONTENT_TAXONOMY_FILTER.LABEL
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool

appearance:
type: section
title: TEMPLATE.BLOG.APPEARANCE.TITLE
underline: true

header.bricklayer_layout:
replace-options@: true
type: toggle
label: TEMPLATE.BLOG.BRICKLAYER_LAYOUT.LABEL
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool

header.display_post_summary.enabled:
replace-options@: true
type: toggle
label: TEMPLATE.BLOG.POST_SUMMARY.LABEL
highlight: 1
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool

header.post_icon:
type: text
size: small
label: TEMPLATE.BLOG.POST_ICON.LABEL
description: TEMPLATE.BLOG.POST_ICON.DESCRIPTION
help: TEMPLATE.BLOG.POST_ICON.HELP
validate:
type: text

metadata:
type: section
title: TEMPLATE.BLOG.METADATA.TITLE
underline: true

header.metadata:
type: array
label: TEMPLATE.BLOG.METADATA_ITEMS.LABEL
required: true
12 changes: 10 additions & 2 deletions blueprints/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
form:
fields:
tabs:
type: tabs
active: 1
fields:

options:
Expand All @@ -16,3 +14,13 @@ form:
unset@: true
header.hide_git_sync_repo_link:
unset@: true

advanced:
fields:
columns:
fields:
column1:
fields:
header.body_classes:
markdown: true
description: TEMPLATE.DEFAULT.BODY_CLASSES.DESCRIPTION
108 changes: 108 additions & 0 deletions blueprints/item.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
extends@: default

form:
fields:
tabs:
fields:
content:
type: tab
fields:
content:
markdown: true
default: TEMPLATE.ITEM.CONTENT.DEFAULT

blog:
type: tab
title: TEMPLATE.ITEM.BLOG.TITLE
fields:

header_image:
type: section
title: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_SECTION.TITLE
underline: true

header.header_image:
type: toggle
toggleable: true
label: TEMPLATE.ITEM.BLOG.HEADER_IMAGE.LABEL
help: TEMPLATE.ITEM.BLOG.HEADER_IMAGE.HELP
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED

header.header_image_file:
type: text
toggleable: true
label: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_FILE.LABEL
size: medium
help: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_FILE.HELP
placeholder: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_FILE.PLACEHOLDER

header.header_image_width:
type: text
toggleable: true
label: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_WIDTH.LABEL
size: small
help: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_WIDTH.HELP
placeholder: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_WIDTH.PLACEHOLDER
validate:
type: int
min: 0
max: 5000

header.header_image_height:
type: text
toggleable: true
label: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_HEIGHT.LABEL
size: small
help: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_HEIGHT.HELP
placeholder: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_HEIGHT.PLACEHOLDER
validate:
type: int
min: 0
max: 5000

summary:
type: section
title: TEMPLATE.ITEM.BLOG.SUMMARY_SECTION.TITLE
underline: true

header.summary.enabled:
type: toggle
toggleable: true
label: TEMPLATE.ITEM.BLOG.SUMMARY.LABEL
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED

header.summary.format:
type: select
toggleable: true
label: TEMPLATE.ITEM.BLOG.SUMMARY_FORMAT.LABEL
classes: fancy
options:
short: TEMPLATE.ITEM.BLOG.SUMMARY_FORMAT.OPTIONS.SHORT
long: TEMPLATE.ITEM.BLOG.SUMMARY_FORMAT.OPTIONS.LONG

header.summary.size:
type: text
toggleable: true
label: TEMPLATE.ITEM.BLOG.SUMMARY_FORMAT.SUMMARY_SIZE.LABEL
classes: large
placeholder: 300
validate:
type: int
min: 1

header.summary.delimiter:
type: text
toggleable: true
label: TEMPLATE.ITEM.BLOG.SUMMARY_FORMAT.SUMMARY_DELIMITER.LABEL
classes: large
placeholder: ===

import@:
type: partials/blog-bits
context: blueprints://pages
42 changes: 42 additions & 0 deletions blueprints/modular.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
title: PLUGIN_ADMIN.MODULE
extends@: default

form:
fields:
tabs:
type: tabs
active: 1

fields:
content:
fields:

modular_title:
type: spacer
title: PLUGIN_ADMIN.MODULE_SETUP

header.content.items:
type: text
label: PLUGIN_ADMIN.ITEMS
default: '@self.modular'
size: medium

header.content.order.by:
type: select
label: PLUGIN_ADMIN.ORDER_BY
default: date
size: small
options:
folder: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.FOLDER
title: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.TITLE
date: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.DATE
default: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.DEFAULT

header.content.order.dir:
type: select
label: PLUGIN_ADMIN.ORDER
default: desc
size: small
options:
asc: TEMPLATE.PARTIALS.COLLECTION.ORDER_DIR.OPTIONS.ASC
desc: TEMPLATE.PARTIALS.COLLECTION.ORDER_DIR.OPTIONS.DESC
38 changes: 38 additions & 0 deletions blueprints/modular/alert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
title: Alert Style Options
'@extends':
type: default
context: blueprints://pages

form:
fields:
tabs:
type: tabs
active: 1
fields:
content:
fields:
header.alert_color:
ordering@: 1
type: select
size: small
label: TEMPLATE.MODULAR.ALERT.ALERT_COLOR.LABEL
default: blue
options:
yellow: TEMPLATE.MODULAR.ALERT.ALERT_COLOR.OPTIONS.YELLOW
red: TEMPLATE.MODULAR.ALERT.ALERT_COLOR.OPTIONS.RED
blue: TEMPLATE.MODULAR.ALERT.ALERT_COLOR.OPTIONS.BLUE
green: TEMPLATE.MODULAR.ALERT.ALERT_COLOR.OPTIONS.GREEN

options:
fields:
publishing:
fields:
header.published:
default: 1

advanced:
fields:
overrides:
fields:
header.visible:
default: 0
21 changes: 21 additions & 0 deletions blueprints/modular/hero.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
title: Hero
'@extends': default

form:
fields:
tabs:
fields:
buttons:
type: tab
title: Hero
fields:
header.hero_classes:
type: text
label: TEMPLATE.MODULAR.HERO.HERO_CLASSES.LABEL
markdown: true
description: TEMPLATE.MODULAR.HERO.HERO_CLASSES.DESCRIPTION
header.hero_image:
type: filepicker
label: TEMPLATE.MODULAR.HERO.HERO_IMAGE.LABEL
preview_images: true
description: TEMPLATE.MODULAR.HERO.HERO_IMAGE.DESCRIPTION
Loading

0 comments on commit 1ab3afd

Please sign in to comment.