Skip to content

Commit 1e10db2

Browse files
committed
title separators as config option
1 parent 9fc1ddb commit 1e10db2

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ composer require fabianmichael/kirby-meta
5151

5252
**Alternative download methods:**
5353

54-
You can also download this repository as ZIP or add the whole repo as a submodule.
54+
You can also download this repository as ZIP or add the whole repo as a submodule.
5555
To run from source, you need to install the dependencies : `composer install`.
5656

5757
### Available configuration options
@@ -77,6 +77,7 @@ The options below have to be set in your `config.php`. Please note that every op
7777
| `robots.imageindex` | `bool` | `true` | Allows crawlers to include images to appear in search results. Can be overriden in global or page-specidic settings from the panel. Requires `robots` option to be `true` for having an effect. |
7878
| `robots.snippet` | `bool` | `true` | Allows crawlers to generate snippets from page content. Can be overriden in global or page-specidic settings from the panel. Requires `robots` option to be `true` for having an effect. |
7979
| `robots.translate` | `bool` | `true` | Allows crawlers offer automated translation of your content. Can be overriden in global or page-specidic settings from the panel. Requires `robots` option to be `true` for having an effect. |
80+
| `title.separators` | `array` | `["~" , "-" , "–" , "—" , ":" , "/", …]` | List of available separator options for the `<title>` tag. The separator can be selected in the panel and is placed between page title and site title. |
8081
| `theme.color` | `string\|null` | `null` | If not empty, will generate a corresponding meta tag used by some browsers for coloring the UI. |
8182
| `panel.view.filter` | Provide a filter function for hiding certain pages from the metadata debug view in the panel. See the Kirby docs on [$pages->filter()](https://getkirby.com/docs/reference/objects/cms/pages/filter) for details. |
8283

blueprints/fields/meta/global-general-group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
'label' => t('fabianmichael.meta.title_separator.label'),
2323
'default' => '',
2424
'placeholder' => '|',
25-
'options' => ["~" , "-" , "" , "" , ":" , "/" , "" , "·" , "" , "~" , "×" , "*" , "", "", "", "<" , ">" , "«" , "»" , "" , "", "♠︎", "♣︎", "♥︎", "♦︎", "", "", "", ""],
25+
'options' => $kirby->option('fabianmichael.meta.title.separators'),
2626
'width' => '1/3',
2727
'help' => t('fabianmichael.meta.title_separator.help'),
2828
],

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fabianmichael/kirby-meta",
33
"type": "kirby-plugin",
4-
"version": "0.2.0-beta",
4+
"version": "0.3.0-beta",
55
"license": "MIT",
66
"description": "Your all-in-one powerhouse for any SEO and metadata needs imaginable.",
77
"authors": [

index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
'robots.snippet' => true,
2727
'robots.translate' => true,
2828

29+
'title.separators' => ['~' , '-' , '' , '' , ':' , '/' , '' , '·' , '' , '~' , '×' , '*' , '', '', '', '<' , '>' , '«' , '»' , '' , '', '♠︎', '♣︎', '♥︎', '♦︎', '', '', '', ''],
2930
'theme.color' => null,
3031

3132
'panel.view.filter' => null,

0 commit comments

Comments
 (0)