Skip to content

Commit aad5826

Browse files
authored
Merge pull request #10 from diesdasdigital/develop
Add option to switch order of page and site title in title tag
2 parents 414a849 + 96ea17c commit aad5826

File tree

6 files changed

+9961
-8
lines changed

6 files changed

+9961
-8
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ This plugin was originally developed at [diesdas.digital] by Jonathan Muth, Lore
1717

1818
We'd also like to thank @distantnative for his help along the way! Without him this plugin wouldn't be what it is today.
1919

20+
## Config options
21+
22+
By default the *Page Title* will be rendered before the *Site Title*. Resulting in a title tag that looks like this: `<title>Page Title – Site Title</title>`. If you want the *Site Title* to come first, simply add the following lines to your Kirby `config.php` file:
23+
24+
```
25+
'diesdasdigital.meta-knight' => [
26+
'siteTitleAfterPageTitle' => false,
27+
],
28+
```
29+
30+
You'll then get a title tag that looks like this: `<title>Site Title – Page Title</title>`.
31+
2032
---
2133

2234
## Installation

index.css

Lines changed: 207 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)