9.1 KiB
author | date | title | subtitle | meta | math | toc | categories | |||
---|---|---|---|---|---|---|---|---|---|---|
Totally famous person | 2016-02-20T13:56:01-08:00 | The big old test page | Fancy Subtitle | true | true | true |
|
loikein's features
Emojis!
Powered by Noto Emoji font.
We really like cats. Yes, they are fluffy and happy. 🐈🐱
🪷🫶🤍😊💀🔥
Button
{{< button style="primary" icon="✅" href="javascript:javascript:(function(){function checkFrames(w) {try {var inputs = w.document.getElementsByTagName('input');for (var i=0; i < inputs.length; i++) {if (inputs[i].type && inputs[i].type == 'checkbox'){inputs[i].checked = true;}}} catch (e){}if(w.frames && w.frames.length>0){for(var i=0;i<w .frames.length;i++){var fr=w.frames[i];checkFrames(fr);}}}checkFrames(window);})()"
}} Open all notes {{< /button >}}
{{< button style="primary" icon="❎" href="javascript:javascript:(function(){function checkFrames(w) {try {var inputs = w.document.getElementsByTagName('input');for (var i=0; i < inputs.length; i++) {if (inputs[i].type && inputs[i].type == 'checkbox'){inputs[i].checked = false;}}} catch (e){}if(w.frames && w.frames.length>0){for(var i=0;i<w .frames.length;i++){var fr=w.frames[i];checkFrames(fr);}}}checkFrames(window);})()"
}} Close all notes {{< /button >}}
{{< button style="primary" icon="🔄" href="javascript:javascript:(function(){function checkFrames(w) {try {var inputs = w.document.getElementsByTagName('input');for (var i=0; i < inputs.length; i++) {if (inputs[i].type && inputs[i].type == 'checkbox'){inputs[i].checked = !inputs[i].checked;}}} catch (e){}if(w.frames && w.frames.length>0){for(var i=0;i<w .frames.length;i++){var fr=w.frames[i];checkFrames(fr);}}}checkFrames(window);})()"
}} Toggle all notes {{< /button >}}
Cols (with lang
option)
{{< cols "zh-Hans,en,ja" >}}
我是一个懒人。 {{< marginnote >}}这是一个边注。在屏幕很小的时候,它有一个可以点击展开的按钮。{{< /marginnote >}}{{< marginnote ind="🐱" >}}您可以在 config.yaml
中修改全站指示器,也可以使用 ind
选项为每一个边注单独设置按钮。{{< /marginnote>}}{{< marginnote ind="⚠" >}}在这个版本中,我提升了可访问性,但不包括用不了 :has
的火狐。{{< /marginnote>}}
||
But sometimes you just have to get your hands dirty.
This is the joy and the curse of a programmer. {{< sidenote >}}Sidenote numbers are consistent across the whole page. Good numbers.{{< /sidenote >}} || さらに、なんと!日本語もいけます。 {{< sidenote >}}読めないのか?私は大丈夫だが。{{< /sidenote >}} {{< /cols >}}
Tufte features
Marginnote and sidenote
This is what you came here for. {{< marginnote >}}This is a marginnote. It has no indicators on big screens.{{< /marginnote >}} Be honest. {{< sidenote >}}This is a sidenote! It has a little number.{{< /sidenote >}}
Epigraph
{{< epigraph author="Shawn O'Hare" cite="Math is Fun" detail="p.8" >}}
This is an example of an epigraph with some math
$ \mathbb N \subseteq \mathbb R $
to start the beginning of a section.
{{< /epigraph >}}
{{</* epigraph author="Shawn O'Hare" cite="Math is Fun" detail="p.8" */>}}
This is an example of an epigraph with some math
`$ \mathbb N \subseteq \mathbb R $`
to start the beginning of a section.
{{</* /epigraph */>}}
Blockquote
Some blockquotes. But first, we try to manually cite via
This is between cite tags and has math: $e^x $
{{< sidenote >}}Only use $\KaTeX{}$
, you must.{{< /sidenote >}}
{{< blockquote author="Shawn O'Hare" cite="www.shawnohare.com" >}}
This is a blockquote with two paragraphs, that employs the
theme's blockquote
shortcode. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. {{< /blockquote >}}
{{</* blockquote author="Shawn O'Hare" cite="www.shawnohare.com" */>}}
This is a blockquote with two paragraphs, that employs the
theme's `blockquote` shortcode. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
...
{{</* /blockquote */>}}
Small-caps
{{< newthought >}}Sometimes a new thought{{< /newthought >}} distinguishes a section, as here.
{{</* newthought */>}}Sometimes a new thought{{</* /newthought */>}}
Figure
Regular width figure:
{{< figure src="https://github.com/edwardtufte/tufte-css/raw/gh-pages/img/exports-imports.png" title="The image title" label="mn-export-import" caption="This is the image caption." attr="Image attribution" link="link"
}}
{{</* figure
src="https://github.com/edwardtufte/tufte-css/raw/gh-pages/img/exports-imports.png"
title="The image title"
label="mn-export-import"
caption="This is the image caption."
attr="[Image attribution](#)"
link="link"
*/>}}
Margin figure:
Margin figures appear on the margin. Highly logical. {{< figure src="https://github.com/edwardtufte/tufte-css/raw/gh-pages/img/rhino.png" type="margin" label="mn-rhino" title="The image title" caption="This is the image caption." attr="Image attribution" alt="alt" link="#"
}} Very importantly, they want some text to go with them, either before or after, with only one line break.
No worries if you forgot to give your figure a label
. Marginnote (either for figure or with figure inside) will be created if any one of the following conditions is met:
- Has
type="margin
; or - Has
caption
; or - Has
attr
.
{{</* figure
src="https://github.com/edwardtufte/tufte-css/raw/gh-pages/img/rhino.png"
type="margin"
title="The image title"
caption="This is the image caption."
attr="[Image attribution](https://edwardtufte.github.io/tufte-css)"
alt="alt"
link="#"
*/>}}
Full-width figure:
{{< figure src="https://github.com/edwardtufte/tufte-css/raw/gh-pages/img/napoleons-march.png" type="full" label="mn-napoleonic-wars" title="Napoleonic wars" caption="This the image caption." attr="Image attribution" alt="Napoleonic wars" link="#"
}}
{{</* figure
src="https://github.com/edwardtufte/tufte-css/raw/gh-pages/img/napoleons-march.png"
type="full"
label="mn-napoleonic-wars"
title="Napoleonic wars"
caption="This the image caption."
attr="[Image attribution](#)"
alt="Napoleonic wars"
link="#"
*/>}}
Normal Markdown tests
Begin test file…
Formatting
Bold, bold, 加粗
Italic, italic, 斜体
Underline, underline
Strike, strike, strike, strike, --strike--
Highlight, =highlight=, ==highlight==
Lists
ul
- Unordered list
ol
- Ordered list
dl
dt
- Description list
- Task list
- Task list
Code
Inline code
, `escape`
, and keystroke
199
200
201
202
203
204
205
206
207
208
209
210
211
package main
import "log"
func add(x int, y int) int {
log.Println("We are going to take the sum of two numbers, and leave a long comment.")
return x + y
}
func main() {
y := add(1, 2)
log.Println(y)
}
Here's an example without line numbers.
package main
import "log"
func add(x int, y int) int {
log.Println("We are going to take the sum of two numbers, and leave a very very very long comment.")
return x + y
}
func main() {
y := add(1, 2)
log.Println(y)
}
Font
我能体に傷つけないで吞下 259 ml glass。
Four score and seven years ago our fathers brought forth upon this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.
0 Oo Ii Ll 1 | 2 Z 5 s 8 Bb 6 # * ^ ~ {} [] . , : ; “ ‘ ’ `
0 Oo Ii Ll 1 | 2 Z 5 s 8 Bb 6 # * ^ ~ () {} [] . , : ; “ ‘ ’ `
Inline HTML
ref: https://burk.io/2020/let-there-be-dark
LaTeX & Table
$\LaTeX{}$
$$R_1 \begin{cases} >\mu_{2} \\ \leq \mu_{2} \end{cases}$$
Message to agent 1 | $M_1$ |
---|---|
Agent 1's action | $a_1$ |
New finding | $R_1 \begin{cases} >\mu_{2} \\ \leq \mu_{2} \end{cases}$ |