mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-11-29 15:08:46 +03:00
Apply suggestions from code review
Co-Authored-By: Radek Kozie. <radoslaw.koziel@gmail.com>
This commit is contained in:
parent
92cc5bcd23
commit
a1c203cb17
1 changed files with 13 additions and 15 deletions
|
@ -3,21 +3,19 @@
|
|||
<pre><code>{{ $inner }}</code></pre>
|
||||
{{ else }}
|
||||
{{ if .IsNamedParams }}
|
||||
<pre
|
||||
class="
|
||||
{{ if .Get "lang" }}language-{{ .Get "lang" }} {{ end }}
|
||||
{{ if .Get "line-numbers" }} line-numbers{{ end }}
|
||||
{{ if .Get "command-line" }} command-line{{ end }}
|
||||
"
|
||||
{{/* line highlight plugin */}}
|
||||
{{ if .Get "line" }} data-line={{ .Get "line" }} {{ end }}
|
||||
{{/* line number plugin */}}
|
||||
{{ if .Get "start" }} data-start={{ .Get "start" }} {{ end }}
|
||||
{{/* command-line plugin */}}
|
||||
{{ if .Get "user" }} data-user={{ .Get "user" }} {{ end }}
|
||||
{{ if .Get "host" }} data-host={{ .Get "host" }} {{ end }}
|
||||
{{ if .Get "prompt" }} data-prompt={{ .Get "prompt" }} {{ end }}
|
||||
{{ if .Get "output" }} data-output={{ .Get "output" }} {{ end }}
|
||||
<pre class="
|
||||
{{- if .Get "lang" }}language-{{ .Get "lang" }}{{ end }}
|
||||
{{- if .Get "line-numbers" }} line-numbers{{ end }}
|
||||
{{- if .Get "command-line" }} command-line{{ end }}"
|
||||
{{- /* line highlight plugin */ -}}
|
||||
{{- if .Get "line" }} data-line="{{ .Get "line" }}"{{ end }}
|
||||
{{- /* line number plugin */ -}}
|
||||
{{- if .Get "start" }} data-start="{{ .Get "start" }}"{{ end }}
|
||||
{{- /* command-line plugin */ -}}
|
||||
{{- if .Get "user" }} data-user="{{ .Get "user" }}"{{ end }}
|
||||
{{- if .Get "host" }} data-host="{{ .Get "host" }}"{{ end }}
|
||||
{{- if .Get "prompt" }} data-prompt="{{ .Get "prompt" }}"{{ end }}
|
||||
{{- if .Get "output" }} data-output="{{ .Get "output" }}"{{ end }}
|
||||
><code {{ if .Get "lang" }}class="language-{{ .Get "lang" }}"{{ end }}
|
||||
>{{ $inner }}</code></pre>
|
||||
{{ else }}
|
||||
|
|
Loading…
Reference in a new issue