Skip to content
Snippets Groups Projects
Commit a9b68ca6 authored by alexisben's avatar alexisben
Browse files

preview

parent 28207ba1
No related branches found
No related tags found
No related merge requests found
......@@ -3,3 +3,28 @@ blob = component.blob
return unless blob
%>
<%= kamifusen_tag blob, width: 600, class: 'img-fluid mb-1' %>
{{- $position := .position -}}
{{- $title := .title -}}
{{- with .data -}}
{{- $buttons := and .button.text .button_secondary.text -}}
<section class="block-image{{ if $title }} block-with-title{{ end }}" id="block-{{ $position }}">
<div class="container">
<div class="block-content">
<%= kamifusen_tag blob, width: 600, class: 'img-fluid mb-1' %>
<figcaption>
{{- if $title }}
<p>{{ partial "PrepareHTML" $title }}</p>
{{ end -}}
{{- if partial "PrepareHTML" .credit }}
<p><small>{{ partial "PrepareHTML" .credit }}</small></p>
{{ end -}}
</figcaption>
</figure>
{{- end -}}
</div>
</div>
</section>
{{- end -}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment