Browse Source

Fixed the index to use a custom layout

master
Kenneth Skovhede 9 years ago
parent
commit
ec7a3ac281
  1. 7
      _includes/landing.html
  2. 1
      _layouts/default.html
  3. 71
      _layouts/home.html
  4. BIN
      images/wood-texture-1600x800.jpg
  5. 5
      index.md

7
_includes/landing.html

@ -1,7 +0,0 @@
<div class="page-lead" style="background-image:url(//mmistakes.github.io/skinny-bones-jekyll/images/wood-texture-1600x800.jpg)">
<div class="wrap page-lead-content">
<h1>{{ site.title }}</h1>
<h2>{{ site.description }}</h2>
<a href="//github.com/duplicati/duplicati/releases" class="btn-inverse">Download</a> &nbsp; or &nbsp; <a href="https://github.com/duplicati/duplicati" class="btn-inverse">View on GitHub</a>
</div><!-- /.page-lead-content -->
</div>

1
_layouts/default.html

@ -33,7 +33,6 @@
{% include browser-upgrade.html %}
{% include header.html %}
{% include navigation-sliding.html %}
{% include landing.html %}
<div id="page-wrapper">
{{ content }}

71
_layouts/home.html

@ -0,0 +1,71 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} • {% endif %}{{ site.title }}</title>
{% if page.excerpt %}<meta name="description" content="{{ page.excerpt | strip_html }}">{% endif %}
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}
{% if page.author %}
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}
{% endif %}
{% include open-graph.html %}
{% if author.google.plus %}<link rel="author" href="https://plus.google.com/{{ author.google.plus }}"/>{% endif %}
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
<link href="{{ site.url }}/atom.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Atom Feed">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="cleartype" content="on">
<link rel="stylesheet" href="{{ site.url }}/css/main.css">
<!-- HTML5 Shiv and Media Query Support for IE -->
<!--[if lt IE 9]>
<script src="{{ site.url }}/js/vendor/html5shiv.min.js"></script>
<script src="{{ site.url }}/js/vendor/respond.min.js"></script>
<![endif]-->
</head>
<body>
{% include header.html %}
{% include navigation-sliding.html %}
{% if page.image.feature %}
<div class="page-lead" style="background-image:url({{ site.url }}/images/{{ page.image.feature }})">
<div class="wrap page-lead-content">
<h1>Skinny Bones</h1>
<h2>Jump start your Jekyll site with something thin and light.</h2>
<a href="{{ site.url }}/getting-started/" class="btn-inverse">Start Using Skinny Bones</a> &nbsp; or &nbsp; <a href="https://github.com/mmistakes/skinny-bones-jekyll" class="btn-inverse">View on GitHub</a>
</div><!-- /.page-lead-content -->
</div><!-- /.page-lead -->
{% endif %}
<div id="page-wrapper">
{% include browser-upgrade.html %}
<div id="main" role="main">
<div class="wrap">
<div class="page-title">
<h1>{{ page.title }}</h1>
{% if page.excerpt %}<h2>{{ page.excerpt }}</h2>{% endif %}
</div>
<div class="archive-wrap">
<div class="page-content">
{{ content }}
</div><!-- /.page-content -->
</div class="archive-wrap"><!-- /.archive-wrap -->
</div><!-- /.wrap -->
</div><!-- /#main -->
{% include footer.html %}
</div>
<script src="{{ site.url }}/js/vendor/jquery-1.9.1.min.js"></script>
<script src="{{ site.url }}/js/main.js"></script>
</body>
</html>

BIN
images/wood-texture-1600x800.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

5
index.md

@ -1,7 +1,8 @@
---
layout: archive
layout: home
permalink: /
title: "Duplicati"
image:
feature: wood-texture-1600x800.jpg
---

Loading…
Cancel
Save