Sha256: d9f17d7f4d7c9dbdb4faf4083048ede4d73afc6738a40e15a423dc8d6c5135b8

Contents?: true

Size: 1.24 KB

Versions: 6

Compression:

Stored size: 1.24 KB

Contents

{% comment %}
========================================================
array of below is understood
----------------------------
- title: "Section 1"
  sub_title: "Section sub-title"
  image: /assets/img/1.JPG
  alt: 
  excerpt: This page is a demo that shows everything you can do inside portfolio and blog posts. We've included everything you need to create engaging posts about your work, and show off your case studies in a beautiful way.
  btn_text: Read on
  url: /blog
=========================================================
{% endcomment %}

{% if include.id %}
  {% assign data = page[include.id] %}
{% else %}
  {% assign data = page.section_row %}
{% endif %}

<div class="animation-wrapper">
  {% for r in data %}
  <div class="fade-in pb-7">
    <div class="row">
      <div class="col">
        <h1 class="display-4 text-center mb-0">{{ r.title }}</h1>
        <p class="text-center text-info text-lg">{{ r.sub_title }}</p>
        <img src="{{ r.image }}" class="img-fluid" alt="{{ r.alt }}">
      </div>
    </div>
    <div class="row">
      <div class="col-8 offset-2">
        <p class="text-lg mt-3">{{ r.excerpt }}</p>
        <a class="btn btn-primary" href="{{ r.url }}">{{ r.btn_text }}</a>
      </div>
    </div>
  </div>
  {% endfor %}
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hardpool-flat-3.1.0 _includes/section_row.html
hardpool-flat-3.0.0 _includes/section_row.html
hardpool-flat-2.2.0 _includes/section_row.html
hardpool-flat-2.1.0 _includes/section_row.html
hardpool-flat-2.0.0 _includes/section_row.html
hardpool-flat-1.0.0 _includes/section_row.html