Skip to content

Commit

Permalink
Add more example content.
Browse files Browse the repository at this point in the history
  • Loading branch information
frjo committed Nov 25, 2023
1 parent eeb326a commit a02bf5d
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 1 deletion.
10 changes: 10 additions & 0 deletions assets/sass/_extra.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Set the font sizes to use, fixed or fluid.
$font-size: $font-size-fluid;

// The max content width. (Consider using one of the breakpoints.)
$max-content-width: 777px;

// The max page width. Defaults to max-content-width.
// Setting this to a larger value than max-content-width allows
// content with class "stretch" to stretch out to the page edge.
$max-page-width: 1111px;
7 changes: 7 additions & 0 deletions content/en/misc/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Misc
submitted: false

---

Other features of the Zen theme.
27 changes: 27 additions & 0 deletions content/en/misc/layout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Layout with grid
submitted: false
summary: Examples of using stretch and breakout classes.
sidebar: false
examples:
- title: Lorem ipsum dolor sit amet
text: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
class:
- title: Section with "breakout" class
text: This section also has a "box" class. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
class: breakout box
- title: Lorem ipsum dolor sit amet
text: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
class:
- title: Section with "stretch" class
text: This section also has "box box--inverted" classes. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
class: stretch box box--inverted
- title: Lorem ipsum dolor sit amet
text: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
class:
type: example

---

Examples of using stretch and breakout classes.

1 change: 1 addition & 0 deletions content/en/math.md → content/en/misc/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Math
math: true
submitted: false
summary: Examples of math typesetting with KaTeX.

---

Expand Down
3 changes: 2 additions & 1 deletion content/en/misc.md → content/en/misc/misc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: Misc
title: Components
tables: true
submitted: false
summary: Examples of some components classes.

---

Expand Down
22 changes: 22 additions & 0 deletions layouts/example/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{ define "main" -}}
<main class="main layout__main">
<article class="single-view{{ with .Section }} single-view--{{ . | urlize }}{{ end }}">
<header>
<h1 class="title{{ if $.Param "submitted" | default false }} mb--xxs{{ end }}">{{ .Title }}</h1>
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
{{ if .Params.tags }}{{ partial "tags.html" . }}{{ end -}}
</header>

{{ .Content }}
</article>

{{ range .Params.examples }}
<section class="{{ .class }}">
<h2>{{ .title }}</h2>

<p>{{ .text }}</p>
</section>
{{ end }}

</main>
{{ end -}}

0 comments on commit a02bf5d

Please sign in to comment.