Skip to content

Commit

Permalink
chore: Removed navigation plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
holmey committed Jan 11, 2024
1 parent d60b98a commit 84f2537
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 79 deletions.
26 changes: 18 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
{
"name": "fork/kirby-starterkit",
"description": "Kirby Starterkit",
"type": "project",
"keywords": [
"kirby",
"cms",
"starterkit"
],
"authors": [
{
"name": "Fork Unstable Media GmbH",
"homepage": "https://fork.de"
}
],
"homepage": "https://fork.de",
"require": {
"getkirby/cms": "^4.0.0",
"getkirby/staticache": "^1.0.0",
"getkirby/cms": "^4.0",
"getkirby/staticache": "^1.0",
"arnoson/kirby-vite": "^5.0",
"tobimori/kirby-seo": "^0.4.0",
"belugadigital/kirby-navigation": "^3.0"
"tobimori/kirby-seo": "^0.4"
},
"config": {
"optimize-autoloader": true,
"allow-plugins": {
"getkirby/composer-installer": true
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.17",
"phpstan/phpstan": "^1.10.15"
}
}
47 changes: 1 addition & 46 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 7 additions & 13 deletions content/site.en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,17 @@ Title: Flat
Navigation:

-
children: [ ]
id: articles
text: Articles
url: /articles
uuid: tpzts37woj
-
text: About us
link: page://5rloRGTSSdv6jmtd
children: [ ]
id: about-us
text: About us
url: /about-us
uuid: bsmki0yd90j
-
text: Articles
link: page://OfWmF3KRUe9dLMGn
children: [ ]
id: articles
text: Articles
url: /articles
uuid: vx2trbbbgn

Expand All @@ -28,19 +24,17 @@ Navigation:
Footernavigation:

-
children: [ ]
id: home
text: Home
url: /
uuid: irisl6z2k4g
link: page://OZY1JtRhNfCnKX5H

----

Metanavigation:

-
children: [ ]
text: Fork Unstable Media
link: https://fork.de
children: [ ]
url: https://fork.de
popup: true
uuid: 2lokfny4ti8
Expand Down
44 changes: 38 additions & 6 deletions site/blueprints/sections/globals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,53 @@ fields:
type: headline
navigation:
label: Navigation
type: navigation
levels: 2
type: structure
fields:
text:
label: Text
type: text
required: true
link:
label: Link
type: link
required: true
options:
- page

footer:
label: Footer
type: headline
footerNavigation:
label: Footer Navigation
type: navigation
levels: 1
type: structure
fields:
text:
label: Text
type: text
required: true
link:
label: Link
type: link
required: true
options:
- page
- url
width: 1/2
metaNavigation:
label: Meta Navigation
type: navigation
levels: 1
type: structure
fields:
text:
label: Text
type: text
required: true
link:
label: Link
type: link
required: true
options:
- page
- url
width: 1/2
footerText:
extends: fields/writer/default
Expand Down
6 changes: 2 additions & 4 deletions site/snippets/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
<li>
<?php snippet('components/link', [
'text' => $item->text(),
'href' => $item->url(),
'target' => $item->popup()->toBool(), '_blank', '_self',
'href' => $item->link()->toUrl(),
'current' => $item->url()->value() === kirby()->url('current'),
]) ?>
</li>
Expand All @@ -32,8 +31,7 @@
<li>
<?php snippet('components/link', [
'text' => $item->text(),
'href' => $item->url(),
'target' => $item->popup()->toBool(), '_blank', '_self',
'href' => $item->link()->toUrl(),
'current' => $item->url()->value() === kirby()->url('current'),
]) ?>
</li>
Expand Down
3 changes: 1 addition & 2 deletions site/snippets/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
<li>
<?php snippet('components/link', [
'text' => $item->text(),
'href' => $item->url(),
'target' => $item->popup()->toBool(), '_blank', '_self',
'href' => $item->link()->toUrl(),
'current' => $item->url()->value() === kirby()->url('current'),
]) ?>
</li>
Expand Down

0 comments on commit 84f2537

Please sign in to comment.