7: add bench.monster and refactor structure
This commit is contained in:
parent
a5cd915561
commit
fe025fe1b2
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
34
layouts/shortcodes/spoil_group.html
Normal file
34
layouts/shortcodes/spoil_group.html
Normal file
@ -0,0 +1,34 @@
|
||||
{{ $TITLE := (.Get "title") }}
|
||||
|
||||
{{ $HEADER := "" }}
|
||||
|
||||
{{ if eq $TITLE "lscpu" }}
|
||||
{{ $HEADER = "<h3>CPU <code>lscpu</code> Information</h3>" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $TITLE "yabs" }}
|
||||
{{ $HEADER = "<h3>YABS</h3>" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $TITLE "nws" }}
|
||||
{{ $HEADER = "<h3>NWS.sh</h3>" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $TITLE "benchmonster" }}
|
||||
{{ $HEADER = "<h3>Bench.Monster <code>-all</code></h3>" }}
|
||||
{{ end }}
|
||||
|
||||
<h3>{{ $HEADER | safeHTML }}</h3>
|
||||
|
||||
{{/*
|
||||
The Click to show design decision is not yet decided, will keep it as is until the next benchmark cycle
|
||||
|
||||
<details class="spoiler">
|
||||
<summary>Click to show</summary>
|
||||
<div class="spoiler-content">
|
||||
{{ .Inner }}
|
||||
</div>
|
||||
</details>
|
||||
*/}}
|
||||
|
||||
{{ .Inner }}
|
@ -1,13 +0,0 @@
|
||||
{{- /*
|
||||
For use with 7
|
||||
*/}}
|
||||
|
||||
<h3>CPU <code>lscpu</code> Information</h3>
|
||||
|
||||
<details class="spoiler">
|
||||
<summary>Click to show</summary>
|
||||
<div class="spoiler-content">
|
||||
<pre>{{ .Inner | safeHTML }}</pre>
|
||||
</div>
|
||||
</details>
|
||||
|
@ -1,13 +0,0 @@
|
||||
{{- /*
|
||||
For use with 7
|
||||
*/}}
|
||||
|
||||
<h3>NWS.sh</h3>
|
||||
|
||||
<details class="spoiler">
|
||||
<summary>Click to show</summary>
|
||||
<div class="spoiler-content">
|
||||
<pre>{{ .Inner | safeHTML }}</pre>
|
||||
</div>
|
||||
</details>
|
||||
|
9
layouts/shortcodes/spoil_subgroup.html
Normal file
9
layouts/shortcodes/spoil_subgroup.html
Normal file
@ -0,0 +1,9 @@
|
||||
{{ $date := time (.Get "date") }}
|
||||
{{ $formatted := $date.Format "02 Jan, 2006" }}
|
||||
|
||||
<details class="spoiler">
|
||||
<summary>📅 {{ $formatted }}</summary>
|
||||
<div class="spoiler-content">
|
||||
<pre>{{ .Inner | safeHTML }}</pre>
|
||||
</div>
|
||||
</details>
|
@ -1,12 +0,0 @@
|
||||
{{- /*
|
||||
For use with 7
|
||||
*/}}
|
||||
|
||||
<h3>YABS</h3>
|
||||
|
||||
<details class="spoiler">
|
||||
<summary>Click to show</summary>
|
||||
<div class="spoiler-content">
|
||||
<pre>{{ .Inner | safeHTML }}</pre>
|
||||
</div>
|
||||
</details>
|
Loading…
x
Reference in New Issue
Block a user