mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 22:55:37 +00:00
Merge pull request #7 from yuzu-emu/css
base layout changes and table shortcode
This commit is contained in:
commit
42f620f14a
|
@ -62,28 +62,28 @@
|
||||||
</div>
|
</div>
|
||||||
{{ else if eq $left_sidebar true }}
|
{{ else if eq $left_sidebar true }}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="columns">
|
<div class="columns is-centered">
|
||||||
|
<div class="column is-four-fifths">
|
||||||
|
{{ block "main" . }}{{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
{{ block "sidebar" . }}{{ end }}
|
{{ block "sidebar" . }}{{ end }}
|
||||||
{{ partial "layout/sidebar" }}
|
{{ partial "layout/sidebar" }}
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-two-thirds">
|
|
||||||
{{ block "main" . }}{{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="columns">
|
<div class="columns is-centered">
|
||||||
<div class="column is-two-thirds">
|
<div class="column is-four-fifths">
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
{{ block "sidebar" . }}{{ end }}
|
{{ block "sidebar" . }}{{ end }}
|
||||||
{{ partial "layout/sidebar" }}
|
{{ partial "layout/sidebar" }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
6
layouts/shortcodes/table.html
Normal file
6
layouts/shortcodes/table.html
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{{ $htmlTable := .Inner | markdownify }}
|
||||||
|
{{ $class := .Get 0 }}
|
||||||
|
{{ $old := "<table>" }}
|
||||||
|
{{ $new := printf "<table class=\"%s\">" $class }}
|
||||||
|
{{ $htmlTable := replace $htmlTable $old $new }}
|
||||||
|
{{ $htmlTable | safeHTML }}
|
Loading…
Reference in a new issue