Browse Source

Add missing shortcodes for G-machine display

sidenotes
Danila Fedorin 2 years ago
parent
commit
c0b5d67c3d
  1. 8
      layouts/shortcodes/gmachine
  2. 2
      layouts/shortcodes/gmachine_css
  3. 8
      layouts/shortcodes/gmachine_inner

8
layouts/shortcodes/gmachine

@ -0,0 +1,8 @@
<div class="gmachine-instruction">
<div class="gmachine-instruction-name">
{{ .Get 0 }}
</div>
<div class="gmachine-instruction-sem">
{{ .Inner }}
</div>
</div>

2
layouts/shortcodes/gmachine_css

@ -0,0 +1,2 @@
{{ $style := resources.Get "scss/gmachine.scss" | resources.ToCSS | resources.Minify }}
<link rel="stylesheet" href="{{ $style.Permalink }}">

8
layouts/shortcodes/gmachine_inner

@ -0,0 +1,8 @@
<div class="gmachine-inner">
<div class="gmachine-inner-label">
{{ .Get 0 }}
</div>
<div class="gmachine-inner-text">
{{ .Inner }}
</div>
</div>
Loading…
Cancel
Save