mirror of
https://github.com/adulau/art.git
synced 2024-11-23 18:47:12 +00:00
b8721c353e
This commit uses the Jekyll `link` tag to correctly construct the URL to images with otherwise relative paths. Without this logic, the images would only load when the landing page's permalink was not altered by the user. For example, if the permalink is changed to `get-started` in the Jekyll Front Matter, the relative URLs would become: get-started/assets/images/pic08.jpg However, since the `get-started` path doesn't really exist, this would fail to load the image. As of Jekyll 4.0, the `link` tag is safe to use without prepending `site.baseurl`, so this code works in all situations.
87 lines
3.5 KiB
Markdown
87 lines
3.5 KiB
Markdown
---
|
|
title: Landing
|
|
layout: landing
|
|
description: 'Lorem ipsum dolor sit amet nullam consequa<br />sed veroeros. tempus adipiscing nulla.'
|
|
image: assets/images/pic07.jpg
|
|
nav-menu: true
|
|
---
|
|
|
|
<!-- Main -->
|
|
<div id="main">
|
|
|
|
<!-- One -->
|
|
<section id="one">
|
|
<div class="inner">
|
|
<header class="major">
|
|
<h2>Sed amet aliquam</h2>
|
|
</header>
|
|
<p>Nullam et orci eu lorem consequat tincidunt vivamus et sagittis magna sed nunc rhoncus condimentum sem. In efficitur ligula tate urna. Maecenas massa vel lacinia pellentesque lorem ipsum dolor. Nullam et orci eu lorem consequat tincidunt. Vivamus et sagittis libero. Nullam et orci eu lorem consequat tincidunt vivamus et sagittis magna sed nunc rhoncus condimentum sem. In efficitur ligula tate urna.</p>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Two -->
|
|
<section id="two" class="spotlights">
|
|
<section>
|
|
<a href="generic.html" class="image">
|
|
<img src="{% link assets/images/pic08.jpg %}" alt="" data-position="center center" />
|
|
</a>
|
|
<div class="content">
|
|
<div class="inner">
|
|
<header class="major">
|
|
<h3>Orci maecenas</h3>
|
|
</header>
|
|
<p>Nullam et orci eu lorem consequat tincidunt vivamus et sagittis magna sed nunc rhoncus condimentum sem. In efficitur ligula tate urna. Maecenas massa sed magna lacinia magna pellentesque lorem ipsum dolor. Nullam et orci eu lorem consequat tincidunt. Vivamus et sagittis tempus.</p>
|
|
<ul class="actions">
|
|
<li><a href="generic.html" class="button">Learn more</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section>
|
|
<a href="generic.html" class="image">
|
|
<img src="{% link assets/images/pic09.jpg %}" alt="" data-position="top center" />
|
|
</a>
|
|
<div class="content">
|
|
<div class="inner">
|
|
<header class="major">
|
|
<h3>Rhoncus magna</h3>
|
|
</header>
|
|
<p>Nullam et orci eu lorem consequat tincidunt vivamus et sagittis magna sed nunc rhoncus condimentum sem. In efficitur ligula tate urna. Maecenas massa sed magna lacinia magna pellentesque lorem ipsum dolor. Nullam et orci eu lorem consequat tincidunt. Vivamus et sagittis tempus.</p>
|
|
<ul class="actions">
|
|
<li><a href="generic.html" class="button">Learn more</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section>
|
|
<a href="generic.html" class="image">
|
|
<img src="{% link assets/images/pic10.jpg %}" alt="" data-position="25% 25%" />
|
|
</a>
|
|
<div class="content">
|
|
<div class="inner">
|
|
<header class="major">
|
|
<h3>Sed nunc ligula</h3>
|
|
</header>
|
|
<p>Nullam et orci eu lorem consequat tincidunt vivamus et sagittis magna sed nunc rhoncus condimentum sem. In efficitur ligula tate urna. Maecenas massa sed magna lacinia magna pellentesque lorem ipsum dolor. Nullam et orci eu lorem consequat tincidunt. Vivamus et sagittis tempus.</p>
|
|
<ul class="actions">
|
|
<li><a href="generic.html" class="button">Learn more</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
|
|
<!-- Three -->
|
|
<section id="three">
|
|
<div class="inner">
|
|
<header class="major">
|
|
<h2>Massa libero</h2>
|
|
</header>
|
|
<p>Nullam et orci eu lorem consequat tincidunt vivamus et sagittis libero. Mauris aliquet magna magna sed nunc rhoncus pharetra. Pellentesque condimentum sem. In efficitur ligula tate urna. Maecenas laoreet massa vel lacinia pellentesque lorem ipsum dolor. Nullam et orci eu lorem consequat tincidunt. Vivamus et sagittis libero. Mauris aliquet magna magna sed nunc rhoncus amet pharetra et feugiat tempus.</p>
|
|
<ul class="actions">
|
|
<li><a href="generic.html" class="button next">Get Started</a></li>
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
|
|
</div>
|