example posts
This commit is contained in:
parent
26716ad48d
commit
3ab76110ee
7 changed files with 47 additions and 37 deletions
|
|
@ -1,8 +1,7 @@
|
|||
/* Global variables */
|
||||
:root {
|
||||
--gutter: var(--space-s-m);
|
||||
--border-radius: var(--size-step-1);
|
||||
--border-radius-sm: var(--size-step-0);
|
||||
--border-radius: var(--size-step-0);
|
||||
--transition-base: 250ms ease;
|
||||
--transition-movement: 200ms linear;
|
||||
--transition-fade: 200ms ease;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ blog:
|
|||
Based on the companion website of [Andy Bell](https://twitter.com/hankchizljaw/)'s talk 'Be the browser’s mentor, not its micromanager'.
|
||||
This approach promotes modern CSS with methodologies, fluid type & Space, flexible Layouts and Progressive Enhancement.
|
||||
|
||||
This starter really just exists to hopefully spread the use of this excellent workflow. To work with it efficiently you should be familiar with cube.fyi, utopia.fyi and every-layout.dev.
|
||||
|
||||
Page based on this starter: www.lenesaile.com
|
||||
|
||||
- Find out more on https://buildexcellentwebsit.es/.
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
---
|
||||
title: 'Hello, this is a post'
|
||||
description: 'Every post starts with planning. Pie tart cake halvah tiramisu macaroon chocolate marzipan pie. Jelly tootsie roll cake cake chupa chups. Shortbread tart gummi bears sweet roll!'
|
||||
date: 2022-08-28
|
||||
---
|
||||
|
||||
## A title
|
||||
|
||||
Pie tart cake halvah tiramisu macaroon chocolate marzipan pie. Jelly tootsie roll cake cake chupa chups. Cupcake tart caramels jelly toffee. Shortbread tart gummi bears sweet roll donut dragée sesame snaps lollipop biscuit. Shortbread cookie gummies tart toffee sweet roll croissant. Cheesecake topping jelly beans muffin icing pie. Icing muffin chocolate cake biscuit sweet roll lollipop. Chocolate cake chocolate cake topping biscuit jujubes caramels.
|
||||
|
||||
Sweet roll sesame snaps jelly beans oat cake liquorice pastry sugar plum marshmallow. Sugar plum pie fruitcake fruitcake brownie toffee halvah lemon drops. Jelly-o chocolate cake halvah carrot cake tootsie roll. Cheesecake chocolate bar brownie candy muffin bonbon. Caramels chocolate cake jelly cupcake cake gummies croissant marshmallow. Icing cheesecake soufflé lollipop pudding donut.
|
||||
26
src/posts/2022-08-28-post-with301-redirects.md
Normal file
26
src/posts/2022-08-28-post-with301-redirects.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: 'Post with 301 redirects'
|
||||
description: 'Every post starts with planning. Pie tart cake halvah tiramisu macaroon chocolate marzipan pie. Jelly tootsie roll cake cake chupa chups. Shortbread tart gummi bears sweet roll!'
|
||||
date: 2022-08-28
|
||||
redirectFrom: ['/old-route/', '/optionally-another-old-route/']
|
||||
---
|
||||
|
||||
URLs usually change over time, as you use another CMS or work on your structure. A 301 is used when a page has permanently changed location. Informing about this change is indispensable if you want to keep a positioning.
|
||||
|
||||
[Aleksandr Hovhannisyan came up with a great solution for Eleventy and Netlify](https://www.aleksandrhovhannisyan.com/blog/eleventy-netlify-redirects/). To directly cover several possible obsolete routes it is created as an array.
|
||||
|
||||
{% raw %}
|
||||
|
||||
```nunjucks
|
||||
_redirects.njk:
|
||||
|
||||
{% for page in collections.all %}
|
||||
{% if page.url and page.data.redirectFrom %}
|
||||
{% for oldUrl in page.data.redirectFrom %}
|
||||
{{ oldUrl }} {{ page.url }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
title: 'What a title'
|
||||
description: 'Every post starts with planning. Icing lemon drops macaroon sugar plum chupa chups. Bonbon cake chupa chups sugar plum brownie marshmallow jelly sweet roll.'
|
||||
date: 2022-09-01
|
||||
---
|
||||
|
||||
## Hello there!
|
||||
|
||||
Icing lemon drops macaroon sugar plum chupa chups. Bonbon cake chupa chups sugar plum brownie marshmallow jelly sweet roll. Dessert jelly-o tootsie roll ice cream tart. Tootsie roll dragée chocolate cake wafer wafer chupa chups sesame snaps jelly. Jujubes candy chocolate jelly wafer. Tiramisu danish donut shortbread chocolate bar bear claw. Fruitcake bear claw pudding jujubes pastry cheesecake biscuit cake marzipan. Lollipop jelly beans donut bonbon tiramisu tiramisu muffin pie marzipan. Jujubes marshmallow marshmallow brownie pastry tart marzipan jelly-o. Gummies gummi bears chocolate cake sweet biscuit pastry apple pie. Halvah carrot cake chocolate bar gummies donut. Apple pie ice cream muffin brownie sweet roll. Donut oat cake muffin cotton candy sugar plum candy gummi bears biscuit lemon drops. Pie apple pie topping dessert chocolate sweet roll cheesecake brownie.
|
||||
|
||||
Tiramisu chocolate cake lollipop chocolate bar lemon drops. Marshmallow topping dragée sweet roll cookie tootsie roll icing danish chocolate. Lollipop cupcake sugar plum dragée candy chocolate. Bonbon sweet roll candy canes tiramisu carrot cake jelly-o wafer. Bear claw bonbon tiramisu marzipan pudding liquorice jujubes sweet. Halvah caramels apple pie carrot cake donut pie. Bonbon lollipop jujubes gummies chocolate cake. Carrot cake powder tootsie roll biscuit soufflé sugar plum. Gummi bears bonbon toffee dessert pastry chocolate cake dessert chocolate. Sweet cake jujubes sesame snaps muffin candy sugar plum. Jelly shortbread liquorice lemon drops cookie lemon drops muffin. Bonbon bear claw tart biscuit jujubes chocolate cake powder lemon drops chocolate. Chocolate sweet roll dragée sweet bonbon jelly toffee. Bonbon cupcake lollipop biscuit tootsie roll.
|
||||
|
||||
Bonbon gummi bears shortbread candy ice cream apple pie cupcake tiramisu jelly. Croissant caramels chocolate candy sweet roll jelly. Muffin cupcake lemon drops tart topping gummi bears. Chupa chups tootsie roll dragée chocolate croissant. Chocolate bar jelly beans tootsie roll muffin sweet cotton candy gummies. Donut muffin candy cookie pudding bear claw gummi bears. Sesame snaps biscuit marshmallow gummies sesame snaps biscuit. Biscuit cotton candy sugar plum powder jelly beans. Gummies candy apple pie jelly beans jujubes. Jelly tiramisu lollipop pie chocolate chocolate jelly. Sweet roll wafer liquorice dessert cookie. Cotton candy wafer cotton candy cupcake tootsie roll cookie. Tart cupcake carrot cake ice cream fruitcake.
|
||||
17
src/posts/2022-09-01-post-with-code.md
Normal file
17
src/posts/2022-09-01-post-with-code.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: 'Post with some code'
|
||||
description: 'Every post starts with planning. Icing lemon drops macaroon sugar plum chupa chups. Bonbon cake chupa chups sugar plum brownie marshmallow jelly sweet roll.'
|
||||
date: 2022-09-01
|
||||
---
|
||||
|
||||
This theme uses 11ty's [Syntax Highlighting Plugin](https://www.11ty.dev/docs/plugins/syntaxhighlight/).
|
||||
|
||||
Gummi bears shortbread tootsie roll chupa chups cookie cheesecake sugar plum. Lemon drops brownie toffee fruitcake cotton candy.
|
||||
|
||||
```js
|
||||
function myFunction() {
|
||||
return true;
|
||||
}
|
||||
```
|
||||
|
||||
Edit styles in `css/blocks/code.css`
|
||||
|
|
@ -4,17 +4,7 @@ description: 'Every post starts with planning. Gummi bears shortbread tootsie ro
|
|||
date: 2022-10-12
|
||||
---
|
||||
|
||||
## Some code
|
||||
|
||||
Gummi bears shortbread tootsie roll chupa chups cookie cheesecake sugar plum. Lemon drops brownie toffee fruitcake cotton candy. Lollipop muffin cake tiramisu chocolate. Caramels icing bonbon marshmallow cake pie sweet roll biscuit. Dessert candy sweet roll dessert ice cream gummies gummies jelly beans. Dragée jelly gingerbread cake chupa chups chocolate cake muffin jelly-o.
|
||||
|
||||
```js
|
||||
function myFunction() {
|
||||
return true;
|
||||
}
|
||||
```
|
||||
|
||||
Cake pastry jelly-o donut gummi bears toffee croissant chupa chups. Chocolate cake chocolate cotton candy tart biscuit. Ice cream sesame snaps cake bear claw toffee chocolate bar cheesecake toffee. Shortbread tart tart tart donut macaroon danish topping chocolate. Topping toffee chupa chups oat cake chupa chups. Candy jelly beans chocolate croissant sweet cupcake. Jujubes gummies macaroon shortbread jujubes candy canes cake.
|
||||
Cake pastry jelly-o donut gummi bears toffee croissant chupa chups. Chocolate cake chocolate cotton candy tart biscuit. Ice cream sesame snaps cake bear claw toffee chocolate bar cheesecake toffee.
|
||||
|
||||
## Image with caption
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue