Skip to content

Commit

Permalink
chore: drop highlight docs, just use normal codeblock instead
Browse files Browse the repository at this point in the history
  • Loading branch information
HEIGE-PCloud committed May 11, 2024
1 parent 75a974c commit 15cdbe0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,6 @@ hiddenFromSearch: true

{{< gist spf13 7896402 >}}

## highlight

{{< highlight html >}}
<section id="main">
<div>
<h1 id="title">{{ .Title }}</h1>
{{ range .Pages }}
{{ .Render "summary"}}
{{ end }}
</div>
</section>
{{< /highlight >}}

## param

{{< param description >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,38 +73,6 @@ The HTML looks like this:
<script type="application/javascript" src="https://gist.github.com/spf13/7896402.js"></script>
```

## highlight

[Documentation of `highlight`](https://gohugo.io/content-management/shortcodes#highlight)

Example `highlight` input:

```markdown
{{</* highlight html */>}}
<section id="main">
<div>
<h1 id="title">{{ .Title }}</h1>
{{ range .Pages }}
{{ .Render "summary"}}
{{ end }}
</div>
</section>
{{</* /highlight */>}}
```

The rendered output looks like this:

{{< highlight html >}}
<section id="main">
<div>
<h1 id="title">{{ .Title }}</h1>
{{ range .Pages }}
{{ .Render "summary"}}
{{ end }}
</div>
</section>
{{< /highlight >}}

## param

[Documentation of `param`](https://gohugo.io/content-management/shortcodes#param)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,38 +74,6 @@ Hugo 附带了一组预定义的 shortcodes, 它们实现了一些非常常见
<script type="application/javascript" src="https://gist.github.com/spf13/7896402.js"></script>
```

## highlight

[`highlight` 的文档](https://gohugo.io/content-management/shortcodes#highlight)

一个 `highlight` 示例:

```markdown
{{</* highlight html */>}}
<section id="main">
<div>
<h1 id="title">{{ .Title }}</h1>
{{ range .Pages }}
{{ .Render "summary"}}
{{ end }}
</div>
</section>
{{</* /highlight */>}}
```

呈现的输出效果如下:

{{< highlight html >}}
<section id="main">
<div>
<h1 id="title">{{ .Title }}</h1>
{{ range .Pages }}
{{ .Render "summary"}}
{{ end }}
</div>
</section>
{{< /highlight >}}

## param

[`param` 的文档](https://gohugo.io/content-management/shortcodes#param)
Expand Down

0 comments on commit 15cdbe0

Please sign in to comment.