mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 12:13:58 +00:00
custom widget: Support full width no-title mode
This commit is contained in:
1 parent
f640bc4250
commit
2605164743
1 file changed
+6
@@ -2,6 +2,7 @@
|
||||
|
||||
<!-- Custom widget -->
|
||||
<div class="row">
|
||||
{{ if $page.Title }}
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
@@ -9,4 +10,9 @@
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ $page.Content }}
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="col-md-12">
|
||||
{{ $page.Content }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
Reference in new issue
Block a user