Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

4.2.0

Compare
Choose a tag to compare
@johannschopplich johannschopplich released this 23 May 14:15
· 60 commits to main since this release

This release includes several new features, as well as overall optimizations and simplifications.

Notable Changes

  • Use <script setup> in every Vue.js component
  • Support draft previews from the Kirby Panel
  • Add a example deploy script for usage with Ploi

Use kirby-extended plugin to generate meta tags

SEO-relevant tags are now handled by kirby-extended.

// /site/config/config.php
// See https://github.com/johannschopplich/kirby-extended/blob/main/docs/meta.md
'kirby-extended' => [
    'meta' => [
        'defaults' => function (\Kirby\Cms\App $kirby, \Kirby\Cms\Site $site, \Kirby\Cms\Page $page) {
            $description = $page->description()->or($site->description())->value();

            return [
                'opengraph' => [
                    'image' => '/img/android-chrome-512x512.png'
                ],
                'twitter' => [
                    'image' => '/img/android-chrome-512x512.png'
                ],
                'jsonld' => [
                    'WebSite' => [
                        'url' => $site->url(),
                        'name' => $site->title()->value(),
                        'description' => $description
                    ]
                ]
            ];
        }
    ]
]

Contributors