Sha256: 27cff1b01bf0806b3c2412074997d314741691ab563a809a957a9a93a2247a81

Contents?: true

Size: 1.74 KB

Versions: 1

Compression:

Stored size: 1.74 KB

Contents

	<!DOCTYPE HTML>
	<!--
	Prologue by HTML5 UP
	html5up.net | @ajlkn
	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
	Jekyll integration by Chris Bobbe | chrisbobbe.github.io
	-->
	<html>

	{% include head.html %}

	<body>
		
		{% include header.html %}
		
		<!-- Main -->
		<div id="main">
			{% assign sections = site.sections | where_exp: 'section','section.order >= 1' %}
			
			{% if page.permalink %}
				<!-- This enables the 404 page, the only page that should
			 		have a permalink declared in its frontmatter. -->
				{% assign sections = sections | push: page %}
			{% endif %}
			
			{% unless sections == null %}
				{% assign sections = sections | sort: 'order' %}
				
				<!-- Sections -->
				{% for section in sections %}
				
					{% assign title = section.title | default: 'Untitled' %}
					{% assign slug = section.title | slugify | default: 'untitled' %}
					
					{% if section.order == 1 %}
						{% assign class = 'shade-one cover dark' %}
					{% else %}
						{% capture class %}
							shade-{% cycle 'two', 'three', 'four', 'three' %}
						{% endcapture %}
					{% endif %}
					
					{% if section.auto-header == 'none' %}
						{% assign heading = "" %}
					{% elsif section.auto-header == null or section.auto-header == 'use-title' %}
						{% capture heading %}
							<header>
								<h2>{{ title }}</h2>
							</header>
						{% endcapture %}
					{% else %}
						{% capture heading %}
							<header>
								<h2>{{ section.auto-header }}</h2>
							</header>
						{% endcapture %}
					{% endif %}
					
					{% include section.html id=slug class=class heading=heading content=section.content %}
				
				{% endfor %}
			
			{% endunless %}
		</div>
		
		{% include footer.html %}
		
	</body>

	</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-prologue-0.2.4 _layouts/home.html