mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
custom widget: Support full width no-title mode
This commit is contained in:
parent
f640bc4250
commit
2605164743
1 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue