Skip to content

Commit

Permalink
chore: update content
Browse files Browse the repository at this point in the history
  • Loading branch information
learosema committed Oct 10, 2024
1 parent 702fc7e commit acbf5cd
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 7 deletions.
4 changes: 2 additions & 2 deletions demo/_includes/nav.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<nav class="nav">
<ul role="list">
<ul class="nav__ul" role="list">
<li><a href="configuration.html">Getting Started</a></li>
<li><a href="configuration.html">Configuration</a></li>
<li><a href="templating-basics.html">Templating Basics</a></li>
<li><a href="templating.html">Templating</a></li>
<li><a href="data.html">All About Data</a></li>

<li><a href="imprint.html">Imprint</a></li>
Expand Down
20 changes: 20 additions & 0 deletions demo/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Welcome to Sissi
layout: base.html
---
# {{ title }}

Right now there's not too much to configure. Specify an input dir, specify an output dir:

```js
export default function(config) {
// You can add plugins via config.addPlugin here
// config.addPlugin(html);
return {
dir: {
input: 'demo',
output: 'dist'
}
}
}
```
2 changes: 1 addition & 1 deletion demo/css/_globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ a {
main {
flex: 1 auto;
width: min(100% - 3rem, var(--container-max, 60ch));
margin-inline: auto;
margin-inline-end: auto;
padding-block: 2rem;
}

Expand Down
2 changes: 1 addition & 1 deletion demo/css/_reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}


:where(li:not([class])) {
:where(ul:not([class]) li) {
margin-inline-start: 2rem;
}

Expand Down
11 changes: 9 additions & 2 deletions demo/css/components/_layout.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
.layout {
display: grid;
grid-template-columns: 30ch 1fr;
flex: 1 auto;
}


@media screen and (min-width: 768px) {
.layout {
display: grid;
grid-template-columns: 20ch 1fr;
}
}
3 changes: 2 additions & 1 deletion demo/css/components/_nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
display: flex;
background: var(--nav-bg, #000);
gap: 1rem;
padding: 2rem;
padding-block: 2rem;
padding-inline: 1rem;
a {
font-size: 1.2em;
font-weight: bold;
Expand Down
12 changes: 12 additions & 0 deletions demo/templating.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Templating
layout: base.html
---
# {{ title }}

Sissi comes with a basic markdown and html template engine.

## HTML Includes

You can include HTML via the `html-include` tag:

0 comments on commit acbf5cd

Please sign in to comment.