Sha256: 247578a522a1c5db099d28e20accaa52ecb427c44bf016c9fafc10bdbaebf04b
Contents?: true
Size: 1.94 KB
Versions: 3
Compression:
Stored size: 1.94 KB
Contents
<header class="{% if include.object.image %}background_image{% else %}svg{% endif%}"> {% if include.object.image %} {% assign header_image_path = include.object.image.path | replace: '/assets/images', '' %} {% picture header_image {{header_image_path}} alt=include.object.image.alt%} {% endif %} <div class="container"> <div class="jumbotron text-white d-flex flex-column"> {% if include.object.items %} {% for section in include.object.items %} {% if section.type == "title" %} <h1 class="display-3 font-weight-bold">{{section.content}}</h1> {% elsif section.type == "para" %} <p class="lead font-weight-bold"> {{section.content}} </p> {% elsif section.type == "buttons" %} <p class="lead"> {% for btn in section.content %} <a class="btn {% if btn.class %}{{btn.class}}{% endif %}" href="{{btn.url}}" role="button">{{btn.title}}</a> {% endfor %} </p> {% endif %} {% endfor %} {% else %} <h1 class="display-3 font-weight-bold">{{include.object.title}}</h1> <p class="lead font-weight-bold"> {{include.object.description}} </p> {% assign author = site.data.authors[page.author] %} {% if author %} <span class="author"> Posted by <a href="{{ author.web }}" target="_blank">{{ author.name }}</a> on {{include.object.date | date: "%A, %B %-d, %Y" }} </span> {% endif %} {% endif %} </div> </div> </header>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
seriously_simple_static_starter-0.2.2 | _includes/header.html |
seriously_simple_static_starter-0.2.1 | _includes/header.html |
seriously_simple_static_starter-0.2.0 | _includes/header.html |