8000 Add default section and container class to container helper by mpourismaiel · Pull Request #665 · okkur/syna · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add default section and container class to container helper #665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions layouts/partials/helpers/container.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
{{ (printf "<!-- %s -->" (humanize .Params.fragment)) | safeHTML }}
{{- end }}
{{- if .start }}
<section id="{{ .Name }}" class="{{- printf "fragment %s" .section_class -}}">
<section id="{{ .Name }}" class="{{- printf "fragment %s" (.section_class | default "") -}}">
{{- if ne .in_slot true }}
<div class="{{- printf "container-fluid bg-%s %s" .bg .container_class -}}">
<div class="{{- printf "container-fluid bg-%s %s" .bg (.container_class | default "") -}}">
{{- end }}
<div class="container {{ print (.Params.padding | default (cond (eq .in_slot true) "p-0" "py-5")) -}} {{- printf " %s" .container_class -}}">
<div class="container {{ print (.Params.padding | default (cond (eq .in_slot true) "p-0" "py-5")) -}} {{- printf " %s" (.container_class | default "") -}}">
{{- end -}}
{{- if .end }}
</div>{{/* .container */}}
Expand Down
0