Add reusable layout partials for easier page creation
- Create content-card-section.html partial for card-based content - Create step-by-step-section.html partial for process steps - Create contact-section.html partial for contact information - Create main-content-section.html general purpose partial that combines all elements - Add simplified examples using the new partials (acheter-credit-simple and commande-sim-simple) - These partials follow the existing site theme and make creating new pages much faster
This commit is contained in:
27
layouts/partials/contact-section.html
Normal file
27
layouts/partials/contact-section.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{{ $title := .title | default "Informations de contact" }}
|
||||
{{ $contactInfo := .contactInfo }}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h3>{{ $title }}</h3>
|
||||
<div class="row">
|
||||
{{ range $contactInfo }}
|
||||
<div class="col-md-6">
|
||||
<p><strong>{{ .title }}:</strong></p>
|
||||
{{ if .icon }}
|
||||
<p><img src="{{ .icon }}" alt="{{ .alt }}" class="mr-2" style="width: 20px;"> {{ .content }}</p>
|
||||
{{ else }}
|
||||
<p>{{ .content }}</p>
|
||||
{{ end }}
|
||||
{{ if .hours }}<p>{{ .hours }}</p>{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user