mirror of
https://github.com/TheThomaas/my-online-cookbook.git
synced 2026-01-11 20:21:49 +00:00
Make about page editable from CMS
This commit is contained in:
parent
d443a71d52
commit
0bd228b0e9
|
|
@ -7,6 +7,7 @@ My Online Cookbook is a starter kit to create your own website of recipes, using
|
||||||
Demo (this is what you get out of the box) : [https://myonlinecookbook.netlify.app/](https://myonlinecookbook.netlify.app/)
|
Demo (this is what you get out of the box) : [https://myonlinecookbook.netlify.app/](https://myonlinecookbook.netlify.app/)
|
||||||
|
|
||||||
Get started now by forking the project or deploy to Netlify :
|
Get started now by forking the project or deploy to Netlify :
|
||||||
|
|
||||||
[](https://app.netlify.com/start/deploy?repository=https://github.com/maeligg/my-online-cookbook&stack=cms)
|
[](https://app.netlify.com/start/deploy?repository=https://github.com/maeligg/my-online-cookbook&stack=cms)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ bodyClass: c-home
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% if collections["Favourite ⭐"] %}}
|
{% if collections["Favourite ⭐"] %}
|
||||||
<section class="u-bgc-grey-100">
|
<section class="u-bgc-grey-100">
|
||||||
<div class="l-container">
|
<div class="l-container">
|
||||||
<h2>{{ favouriteRecipes }}</h2>
|
<h2>{{ favouriteRecipes }}</h2>
|
||||||
|
|
|
||||||
|
|
@ -42,3 +42,12 @@ collections:
|
||||||
- {label: "Primary color", name: "primaryColor", widget: "color", hint: "make sure to choose a color that is light enough to display as a background behind dark text"}
|
- {label: "Primary color", name: "primaryColor", widget: "color", hint: "make sure to choose a color that is light enough to display as a background behind dark text"}
|
||||||
- {label: "Secondary color", name: "secondaryColor", widget: "color", hint: "used for links and focus styles"}
|
- {label: "Secondary color", name: "secondaryColor", widget: "color", hint: "used for links and focus styles"}
|
||||||
- {label: "Search label", name: "searchLabel", widget: "string"}
|
- {label: "Search label", name: "searchLabel", widget: "string"}
|
||||||
|
- name: "pages"
|
||||||
|
label: "Pages"
|
||||||
|
files:
|
||||||
|
- name: "about"
|
||||||
|
label: "About page"
|
||||||
|
file: "src/about.md"
|
||||||
|
fields:
|
||||||
|
- {label: "Title", name: "title", widget: "string"}
|
||||||
|
- {label: "Body", name: "body", widget: "markdown"}
|
||||||
|
|
@ -24,6 +24,7 @@ body {
|
||||||
main {
|
main {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The x-cloak attribute is automatically removed from elements when Alpine initializes. They should not be visible before then to avoid flickering content
|
// The x-cloak attribute is automatically removed from elements when Alpine initializes. They should not be visible before then to avoid flickering content
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue