From db9b6964081759c2f5f4b0cd8ab5199c37c9cee6 Mon Sep 17 00:00:00 2001 From: KaiKimera Date: Thu, 11 Apr 2024 00:02:04 +0300 Subject: [PATCH] 2024-04-10 21:02:04 --- layouts/shortcodes/code.html | 40 --------------------- layouts/shortcodes/terminal.html | 62 -------------------------------- 2 files changed, 102 deletions(-) delete mode 100644 layouts/shortcodes/code.html delete mode 100644 layouts/shortcodes/terminal.html diff --git a/layouts/shortcodes/code.html b/layouts/shortcodes/code.html deleted file mode 100644 index 359c4fe..0000000 --- a/layouts/shortcodes/code.html +++ /dev/null @@ -1,40 +0,0 @@ -{{- /* -Code block with syntax highlighting. - -@param {string} (positional parameter 0) Syntax highlighting. - -@returns {template.HTML} - -@examples - - {{< code >}} - make && make install && make basic-pbx && make config && ldconfig - {{< /code >}} - - {{< code "bash" >}} - make && make install && make basic-pbx && make config && ldconfig - {{< /code >}} -*/ -}} - -{{ $lang := (.Get 0) }} -{{ $cp := ((printf "clipboard-%s" (delimit (shuffle (seq 11 99)) "")) | md5) }} - -
-
-
- {{ if ($lang) }}{{ $lang = (printf "class='language-%s'" ($lang)) }}{{ end }} -
{{ (trim (.Inner) "\n\r") }}
-
-
- -
-
-
diff --git a/layouts/shortcodes/terminal.html b/layouts/shortcodes/terminal.html deleted file mode 100644 index f83e951..0000000 --- a/layouts/shortcodes/terminal.html +++ /dev/null @@ -1,62 +0,0 @@ -{{- /* -This shortcode allows you to create a simulation of an OS terminal window. - -@param {string} os [linux|windows] -@param {string} mode [root] - -@returns {template.HTML} - -@examples - - {{< terminal os="windows" >}} - cd D:\Documents - {{< /terminal >}} - - {{< terminal os="windows" mode="root" >}} - Dism /Get-ImageInfo /ImageFile:"C:\BuildFarm\WIM\install.wim" - {{< /terminal >}} - - {{< terminal os="linux" >}} - bash favicon.sh png - {{< /terminal >}} - - {{< terminal os="linux" mode="root" >}} - dd if=image.iso of=/dev/sdc bs=4M oflag=direct status=progress; sync - {{< /terminal >}} -*/ -}} - -{{ $os := (.Get "os") | default "linux" }} -{{ $mode := (.Get "mode") | default "user" }} -{{ $lang := ((.Get "lang") | default "plaintext") }} - -{{ $cp := ((printf "clipboard-%s" (delimit (shuffle (seq 11 99)) "")) | md5) }} - -
-
-
-
-
- -
-
-
{{ (i18n "terminal") }}
-
-
- -
-
-
-
-
{{ (trim (.Inner) "\n\r") }}
-
-
-