Skip to content

Commit cc2a160

Browse files
committed
add
1 parent 127ee9a commit cc2a160

File tree

71 files changed

+3285
-299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3285
-299
lines changed

content/categories/Test/_index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Test"
3+
description: "This is an example category"
4+
slug: "test"
5+
image: "hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg"
6+
style:
7+
background: "#2a9d8f"
8+
color: "#fff"
9+
---
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: "Hello"
33
date: 2021-09-08T23:49:32+08:00
4-
draft: false
54
---
65

76
# hello jam
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
author: Hugo Authors
3+
title: Math Typesetting
4+
date: 2019-03-08
5+
description: A brief guide to setup KaTeX
6+
math: true
7+
---
8+
9+
Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
10+
<!--more-->
11+
12+
In this example we will be using [KaTeX](https://katex.org/)
13+
14+
- Create a partial under `/layouts/partials/math.html`
15+
- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
16+
- Include the partial in your templates like so:
17+
18+
```bash
19+
{{ if or .Params.math .Site.Params.math }}
20+
{{ partial "math.html" . }}
21+
{{ end }}
22+
```
23+
24+
- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
25+
- To enable KaTex on a per page basis include the parameter `math: true` in content files
26+
27+
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
28+
29+
{{< math.inline >}}
30+
{{ if or .Page.Params.math .Site.Params.math }}
31+
<!-- KaTeX -->
32+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
33+
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
34+
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
35+
{{ end }}
36+
{{</ math.inline >}}
37+
38+
### Examples
39+
40+
{{< math.inline >}}
41+
<p>
42+
Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\)
43+
</p>
44+
{{</ math.inline >}}
45+
46+
Block math:
47+
$$
48+
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
49+
$$
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
+++
2+
author = "Hugo Authors"
3+
title = "Placeholder Text"
4+
date = "2019-03-09"
5+
description = "Lorem Ipsum Dolor Si Amet"
6+
categories = [
7+
"Test",
8+
"Test with whitespaces"
9+
]
10+
tags = [
11+
"markdown",
12+
"text",
13+
"tag with whitespaces"
14+
]
15+
image = "matt-le-SJSpo9hQf7s-unsplash.jpg"
16+
+++
17+
18+
Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
19+
20+
1. Exierant elisi ambit vivere dedere
21+
2. Duce pollice
22+
3. Eris modo
23+
4. Spargitque ferrea quos palude
24+
25+
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.
26+
27+
1. Comas hunc haec pietate fetum procerum dixit
28+
2. Post torum vates letum Tiresia
29+
3. Flumen querellas
30+
4. Arcanaque montibus omnes
31+
5. Quidem et
32+
33+
# Vagus elidunt
34+
35+
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
36+
37+
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
38+
39+
## Mane refeci capiebant unda mulcebat
40+
41+
Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
42+
43+
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
44+
45+
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
46+
47+
{{< css.inline >}}
48+
<style>
49+
.canon { background: white; width: 100%; height: auto; }
50+
</style>
51+
{{< /css.inline >}}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
+++
2+
author = "Hugo Authors"
3+
title = "Placeholder Text"
4+
date = "2019-03-09"
5+
description = "Lorem Ipsum Dolor Si Amet"
6+
categories = [
7+
"Test",
8+
"Test with whitespaces"
9+
]
10+
tags = [
11+
"markdown",
12+
"text",
13+
"tag with whitespaces"
14+
]
15+
image = "matt-le-SJSpo9hQf7s-unsplash.jpg"
16+
+++
17+
18+
Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
19+
20+
1. Exierant elisi ambit vivere dedere
21+
2. Duce pollice
22+
3. Eris modo
23+
4. Spargitque ferrea quos palude
24+
25+
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.
26+
27+
1. Comas hunc haec pietate fetum procerum dixit
28+
2. Post torum vates letum Tiresia
29+
3. Flumen querellas
30+
4. Arcanaque montibus omnes
31+
5. Quidem et
32+
33+
# Vagus elidunt
34+
35+
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
36+
37+
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
38+
39+
## Mane refeci capiebant unda mulcebat
40+
41+
Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
42+
43+
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
44+
45+
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
46+
47+
{{< css.inline >}}
48+
<style>
49+
.canon { background: white; width: 100%; height: auto; }
50+
</style>
51+
{{< /css.inline >}}

docs/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta property='og:description' content='Lorem ipsum dolor sit amet, consectetur adipiscing elit.'>
1010
<meta property='og:url' content='https://idzhiwei.github.io/404.html'>
1111
<meta property='og:site_name' content='知微'>
12-
<meta property='og:type' content='website'><meta property='og:updated_time' content=' 2020-09-09T00:00:00&#43;00:00 '/>
12+
<meta property='og:type' content='website'><meta property='og:updated_time' content=' 2021-09-08T23:49:32&#43;08:00 '/>
1313
<meta name="twitter:title" content="404 Page not found">
1414
<meta name="twitter:description" content="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">
1515
</head>

docs/about/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta property='og:description' content='Hugo, the world&#39;s fastest framework for building websites'>
1010
<meta property='og:url' content='https://idzhiwei.github.io/about/'>
1111
<meta property='og:site_name' content='知微'>
12-
<meta property='og:type' content='article'><meta property='article:section' content='' /><meta property='article:published_time' content='2019-02-28T00:00:00&#43;00:00'/><meta property='article:modified_time' content='2020-10-09T00:00:00&#43;00:00'/>
12+
<meta property='og:type' content='article'><meta property='article:section' content='Page' /><meta property='article:published_time' content='2019-02-28T00:00:00&#43;00:00'/><meta property='article:modified_time' content='2020-10-09T00:00:00&#43;00:00'/>
1313
<meta name="twitter:title" content="About">
1414
<meta name="twitter:description" content="Hugo, the world&#39;s fastest framework for building websites">
1515
</head>

docs/archives/index.html

Lines changed: 165 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta property='og:description' content=''>
1010
<meta property='og:url' content='https://idzhiwei.github.io/archives/'>
1111
<meta property='og:site_name' content='知微'>
12-
<meta property='og:type' content='article'><meta property='article:section' content='' /><meta property='article:published_time' content='2019-05-28T00:00:00&#43;00:00'/><meta property='article:modified_time' content='2019-05-28T00:00:00&#43;00:00'/>
12+
<meta property='og:type' content='article'><meta property='article:section' content='Page' /><meta property='article:published_time' content='2019-05-28T00:00:00&#43;00:00'/><meta property='article:modified_time' content='2019-05-28T00:00:00&#43;00:00'/>
1313
<meta name="twitter:title" content="Archives">
1414
<meta name="twitter:description" content="">
1515
</head>
@@ -174,10 +174,20 @@ <h2 class="section-title">Categories</h2>
174174
<div class="article-list--tile">
175175

176176

177-
<article class="">
177+
<article class="has-image">
178178
<a href="/categories/test/">
179179

180180

181+
<div class="article-image">
182+
<img src="/categories/test/_hu8102ac0a5989befdf52fa5096a373f78_52927_ba0b8e744b36f1e48b9c54b5d2847004.jpg"
183+
width="250"
184+
height="150"
185+
loading="lazy"
186+
data-key="test"
187+
data-hash="md5-vsif6ZlY2JQT7cD5Noi91g==">
188+
189+
</div>
190+
181191

182192
<div class="article-details">
183193
<h2 class="article-title">Test</h2>
@@ -221,6 +231,18 @@ <h2 class="article-title">themes</h2>
221231
</a>
222232
</article>
223233

234+
235+
<article class="">
236+
<a href="/categories/test-with-whitespaces/">
237+
238+
239+
240+
<div class="article-details">
241+
<h2 class="article-title">Test with whitespaces</h2>
242+
</div>
243+
</a>
244+
</article>
245+
224246
</div>
225247
</div>
226248

@@ -230,6 +252,147 @@ <h2 class="article-title">themes</h2>
230252

231253

232254

255+
256+
<div class="archives-group" id="2021">
257+
<h2 class="archives-date section-title"><a href="/archives/#2021">2021</a></h2>
258+
<div class="article-list--compact">
259+
260+
<article>
261+
<a href="/p/hello/">
262+
<div class="article-details">
263+
<h2 class="article-title">Hello</h2>
264+
<footer class="article-time">
265+
<time datetime='2021-09-08T23:49:32&#43;08:00'>Sep 08, 2021</time>
266+
</footer>
267+
</div>
268+
</a>
269+
</article>
270+
271+
</div>
272+
</div>
273+
274+
275+
<div class="archives-group" id="2020">
276+
<h2 class="archives-date section-title"><a href="/archives/#2020">2020</a></h2>
277+
<div class="article-list--compact">
278+
279+
<article>
280+
<a href="/p/test-chinese/">
281+
<div class="article-details">
282+
<h2 class="article-title">Chinese Test</h2>
283+
<footer class="article-time">
284+
<time datetime='2020-09-09T00:00:00Z'>Sep 09, 2020</time>
285+
</footer>
286+
</div>
287+
<div class="article-image">
288+
<img src="/p/test-chinese/helena-hertz-wWZzXlDpMog-unsplash_hu45a5e3ad5e058da6a00650ed8fd40bea_15530_120x120_fill_q75_box_smart1.jpg"
289+
width="120"
290+
height="120"
291+
loading="lazy">
292+
293+
</div>
294+
295+
</a>
296+
</article>
297+
298+
</div>
299+
</div>
300+
301+
302+
<div class="archives-group" id="2019">
303+
<h2 class="archives-date section-title"><a href="/archives/#2019">2019</a></h2>
304+
<div class="article-list--compact">
305+
306+
<article>
307+
<a href="/p/markdown-syntax-guide/">
308+
<div class="article-details">
309+
<h2 class="article-title">Markdown Syntax Guide</h2>
310+
<footer class="article-time">
311+
<time datetime='2019-03-11T00:00:00Z'>Mar 11, 2019</time>
312+
</footer>
313+
</div>
314+
<div class="article-image">
315+
<img src="/p/markdown-syntax-guide/pawel-czerwinski-8uZPynIu-rQ-unsplash_hud7e36f7e20e71be184458283bdae4646_55974_120x120_fill_q75_box_smart1.jpg"
316+
width="120"
317+
height="120"
318+
loading="lazy">
319+
320+
</div>
321+
322+
</a>
323+
</article>
324+
325+
<article>
326+
<a href="/p/placeholder-text/">
327+
<div class="article-details">
328+
<h2 class="article-title">Placeholder Text</h2>
329+
<footer class="article-time">
330+
<time datetime='2019-03-09T00:00:00Z'>Mar 09, 2019</time>
331+
</footer>
332+
</div>
333+
<div class="article-image">
334+
<img src="/p/placeholder-text/matt-le-SJSpo9hQf7s-unsplash_hu958d513eeefe5556a31d065479ecc5ac_14205_120x120_fill_q75_box_smart1.jpg"
335+
width="120"
336+
height="120"
337+
loading="lazy">
338+
339+
</div>
340+
341+
</a>
342+
</article>
343+
344+
<article>
345+
<a href="/p/placeholder-text/">
346+
<div class="article-details">
347+
<h2 class="article-title">Placeholder Text</h2>
348+
<footer class="article-time">
349+
<time datetime='2019-03-09T00:00:00Z'>Mar 09, 2019</time>
350+
</footer>
351+
</div>
352+
<div class="article-image">
353+
<img src="/p/placeholder-text/matt-le-SJSpo9hQf7s-unsplash_hu958d513eeefe5556a31d065479ecc5ac_14205_120x120_fill_q75_box_smart1.jpg"
354+
width="120"
355+
height="120"
356+
loading="lazy">
357+
358+
</div>
359+
360+
</a>
361+
</article>
362+
363+
<article>
364+
<a href="/p/math-typesetting/">
365+
<div class="article-details">
366+
<h2 class="article-title">Math Typesetting</h2>
367+
<footer class="article-time">
368+
<time datetime='2019-03-08T00:00:00Z'>Mar 08, 2019</time>
369+
</footer>
370+
</div>
371+
</a>
372+
</article>
373+
374+
<article>
375+
<a href="/p/emoji-support/">
376+
<div class="article-details">
377+
<h2 class="article-title">Emoji Support</h2>
378+
<footer class="article-time">
379+
<time datetime='2019-03-05T00:00:00Z'>Mar 05, 2019</time>
380+
</footer>
381+
</div>
382+
<div class="article-image">
383+
<img src="/p/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash_huf941de4769045cdfa8c9ee7036519a2a_35369_120x120_fill_q75_box_smart1.jpg"
384+
width="120"
385+
height="120"
386+
loading="lazy">
387+
388+
</div>
389+
390+
</a>
391+
</article>
392+
393+
</div>
394+
</div>
395+
233396

234397
<footer class="site-footer">
235398
<section class="copyright">

0 commit comments

Comments
 (0)