mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-18 15:33:10 +00:00
Update file arguments
This commit is contained in:
@@ -11,8 +11,8 @@ arguments:
|
|||||||
full:
|
full:
|
||||||
id:
|
id:
|
||||||
class:
|
class:
|
||||||
options:
|
highlight-options:
|
||||||
release: v0.27.6
|
release: v1.0.0
|
||||||
# deprecated arguments
|
# deprecated arguments
|
||||||
path:
|
path:
|
||||||
type: string
|
type: string
|
||||||
@@ -22,3 +22,11 @@ arguments:
|
|||||||
the path of the repository is used as base path instead.
|
the path of the repository is used as base path instead.
|
||||||
deprecated: v1.0.0
|
deprecated: v1.0.0
|
||||||
alternative: file
|
alternative: file
|
||||||
|
options:
|
||||||
|
type: string
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
Hugo highlighting options, see https://gohugo.io/shortcodes/highlight/#options-1.
|
||||||
|
release: v0.27.6
|
||||||
|
deprecated: v1.0.0
|
||||||
|
alternative: highlight-options
|
||||||
|
@@ -73,7 +73,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<div class="border-start border-end border-bottom mb-3">
|
<div class="border-start border-end border-bottom mb-3">
|
||||||
<div class="collapse multi-{{ $id }}{{ if $args.show }} show{{ end }} syntax-highlight" id="body-{{ $id }}">
|
<div class="collapse multi-{{ $id }}{{ if $args.show }} show{{ end }} syntax-highlight" id="body-{{ $id }}">
|
||||||
{{- highlight (trim $content "\r\n") $lang $args.options -}}
|
{{- highlight (trim $content "\r\n") $lang (or $args.highlightOptions $args.options) -}}
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse multi-{{ $id }}{{ if not $args.show }} show{{ end }} p-3" id="footer-{{ $id }}">
|
<div class="collapse multi-{{ $id }}{{ if not $args.show }} show{{ end }} p-3" id="footer-{{ $id }}">
|
||||||
<a class="nav-link active"
|
<a class="nav-link active"
|
||||||
|
Reference in New Issue
Block a user