Update New Homepage
This commit is contained in:
parent
32360c9176
commit
54c5d4b093
13 changed files with 65 additions and 44 deletions
16
_config.yml
16
_config.yml
|
@ -15,13 +15,18 @@ title: "Feeling Responsive"
|
|||
slogan: "A Responsive Theme for Jekyll"
|
||||
|
||||
|
||||
# The description is used on homepage and important for search engine optimization
|
||||
description: "Feeling Responsive is built on the fabulous Foundation Framework and comes with lots of features to show your content right."
|
||||
# The description is used on homepage and in the footer to quickly describe your website. Use a maximum of 150 characters for SEO-purposes.
|
||||
description: "»Feeling Responsive« is a responsive theme for Jekyll based on the fabulous foundation framework with beautiful typography and a bright color palette."
|
||||
|
||||
|
||||
# This is a switch to easily change the {{ site.url }}-variable to develop the theme locally
|
||||
# - url: "http://localhost:4000"
|
||||
url: "http://phlow.github.io/feeling-responsive"
|
||||
baseurl: ""
|
||||
|
||||
|
||||
# Logo size is 600x80 pixels
|
||||
logo: "logo.png"
|
||||
baseurl: ""
|
||||
|
||||
|
||||
# Paginates all X entries
|
||||
|
@ -32,11 +37,6 @@ paginate: 5
|
|||
paginate_path: "blog/page:num"
|
||||
|
||||
|
||||
# This is a switch to easily change the {{ site.url }}-variable to develop the theme locally
|
||||
# - url: "http://localhost:4000"
|
||||
url: "http://phlow.github.io/feeling-responsive"
|
||||
|
||||
|
||||
# Theme works best with Kramdown (using the table of contents function)
|
||||
markdown: kramdown
|
||||
permalink: /:categories/:title/
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
<h2>Why use this theme?</h2>
|
||||
|
||||
<p>
|
||||
<em>Feeling Responsive</em> is heavily built on <a href="http://foundation.zurb.com/">Foundation</a>, the fabulous responsive webdesign framework by Zurb. It supports a 12-column grid, persuades you with beautiful <a href="{{ site.url }}/design/typography/">typography</a> and is heavily optimized for speed.
|
||||
</p>
|
||||
|
|
@ -1 +0,0 @@
|
|||
»Feeling Responsive« is a responsive theme based on the fantastic foundation framework with beautiful typography and a bright color palette.
|
6
_includes/blog-entries.html
Normal file
6
_includes/blog-entries.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<ul class="side-nav">
|
||||
{% for post in site.posts limit:include.entries offset:include.offset %}
|
||||
<li><a href="{{ site.url }}{{ post.url }}">{% if post.subheadline %}{{ post.subheadline }} · {% endif %}<strong>{{ post.title }}</strong></a></li>
|
||||
{% endfor %}
|
||||
<li class="text-right"><a href="{{ site.url }}/blog/"><strong>More ›</strong></a></li>
|
||||
</ul>
|
|
@ -5,7 +5,7 @@
|
|||
<h5 class="shadow-black">About this Website</h5>
|
||||
|
||||
<p class="shadow-black">
|
||||
{% include _site_description.html %}
|
||||
{{ site.description }}
|
||||
</p>
|
||||
</div><!-- /.large-6.columns -->
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<script src="{{ site.url }}/assets/js/app.min.js"></script>
|
||||
<script src="{{ site.url }}/assets/js/app.min.js"></script>
|
||||
|
||||
<script>
|
||||
$("#masthead").backstretch("{{ site.url }}/assets/img/{% if page.image.header %}{{ page.image.header }}{% else %}unsplash_3.jpg{% endif %}");
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
<ul class="side-nav">
|
||||
{% assign counter = 1 %}
|
||||
{% for post in site.posts reversed %}
|
||||
{% if post.categories contains include.list-category %}
|
||||
<li><a href="{{ site.url }}{{ post.url }}">#{{ counter }} {{ post.title }}</a></li>
|
||||
{% assign counter=counter | plus:1 %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<li> </li>
|
||||
</ul>
|
|
@ -1,8 +0,0 @@
|
|||
<ul class="side-nav">
|
||||
{% for post in site.posts reversed %}
|
||||
{% if post.categories contains include.list-category %}
|
||||
<li><a href="{{ site.url }}{{ post.url }}">{% if post.chapter != nil %}{{ post.chapter }}. {% endif %}{{ post.title }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<li> </li>
|
||||
</ul>
|
|
@ -9,7 +9,8 @@
|
|||
<link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic%7cVolkhov:400,700' rel='stylesheet' type='text/css'>
|
||||
{% if site.google_site_verification %}<meta name="google-site-verification" content="{{ site.google_site_verification}}" />{% endif %}
|
||||
{% if site.bing_webmastertools_id %}<meta name="msvalidate.01" content="{{ site.bing_webmastertools_id }}" />{% endif %}
|
||||
{% if page.meta_description %}<meta name="description" content="{{ page.meta_description | strip_html | escape }}"/>{% elsif page.description %}<meta name="description" content="{{ page.description | strip_html | escape }}"/>{% endif %}
|
||||
{% if page.meta_description %}<meta name="description" content="{{ page.meta_description | strip_html | escape }}"/>{% elsif page.description %}<meta name="description" content="{{ page.description | strip_html | escape }}"/>{% elsif site.description %}<meta name="description" content="{{ site.description | strip_html | escape }}"/>{% endif %}
|
||||
|
||||
{% if site.google_author %}<link rel="author" href="{{ site.google_author }}"/>{% endif %}
|
||||
{% if site.favicon %}<link rel="shortcut icon" href="{{ site.url }}{{ site.favicon }}" type="image/png" />{% endif %}
|
||||
{% if site.favicon %}<link rel="icon" href="{{ site.url }}{{ site.favicon }}" type="image/png" />{% endif %}
|
||||
|
@ -23,7 +24,7 @@
|
|||
<meta property="og:locale" content="{% if site.og_locale == nil %}en_EN{% else %}{{ site.og_locale }}{% endif %}" />
|
||||
{% if site.og_type %}<meta property="og:type" content="website" />{% endif %}
|
||||
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
|
||||
{% if page.meta_description %}<meta property="og:description" content="{{ page.meta_description | strip_html | escape }}"/>{% elsif page.description %}<meta name="description" content="{{ page.description | strip_html | escape }}"/>{% elsif site.description %}<meta name="description" content="{{ site.description | strip_html | escape }}"/>{% endif %}
|
||||
{% if page.meta_description %}<meta property="og:description" content="{{ page.meta_description | strip_html | escape }}"/>{% elsif page.description %}<meta property="og:description" content="{{ page.description | strip_html | escape }}"/>{% elsif site.description %}<meta property="og:description" content="{{ site.description | strip_html | escape }}"/>{% endif %}
|
||||
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
|
||||
{% if site.title %}<meta property="og:site_name" content="{{ site.title }}" />{% endif %}
|
||||
{% if page.image.thumb %}<meta property="og:image" content="{{ site.url }}/assets/img/{{ page.image.thumb }}" />{% endif %}
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
---
|
||||
layout: page-fullwidth
|
||||
title: "Full-Width Page"
|
||||
title: "The Full-Width Page Template"
|
||||
subheadline: "Multi-Device Layouts"
|
||||
description: "The full-width page format gives you all the space you need to show your content using the grid."
|
||||
date: 2014-07-05 07:00:00
|
||||
categories:
|
||||
- design
|
||||
image:
|
||||
|
@ -12,7 +11,6 @@ image:
|
|||
*Feeling Responsive* is built on Foundation. And of course, we make use of the wonderful grid system and so can you. Find out more about [constructing beautiful layouts][1] in the foundation documentation.
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="medium-4 columns top-30">
|
||||
<img src="{{ site.url }}/assets/img/unsplash_1.jpg" alt="">
|
||||
</div><!-- /.medium-4.columns -->
|
|
@ -6,6 +6,7 @@ meta_description: "Feeling Responsive uses Volkhov for headlines, Lato for every
|
|||
description: "<em>Feeling Responsive</em> uses Volkhov for headlines, Lato for everything else and if you are in need to show some code, it will be in Lucida Console."
|
||||
image:
|
||||
header: "no"
|
||||
thumb: "unsplash_7_thumb.jpg"
|
||||
categories:
|
||||
- design
|
||||
---
|
||||
|
|
48
index.html
48
index.html
|
@ -12,17 +12,16 @@ image:
|
|||
</div><!-- /#header-home -->
|
||||
|
||||
|
||||
|
||||
<div class="row top-30">
|
||||
|
||||
<div class="medium-4 columns">
|
||||
<a href="{{ site.url }}/portfolio/"><img src="{{ site.url }}/assets/img/unsplash_1-303x182.jpg" alt=""></a>
|
||||
<a href="{{ site.url }}/design/portfolio/"><img src="{{ site.url }}/assets/img/unsplash_1-303x182.jpg" alt=""></a>
|
||||
<h2>Portfolio</h2>
|
||||
<p>
|
||||
<em>Feeling Responsive</em> supports you with layouts to present your favorite and actual work. With the gallery- and portfolio-template you can show off your work as a designer, programmer, photographer or artist.
|
||||
</p>
|
||||
|
||||
<p><a class="button tiny radius" href="{{ site.url }}/portfolio/">More ›</a></p>
|
||||
<p><a class="button tiny radius" href="{{ site.url }}/design/portfolio/">More ›</a></p>
|
||||
|
||||
</div><!-- /.medium-4.columns -->
|
||||
|
||||
|
@ -30,7 +29,11 @@ image:
|
|||
<div class="medium-4 columns">
|
||||
<a href="{{ site.url }}/about/"><img src="{{ site.url }}/assets/img/unsplash_8-303x182.jpg" alt=""></a>
|
||||
|
||||
{% include _about.html %}
|
||||
<h2>Why use this theme?</h2>
|
||||
|
||||
<p>
|
||||
<em>Feeling Responsive</em> is heavily built on <a href="http://foundation.zurb.com/">Foundation</a>, the fabulous responsive webdesign framework by Zurb. It supports a 12-column grid, persuades you with beautiful <a href="{{ site.url }}/design/typography/">typography</a> and is heavily optimized for speed.
|
||||
</p>
|
||||
|
||||
<p><a class="button tiny radius" href="{{ site.url }}/about/">More ›</a></p>
|
||||
</div><!-- /.medium-4.columns -->
|
||||
|
@ -48,3 +51,40 @@ image:
|
|||
</div><!-- /.medium-4.columns -->
|
||||
|
||||
</div><!-- /.row -->
|
||||
|
||||
|
||||
<div class="row top-60">
|
||||
<div class="small-12 columns">
|
||||
<h2>New Blog Articles</h2>
|
||||
</div><!-- /.small-12.columns -->
|
||||
</div><!-- /.row -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="blog-index" class="row">
|
||||
<div class="medium-6 columns">
|
||||
{% for post in site.posts limit:1 %}
|
||||
<p class="subheadline">{% if post.subheadline %}{{ post.subheadline }}{% endif %}<span class="subheader"><small> {% if post.categories %}{{ post.categories | join: ' · ' }}{% endif %}</small></span></p>
|
||||
<h2><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></h2>
|
||||
|
||||
<p>
|
||||
{% if post.image.thumb %}<a href="{{ site.url }}{{ post.url }}" title="{{ post.title escape_once }}"><img src="{{ site.url }}/assets/img/{{ post.image.thumb }}" class="alignleft" width="120" height="120" alt="{{ page.title escape_once }}"></a>{% endif %}
|
||||
|
||||
{% if post.meta_description %}{{ post.meta_description | strip_html | escape }}{% elsif post.description %}{{ post.description | strip_html | escape }}{% endif %}
|
||||
|
||||
<a href="{{ site.url }}{{ post.url }}" title="Read {{ post.title escape_once }}"><strong>Read more ›</strong></a>
|
||||
</p>
|
||||
|
||||
{% endfor %}
|
||||
</div><!-- /.medium-5.columns -->
|
||||
|
||||
|
||||
<div class="medium-6 columns">
|
||||
<p><strong>More Articles</strong></p>
|
||||
{% include blog-entries.html entries='3' offset='1' %}
|
||||
</div><!-- /.medium-7.columns -->
|
||||
</div><!-- /.row -->
|
||||
|
||||
|
|
Reference in a new issue