Commit 0f467a99 authored by Olga Brani's avatar Olga Brani

Add blog page to site

parent 60febd5f
......@@ -8,4 +8,6 @@
url: '/usecases/'
- title: Community
url: '/community/'
- title: Blog
url: '/blog/'
- slug: release
name: release
- slug: conference
name: conference
- slug: news
name: news
- slug: ganeti
name: ganeti
- slug: fosdem
name: fosdem
......@@ -18,7 +18,6 @@
<a href="{{ p.url | prepend: site.baseurl }}">{{ p.title }}</a>
</li>
{% endfor %}
<li><a href="http://synnefo-software.blogspot.gr/" target="_blank">Blog</a></li>
{% if page.social %}
<li class="social">
<a href="https://twitter.com/{{ site.twitter_username }}" target="_blank" class="icons icon-twitter" title="Follow Synnefo on twitter"><span>twitter</span></a>
......
<div class="post">
<p class="author">
<span class="date">{{ post.date | date_to_long_string }}</span>
</p>
<h3><a href="{{ post.url | prepend: site.baseurl}}">{{ post.title }}</a></h3>
{{ post.content | split:'<!--break-->' | first }}
{% if post.content contains '<!--break-->' %}
<a href="{{ post.url | prepend: site.baseurl}}" class="more"> Read more...</a>
{% endif %}
</div>
\ No newline at end of file
---
layout: page
title: Blog
layoutCls: x-wide
---
{% if page.tags.size > 0 %}
{% capture tags_content %}Categories: {% endcapture %}
{% for post_tag in page.tags %}
{% for data_tag in site.data.tags %}
{% if data_tag.slug == post_tag %}
{% assign tag = data_tag %}
{% endif %}
{% endfor %}
{% if tag %}
{% capture tags_content_temp %}{{ tags_content }}<a href="/blog/tag/{{ tag.slug }}/" class="label">{{ tag.name }}</a>{% if forloop.last == false %}, {% endif %}{% endcapture %}
{% assign tags_content = tags_content_temp %}
{% endif %}
{% endfor %}
{% else %}
{% assign tags_content = '' %}
{% endif %}
<div class="row">
<div class="small-2 columns sidemenu">
<p><strong>Categories</strong></p>
<ul>
{% for tag in site.data.tags %}
<li>
<a href="{{site.baseurl}}/blog/tag/{{ tag.slug }}/">{{tag.name}}</a>
</li>
{% endfor %}
</ul>
</div>
<div class="small-6 columns post">
{{content}}
</div>
<div class="small-4 columns sidemenu">
<p><strong>All Posts</strong></p>
<ul>
{% for post in site.posts %}
{% if page.url == post.url%}
<li class="active">
{% else %}
<li>
{% endif %}
<span class="date">[{{ post.date | date: "%b %Y" }}]</span> <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
\ No newline at end of file
---
layout: blog
title: Blog
permalink: /blog/
---
<p>Category: <strong>{{page.tag}}</strong></p>
{% if site.tags[page.tag] %}
{% for post in site.tags[page.tag] %}
{% include post-excerpt.html %}
{% endfor %}
{% else %}
<p>There are no posts for this tag.</p>
{% endif %}
---
layout: default
layout: blog
permalink: /blog/
---
<h2>{{ page.title }}</h2>
<p class="author">
<span class="date">Posted on {{ page.date | date_to_long_string }}<br> by {{page.author}}</span>
</p>
<p id="post-meta">{{ tags_content }}</p>
<h1>BLOG</h1>
<div class="row">
<h2>{{ page.title }}</h2>
<p class="author">
<span class="date">Posted on {{ page.date | date_to_long_string }}</span>
</p>
{{ content }}
{{ content }}
</div>
\ No newline at end of file
<p><a href="{{site.baseurl}}/blog" class="button">Back to posts</a></p>
\ No newline at end of file
---
layout: page
title: Blog
permalink: /blog/
---
{% for post in site.posts %}
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<p class="author">
<span class="date">Posted on {{ post.date | date_to_long_string }}</span>
</p>
{{ post.content | split:'<!--break-->' | first }}
{% if post.content contains '<!--break-->' %}
<p><a href="{{ post.url }}" class="button">Read more</a></p>
{% endif %}
{% endfor %}
\ No newline at end of file
---
layout: blog
title: Blog
permalink: /blog/
---
{% for post in site.posts %}
{% include post-excerpt.html %}
{% endfor %}
---
layout: blog_by_tag
tag: conference
permalink: blog/tag/conference/
---
---
layout: blog_by_tag
tag: fosdem
permalink: blog/tag/fosdem/
---
---
layout: blog_by_tag
tag: ganeti
permalink: blog/tag/ganeti/
---
---
layout: blog_by_tag
tag: news
permalink: blog/tag/news/
---
---
layout: blog_by_tag
tag: release
permalink: blog/tag/release/
---
......@@ -5,9 +5,9 @@ a:hover { text-decoration: underline;}
h1 {
text-transform: uppercase;
text-align: center;
margin:80px 0;
margin:60px 0;
line-height:120%;
color: $primary-color;
//color: $primary-color;
}
.subnav {
......@@ -287,3 +287,51 @@ header {
.footer {
border-top: 1px solid $border-color;
}
.post {
margin-bottom: 3em;
.author {
font-size: emCalc(14px);
margin-bottom: 0em;
color: lighten($body-font-color, 15%);
}
h3 {
margin-bottom: 1em;
font-size: emCalc(18px);
}
h2 {
margin: -6px 0 0.5em;
font-size: emCalc(24px);
&+.author {
margin-bottom: 1em;
}
}
p {
margin-bottom: 1em;
}
.more {
white-space: nowrap;
}
}
.sidemenu {
ul {
margin-left: 0;
li {
&.active {
a {
color: #000;
}
}
list-style: none outside none;
padding: 0 0 10px 0;
.date {
font-size: emCalc(14px);
margin-bottom: 0em;
color: lighten($body-font-color, 15%);
}
}
}
}
.homepage {
h1 {
text-align: left;
color: $primary-color;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment