From 16cbe14ed1c0314c3fb912f2251651d95238e94e Mon Sep 17 00:00:00 2001 From: HerrHase Date: Tue, 12 Oct 2021 12:24:53 +0200 Subject: [PATCH] adding #4 --- resources/views/layout.blade.php | 5 ++++- resources/views/partials/meta.blade.php | 5 +++++ snapshot.yaml | 23 ++++++++++++++++------- 3 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 resources/views/partials/meta.blade.php diff --git a/resources/views/layout.blade.php b/resources/views/layout.blade.php index 640842f..ccf6257 100644 --- a/resources/views/layout.blade.php +++ b/resources/views/layout.blade.php @@ -2,7 +2,7 @@ @inject('markdownHelper', 'App\Helpers\MarkdownHelper') - + @@ -10,7 +10,10 @@ Elina Penner | {{ $page['data']['title'] }} + @include('partials.meta') + + diff --git a/resources/views/partials/meta.blade.php b/resources/views/partials/meta.blade.php new file mode 100644 index 0000000..cec14f5 --- /dev/null +++ b/resources/views/partials/meta.blade.php @@ -0,0 +1,5 @@ +@if (isset($page['data']['meta'])) + @foreach($page['data']['meta'] as $meta) + + @endforeach +@endif \ No newline at end of file diff --git a/snapshot.yaml b/snapshot.yaml index 5896ea5..f0b79d0 100644 --- a/snapshot.yaml +++ b/snapshot.yaml @@ -20,7 +20,7 @@ collections: item_duplication_fields: null schema: name: menu_items - schema: db + schema: db787832552465385 comment: '' collation: utf8_general_ci engine: InnoDB @@ -43,7 +43,7 @@ collections: item_duplication_fields: null schema: name: menus_menu_items - schema: db + schema: db787832552465385 comment: '' collation: utf8_general_ci engine: InnoDB @@ -66,7 +66,7 @@ collections: item_duplication_fields: null schema: name: snippets - schema: db + schema: db787832552465385 comment: '' collation: utf8_general_ci engine: InnoDB @@ -89,7 +89,7 @@ collections: item_duplication_fields: null schema: name: posts - schema: db + schema: db787832552465385 comment: '' collation: utf8_general_ci engine: InnoDB @@ -112,7 +112,7 @@ collections: item_duplication_fields: null schema: name: menus - schema: db + schema: db787832552465385 comment: '' collation: utf8_general_ci engine: InnoDB @@ -135,7 +135,7 @@ collections: item_duplication_fields: null schema: name: pages - schema: db + schema: db787832552465385 comment: '' collation: utf8_general_ci engine: InnoDB @@ -1917,9 +1917,18 @@ fields: meta: field: name type: string - interface: input + interface: select-dropdown options: trim: true + allowOther: true + allowNone: true + choices: + - text: description + value: description + - text: robots + value: robots + - text: author + value: author - field: content name: content type: text