diff --git a/conf/netlify/cms/config.yml b/conf/netlify/cms/config.yml index b7967092..0945de9a 100644 --- a/conf/netlify/cms/config.yml +++ b/conf/netlify/cms/config.yml @@ -150,10 +150,20 @@ collections: file: src/site/_data/links.json i18n: false fields: - - { label: Twitter label, name: twitter_label, required: true, widget: string } + - { label: Twitter label, name: twitter_label, required: false, widget: string, + hint: "If this field is empty, the link to twitter will not appear in the website's footer" } - { label: Twitter URL, name: twitter_url, required: true, widget: string } - - { label: Forum label, name: forum_label, required: true, widget: string } + - { label: Forum label, name: forum_label, required: false, widget: string , + hint: "If this field is empty, the link to the forum will not appear in the website's footer" } - { label: Forum URL, name: forum_url, required: true, widget: string } + - label: "Additional links" + name: "additional_links" + widget: "list" + summary: '{{fields.name}}' + fields: + - {label: Name, name: name, widget: string } + - {label: Link, name: url, widget: file} + - label: Home page name: home # Configure i18n for this collection. diff --git a/src/site/_includes/footer.njk b/src/site/_includes/footer.njk index bd82b237..d1821481 100644 --- a/src/site/_includes/footer.njk +++ b/src/site/_includes/footer.njk @@ -15,8 +15,15 @@ {% ilink page, "contact/info", locale %}{{i18n.header_footer[locale].contact}}{% endilink %}