чување 13595f76724c0dc336425e457dfaedf335a61eaa
родитељ ba687d65c00cc70d1b2ab2ab0a2a5b98cf0555b0
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Sat, 11 Sep 2021 14:21:12 +0200
index.{css,html}: Changed formatting of Q&A
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
| M | index.css | | | 72 | +++++++++++++++++++++++++++++++++++++++--------------------------------- |
| M | index.slw | | | 48 | ++++++++++++++++++++++++++++-------------------- |
измењених датотека: 2, додавања: 67(+), брисања: 53(-)
diff --git a/index.css b/index.css
@@ -1,64 +1,70 @@
html,
body
{
- font-family: "Noto Serif", "Times New Roman", serif;
- font-size: 12pt;
+ font-family: "Noto Serif", "Times New Roman", serif;
+ font-size: 12pt;
}
pre,
code
{
- font-family: "Noto Sans Mono", "Courier New", "Courier", monospace;
- background-color: #eef;
+ font-family: "Noto Sans Mono", "Courier New", "Courier", monospace;
+ background-color: #eef;
}
code
{
- padding: .5em 0;
+ padding: .5em 0;
}
pre
{
- padding: 1em;
- line-height: 1.2em;
- overflow-x: auto;
+ padding: 1em;
+ line-height: 1.2em;
+ overflow-x: auto;
+}
+
+dd
+{
+ margin-left: 0;
+ margin-bottom: 1em;
}
main
{
- max-width: 1024px;
- margin: 0 auto;
+ max-width: 1024px;
+ margin: 0 auto;
}
h1
{
- font-size: 300%;
- font-style: oblique;
- color: #005;
+ font-size: 300%;
+ font-style: oblique;
+ color: #005;
}
p
{
- line-height: 1.7em;
- margin: 0;
- margin-bottom: 1em;
- padding: 0;
+ line-height: 1.7em;
+ margin: 0;
+ margin-bottom: 1em;
+ padding: 0;
}
#git-log
{
- font-family: "Noto Sans Mono", "Courier New", "Courier", monospace;
- font-size: 90%;
- text-align: center;
- margin-bottom: 1em;
+ font-family: "Noto Sans Mono", "Courier New", "Courier", monospace;
+ font-size: 90%;
+ text-align: center;
+ margin-bottom: 1em;
}
#made-by
{
- font-size: 90%;
- padding: .5em 2em;
- text-align: center;
- background-color: #eef;
+ font-size: 90%;
+ padding: .5em 2em;
+ text-align: center;
+ background-color: #eef;
}
@media(prefers-color-scheme: dark)
@@ -66,24 +72,24 @@ p
html,
body
{
- color: #fff;
- background-color: #121212;
+ color: #fff;
+ background-color: #121212;
}
h1
{
- color: #66b;
+ color: #66b;
}
pre,
code
{
- background-color: #333;
+ background-color: #333;
}
#made-by
{
- background-color: #333;
+ background-color: #333;
}
a,
@@ -91,7 +97,7 @@ a:link,
a:active,
a:visited
{
- color: #aaf;
+ color: #aaf;
}
}
@@ -99,7 +105,7 @@ a:visited
{
main
{
- max-width: 100%;
- margin: 0 1em;
+ max-width: 100%;
+ margin: 0 1em;
}
}
diff --git a/index.slw b/index.slw
@@ -11,31 +11,39 @@ meta: index-meta.csv
{main}
# slweb
-**Slweb** is a static website generator which aims at being simplistic. It
+**slweb** is a static website generator which aims at being simplistic. It
transforms custom Markdown-like syntax into HTML.
## Q&A
-```
-Q: Is this suckless?
-A: No. SGML, and by extension, HTML, isn't suckless.
-
-Q: Why do you call it "simple" then?
-A: Because one is not the synonym for the other.
-
-Q: Why not make a website generator as a shell script?
-A: slweb was a shell script in its conception (check its history of commits in
- git). However, I wanted to implement Markdown links with link ids
- [like][this]. This requires multiple passes by the parser and is better
- implemented as a full-blown program in C anyway. The other reason was that
- sed and awk have limits, which some of my pages hit.
-
- [this]: https://some.site
-
-Q: My static website generator is "truly simple", this is not simple!
-A: Good for you. By the way, that is a statement and not a question.
-```
+{dl}
+{dt}
+**Q:** Is this suckless?{/dt}
+{dd}
+**A:** No. SGML, and by extension, HTML, isn't suckless.{/dd}
+
+{dt}
+**Q:** Why do you call it “simple” then?{/dt}
+{dd}
+**A:** Because one is not the synonym for the other.{/dd}
+
+{dt}
+**Q:** Why not make a website generator as a shell script?{/dt}
+{dd}
+**A:** slweb _was_ a shell script in its conception (check its history of commits
+in git). However, I wanted to implement Markdown links with link ids
+`\[like]\[this]`. This requires multiple passes by the parser and is better
+implemented as a full-blown program in C anyway. The other reason was that sed
+and awk have limits, which some of my pages hit.
+
+`\[this]: https://some.site`{/dd}
+
+{dt}
+Q: My static website generator is "truly simple", this is not simple!{/dt}
+{dd}
+A: Good for you. By the way, that is a statement and not a question.{/dd}
+{/dl}
## Prerequisites