diff --git a/exampleSite/content/post/even-preview.md b/exampleSite/content/post/even-preview.md index 8e905d0..84e3d7a 100644 --- a/exampleSite/content/post/even-preview.md +++ b/exampleSite/content/post/even-preview.md @@ -11,6 +11,8 @@ weight: 10 contentCopyright: 'See origin' +mathjax: true + --- > Copy from [《Hugo 主题 Nuo 文章样式预览》](https://laozhu.me/post/hugo-nuo-post-preview/) diff --git a/exampleSite/content/post/js-flowchart-diagrams.md b/exampleSite/content/post/js-flowchart-diagrams.md index 2111c52..1851333 100644 --- a/exampleSite/content/post/js-flowchart-diagrams.md +++ b/exampleSite/content/post/js-flowchart-diagrams.md @@ -91,7 +91,7 @@ Configure for all home and regular pages: Configure for a single post in the front matter (**Params in front matter have higher precedence**): -```yml +```yaml flowchartDiagrams: enable: true options: "{ diff --git a/exampleSite/content/post/js-sequence-diagrams.md b/exampleSite/content/post/js-sequence-diagrams.md index 3ca3a1c..26bb08e 100644 --- a/exampleSite/content/post/js-sequence-diagrams.md +++ b/exampleSite/content/post/js-sequence-diagrams.md @@ -38,7 +38,7 @@ Configure for all home and regular pages: Configure for a single post in the front matter (**Params in front matter have higher precedence**): -```yml +```yaml sequenceDiagrams: enable: true options: "{theme: 'hand'}" diff --git a/exampleSite/content/post/shortcodes.md b/exampleSite/content/post/shortcodes.md index 4b05fe7..d3df732 100644 --- a/exampleSite/content/post/shortcodes.md +++ b/exampleSite/content/post/shortcodes.md @@ -10,7 +10,7 @@ categories: ["shortcodes"] # center, right, left -``` +```markdown ## default ![img](/path/to/img.gif "img") diff --git a/exampleSite/content/post/syntax-highlighting.md b/exampleSite/content/post/syntax-highlighting.md index b2f0770..9e5558d 100644 --- a/exampleSite/content/post/syntax-highlighting.md +++ b/exampleSite/content/post/syntax-highlighting.md @@ -98,3 +98,69 @@ object HelloWorld with Application { ```python print("Hello, World!") ``` + +```go-html-template + + + + {{ .Title }} + + +

{{ .Title }}

+ {{ .Content }} + + +``` + +```go-html-template +{{ partial "header.html" . }} + +

posts

+ {{ range first 10 .Data.Pages }} + {{ if eq .Type "post"}} +

{{ .Title }}

+ {{ end }} + {{ end }} + +

pages

+ {{ range .Data.Pages }} + {{ if or (eq .Type "page") (eq .Type "about") }} +

{{ .Type }} - {{ .Title }} - {{ .RelPermalink }}

+ {{ end }} + {{ end }} + +{{ partial "footer.html" . }} +``` + +--- + +Detect the language + +``` +package hello + +fun main(args: Array) { + println("Hello World!") +} +``` + +``` + +``` + +--- + +By `{{}}..{{}}` + +{{< highlight go-html-template "linenos=table,hl_lines=1 3-7,linenostart=199" >}} +
+
+

{{ .Title }}

+ {{ range .Data.Pages }} + {{ .Render "summary"}} + {{ end }} +
+
+{{< / highlight >}}