Thank you @komor72 and @dikaio for trying to help!
So how did I approach my first project, which is a single page site?
I have a layout.slim
template which contains all the markup common to all pages, including the partials _header.slim
and _footer.slim
, e.g.:
doctype html
head
...
body
.container
=partial "partials/header"
=yield
=partial "partials/footer"
Then, and here I have most likely made things too complicated, I have an index.slim
which contains the main layout css classes, which control the grid (susy), headline and text formatting, e.g.:
article.l-content
section.l-cnt-grid
h2.beta Headline
=partial 'partials/intro'
section.l-right-grid
h2.beta Headline2
p
| some shorter text
div.l-infobox
p.textbox
| some other text
....
As you can see, I have some text paragraph directly inside the slim template - this is mainly since I did not find a way to apply specific css rules to those elements, while some content is contained inside markdown partials, e.g. partials/intro
.
So, maybe I should rephrase my question a bit:
How could I move all text content into markdown files, while still retaining the possibility for advanced formatting through css?
This might be really easy and obvious, but I simply don’t see the solution to that problem.