Skip to content

Commit 3ef734a

Browse files
committed
improving the crazyness of the templated html template
1 parent c01300e commit 3ef734a

File tree

7 files changed

+45
-6
lines changed

7 files changed

+45
-6
lines changed

archetypes/templated/sample/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
## Hello World
66

77
This is the smallest Pillar example.
8-
It uses microdown syntax.
8+
It uses the Microdown markdown dialect.
99

1010
- Have a look at Pillar [ https://github.com/pillar-markup/pillar ](https://github.com/pillar-markup/pillar)
1111
- Have a look at Microdown [ https://github.com/pillar-markup/pillar ](https://github.com/pillar-markup/pillar)
1212

1313
With Pillar you can generate
14-
- slides -- all the slides of the Pharo mooc [ https://mooc.pharo.org ](https://mooc.pharo.org)
15-
- books -- all the books available at [ https://books.pharo.org ](https://books.pharo.org) are generated with it
14+
- **slides** -- all the slides of the Pharo mooc [ https://mooc.pharo.org ](https://mooc.pharo.org)
15+
- **books** -- all the books available at [ https://books.pharo.org ](https://books.pharo.org) are generated with it
1616
- website -- we now use foliage which internally uses microdown [ https://github.com/pillar-markup/foliage ](https://github.com/pillar-markup/foliage)
1717

1818
## Credits
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Yes bold my friend <b>{{{contents}}}</b>
1+
<b class="note">{{{contents}}}</b>
2+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
<a href={{{ref}}} id="style-1">{{{caption}}}</a>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<H{{{level}}}>{{{contents}}}</H{{{level}}}>
1+
<H{{{level}}} class="city">{{{contents}}}</H{{{level}}}>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
<li>Basic item{{{contents}}}</li>
1+
2+
<li>Basic item {{{contents}}}</li>
3+

archetypes/templated/support/templates/html/main.mustache

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,38 @@
22
<html lang="en">
33
<head>
44
<title>{{{title}}}</title>
5+
<style>
6+
:root {
7+
--link-1: #D65472;
8+
--link-2: #37C5F0;
9+
--link-3: gold;
10+
--text: #18272F;
11+
--counter: #30B67D;
12+
}
13+
.city {
14+
background-color: tomato;
15+
color: white;
16+
border: 2px solid black;
17+
margin: 20px;
18+
padding: 20px;
19+
}
20+
.note {
21+
font-size: 120%;
22+
color: red;
23+
}
24+
#style-1 {
25+
padding: 0 .25rem;
26+
margin: 0 -.25rem;
27+
box-shadow: inset 0 0 0 0 var(--link-1);
28+
transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
29+
color: var(--link-1);
30+
31+
&:hover {
32+
color: white;
33+
box-shadow: inset 100px 0 0 0 var(--link-1);
34+
}
35+
}
36+
</style>
537
</head>
638
<body>
739
<div class="container">
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<ol type="a">
2+
23
{{{contents}}}
4+
35
</ol>

0 commit comments

Comments
 (0)