From 65e8b7ffc8fdbf54b9edd8622504d775428587d5 Mon Sep 17 00:00:00 2001 From: Mario Linz Date: Wed, 15 Jun 2022 08:57:51 +0200 Subject: [PATCH] =?UTF-8?q?Verlinkung=20zu=20externen=20URLs=20f=C3=BCr=20?= =?UTF-8?q?Article=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/collections/content.yml | 20 ++++++------- src/components/widgets/Article.svelte | 34 ++++++++++++++++++++++ src/css/theme-2022/components/article.less | 4 +++ src/localization/de.json | 3 +- src/localization/en.json | 3 +- 5 files changed, 52 insertions(+), 12 deletions(-) diff --git a/api/collections/content.yml b/api/collections/content.yml index 49b203d..437f85f 100644 --- a/api/collections/content.yml +++ b/api/collections/content.yml @@ -45,9 +45,9 @@ meta: meta: label: { de: "Allgemein", en: "General" } subFields: + - source: path - source: locale - source: tags - - source: path - source: priority - name: meta meta: @@ -125,6 +125,15 @@ hooks: # Feldliste der Kollektion fields: + - name: path + type: string + index: [single, unique] + meta: + hideInRoot: true + label: { de: "Pfad", en: "Path" } + helperText: + de: "Der Pfad muss eindeutig sein und ohne ein Slash (/) beginnen und enden." + en: "The path must be unique and must start and end without a slash (/)." - !include fields/_locale.yml - name: tags type: string[] @@ -145,15 +154,6 @@ fields: name: "name" params: sort: "name" - - name: path - type: string - index: [single, unique] - meta: - hideInRoot: true - label: { de: "Pfad", en: "Path" } - helperText: - de: "Der Pfad muss eindeutig sein und ohne ein Slash (/) beginnen und enden." - en: "The path must be unique and must start and end without a slash (/)." - name: priority type: number meta: diff --git a/src/components/widgets/Article.svelte b/src/components/widgets/Article.svelte index 426a80c..d690cfb 100644 --- a/src/components/widgets/Article.svelte +++ b/src/components/widgets/Article.svelte @@ -1,5 +1,6 @@