Continue redesign

This commit is contained in:
Gergely Polonkai 2015-04-22 18:11:35 +02:00
parent eecf7bffec
commit 7a4be1de74
50 changed files with 156 additions and 156 deletions

View File

@ -1,29 +0,0 @@
<article class="col-sm-5 col-md-6 blog_post">
<ul class="list-inline">
<li class="col-md-8">
<header>
<h4><a href="{{post.url | prepend: site.baseurl}}">{{post.title}}</a></h4>
<div class="pull-left">
<span>Posted by : <a class="link_orange" href="mailto:{{post.author.email}}"><span class="txt_orange">{{post.author.name}}</span></a></span>
</div>
<div class="pull-right">
<span class="post-date">{{post.date | date: "%b %-d, %Y"}}</span>
<span class="post-time">{{post.date | date: "%H:%M" }}</span>
</div>
</header>
<div class="clearfix"> </div>
<p class="blog_text">{{post.excerpt}}</p>
<footer>
<p class="article-tags">
Tags:
{% for tag in post.tags %}
<span class="blog-tag"><a href="{{tag | prepend: '/blog/tag/' | prepend: site.baseurl}}">{{ tag }}</a></span>
{% endfor %}
</p>
</footer>
<li>
</ul>
</article>
{% if counter == 'even' %}
<div class="clearfix"></div>
{% endif %}

48
_includes/blog-post.html Normal file
View File

@ -0,0 +1,48 @@
<article class="{% if page.post_listing %}col-sm-5 col-md-6 {% endif%}post">
{% if page.post_listing %}
<ul class="list-inline">
<li class="col-md-8">
{% endif %}
<header class="post-header">
<h3>
{% if page.post_listing %}
<a href="{{post.url | prepend: site.baseurl}}">
{% endif %}
{{post.title}}
{% if page.post_listing %}
</a>
{% endif %}
{% if page.render_post %}
<div class="plusone-container"><div class="g-plusone" data-annotation="inline" data-size="small" data-width="300"></div></div>
{% endif %}
</h3>
<div class="pull-left">
Posted by : {{post.author.name}}
</div>
<div class="pull-right">
{{post.date | date: "%b %-d, %Y :: %H:%M"}}
</div>
<div class="clearfix"></div>
</header>
<main>
{% if page.render_post %}
{{content}}
{% else %}
{{post.excerpt}}
{% endif %}
</main>
<footer>
<p class="article-tags">
Tags:
{% for tag in post.tags %}
{% include tag-link.html %}
{% endfor %}
</p>
</footer>
{% if page.post_listing %}
</li>
</ul>
{% endif %}
</article>

View File

@ -4,7 +4,7 @@
<meta name="description" content="Personal page of Gergely Polonkai">
<title>Gergely Polonkai{% if page.title %}: {{page.title}}{% endif %}</title>
<link rel="icon" type="image/x-icon" href="{{site_url}}/favicon.ico">
<link rel="icon" type="image/x-icon" href="{{'/favicon.ico' | prepend: site.baseurl}}">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic" rel="stylesheet" type="text/css">
<link rel="alternate" type="application/rss+xml" title="Gergely Polonkai's Blog - RSS Feed" href="{{site.url}}/blog/atom.xml">

View File

@ -6,29 +6,29 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{site_url}}/"><img src="{{site.baseurl}}/images/profile.svg" alt="Gergely Polonkai" style="background-color: white; height: 45px; margin-top: -13px;"></a>
<a class="navbar-brand" href="{{'/' | prepend: site.baseurl}}"><img src="{{'/images/profile.svg' | prepend: site.baseurl}}" alt="Gergely Polonkai" style="background-color: white; height: 45px; margin-top: -13px;"></a>
</div>
<div class="collapse navbar-collapse" id="gp-navbar">
<ul class="nav navbar-nav">
<li><a href="{{site_url}}/about">About me</a></li>
<li><a href="{{site_url}}/blog">Blog</a></li>
<li><a href="{{site_url}}/resume">Resume</a></li>
<li><a href="{{'/about' | prepend: site.baseurl}}">About me</a></li>
<li><a href="{{'/blog' | prepend: site.baseurl}}">Blog</a></li>
<li><a href="{{'/resume' | prepend: site.baseurl}}">Resume</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="{{site_url}}/disclaimer">Disclaimer</a></li>
<li><a href="{{'/disclaimer' | prepend: site.baseurl}}">Disclaimer</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-pencil"></span> Contact me <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="mailto:gergely@polonkai.eu" target="_blank"><img src="{{site_url}}/images/email_16.png" alt="" /> E-mail</a></li>
<li><a href="http://www.linkedin.com/in/gergelypolonkai" target="_blank"><img src="{{site_url}}/images/linkedin_16.png" alt="" /> LinkedIn</a></li>
<li><a href="skype:gergely.polonkai" target="_blank"><img src="{{site_url}}/images/skype_16.png" alt="" /> Skype</a></li>
<li><a href="http://facebook.com/Polesz" target="_blank"><img src="{{site_url}}/images/facebook_16.png" alt="" /> Facebook</a></li>
<li><a href="https://plus.google.com/+GergelyPolonkai/about" target="_blank"><img src="{{site_url}}/images/google_plus_16.png" alt="" /> Google+</a></li>
<li><a href="gtalk:chat?jid=gergely@polonkai.eu" target="_blank"><img src="{{site_url}}/images/googletalk_16.png" alt="" /> Hangouts</a></li>
<li><a href="http://twitter.com/GergelyPolonkai" target="_blank"><img src="{{site_url}}/images/twitter_16.png" alt="" /> Twitter</a></li>
<li><a href="http://gergelypolonkai.tumblr.com" target="_blank"><img src="{{site_url}}/images/tumblr_16.png" alt="" /> Tumblr</a></li>
<li><a href="http://gergelypolonkai.deviantart.com" target="_blank"><img src="{{site_url}}/images/deviantart_16.png" alt="" /> deviantArt</a></li>
<li><a href="{{site_url}}/blog/atom.xml"><img src="{{site_url}}/images/rss_16.png" alt="" /> RSS Feed</a></li>
<li><a href="mailto:gergely@polonkai.eu" target="_blank"><img src="{{'/images/email_16.png' | prepend: site.baseurl}}" alt="" /> E-mail</a></li>
<li><a href="http://www.linkedin.com/in/gergelypolonkai" target="_blank"><img src="{{'/images/linkedin_16.png' | prepend: site.baseurl}}" alt="" /> LinkedIn</a></li>
<li><a href="skype:gergely.polonkai" target="_blank"><img src="{{'/images/skype_16.png' | prepend: site.baseurl}}" alt="" /> Skype</a></li>
<li><a href="http://facebook.com/Polesz" target="_blank"><img src="{{'/images/facebook_16.png' | prepend: site.baseurl}}" alt="" /> Facebook</a></li>
<li><a href="https://plus.google.com/+GergelyPolonkai/about" target="_blank"><img src="{{'/images/google_plus_16.png' | prepend: site.baseurl}}" alt="" /> Google+</a></li>
<li><a href="gtalk:chat?jid=gergely@polonkai.eu" target="_blank"><img src="{{'/images/googletalk_16.png' | prepend: site.baseurl}}" alt="" /> Hangouts</a></li>
<li><a href="http://twitter.com/GergelyPolonkai" target="_blank"><img src="{{'/images/twitter_16.png' | prepend: site.baseurl}}" alt="" /> Twitter</a></li>
<li><a href="http://gergelypolonkai.tumblr.com" target="_blank"><img src="{{'/images/tumblr_16.png' | prepend: site.baseurl}}" alt="" /> Tumblr</a></li>
<li><a href="http://gergelypolonkai.deviantart.com" target="_blank"><img src="{{'/images/deviantart_16.png' | prepend: site.baseurl}}" alt="" /> deviantArt</a></li>
<li><a href="{{'/blog/atom.xml' | prepend: site.baseurl}}"><img src="{{'/images/rss_16.png' | prepend: site.baseurl}}" alt="" /> RSS Feed</a></li>
</ul>
</li>
</ul>

9
_includes/post-list.html Normal file
View File

@ -0,0 +1,9 @@
<div class="container-fluid">
{% for post in posts limit: post_limit %}
{% capture counter %}{% cycle 'odd', 'even' %}{% endcapture %}
{% include blog-post.html %}
{% if counter == 'even' %}
<div class="clearfix"></div>
{% endif %}
{% endfor %}
</div>

1
_includes/tag-link.html Normal file
View File

@ -0,0 +1 @@
<a href="{{tag | prepend: '/blog/tag/' | prepend: site.baseurl}}" class="label label-default">{{tag}}</a>

View File

@ -11,7 +11,7 @@
{% if page.name != 'about.html' %}
<div class="well well-sm small">
<div class="pull-left"><img src="{{'/images/profile.png' | prepend: site.baseurl}}" alt=""></div>
<div class="pull-left" id="about-well-image"><img src="{{'/images/profile.png' | prepend: site.baseurl}}" alt=""></div>
{% include about.html %}
<div class="clearfix"></div>
</div>

View File

@ -5,6 +5,7 @@ layout: default
<header class="post-header">
<h2>{{page.title}}</h2>
<div class="clearfix"></div>
</header>
<article class="post-content">

View File

@ -1,23 +1,9 @@
---
layout: default
render_post: true
---
<div class="post">
<header class="post-header">
<h3>{{ page.title }} <div class="plusone-container"><div class="g-plusone" data-annotation="inline" data-size="small" data-width="300"></div></div></h3>
<p class="meta">{{ page.date | date: "%b %-d, %Y :: %H:%M" }}{% if page.author %} • {{ page.author.name }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
</header>
<article class="post-content">
{{ content }}
</article>
<footer>
<p class="article-tags">
Tags:
{% for tag in page.tags %}
<a href="{{tag | prepend: '/blog/tag/' | prepend: site.baseurl}}" class="label label-default">{{ tag }}</a>
{% endfor %}
</p>
{% assign post = page %}
{% include blog-post.html %}
<div class="g-plus" data-action="share" data-height="15"></div>
<nav>
@ -30,7 +16,5 @@ layout: default
{% endif %}
</ul>
</nav>
</footer>
{% include disqus.html %}
</div>

View File

@ -1,13 +1,13 @@
---
layout: default
post_listing: true
---
{{content}}
<h3>Articles under this tag</h3>
{% if site.tags[page.tag] %}
{% for post in site.tags[page.tag] %}
{% include blog-post-list.html %}
{% endfor %}
<div class="clearfix"></div>
{% assign posts = site.tags[page.tag] %}
{% include post-list.html %}
{% else %}
No posts with this tag.
{% endif %}

View File

@ -5,6 +5,8 @@
# or layout: keywords, the script will include them in the front
# matter.
layout="posts-by-tag"
for tag in `grep -h ^tags: _posts/* | sed -e 's/^tags: \[//' -e 's/\]$//' -e 's/, /\n/g' | sort | uniq`
do
tag_file="blog/tag/${tag}.html"
@ -13,7 +15,7 @@ do
then
cat <<EOF > $tag_file
---
layout: posts_by_tag
layout: $layout
tag: $tag
---
EOF
@ -25,7 +27,7 @@ EOF
if ! grep "^layout: " $tag_file &> /dev/null
then
sed -i "0,/---/! s/---/layout: posts_by_tag\\n---/" $tag_file
sed -i "0,/---/! s/---/layout: $layout\\n---/" $tag_file
fi
fi
done

View File

@ -1,26 +1,12 @@
---
layout: page
title: Blog
title: Blog posts
post_listing: true
---
{% include pagination.html %}
{% for post in paginator.posts %}
<article class="post">
<header>
<h3><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3>
<p class="article-date">{{ post.date | date: "%b %-d, %Y" }} :: {{ post.date | date: "%H:%M" }} by {{ site.name }}</p>
</header>
{{ post.excerpt }}
<footer>
<p class="article-tags">
Tags:
{% for tag in post.tags %}
{{ tag }}
{% endfor%}
</p>
</footer>
</article>
{% endfor %}
{% assign posts = paginator.posts %}
{% include post-list.html %}
{% include pagination.html %}

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: active-directory
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: apache
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: astrology
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: c
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: citrix-xenserver
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: command-line
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: conference
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: debian
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: development
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: django
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: emacs
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: fedora
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: gentoo
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: git
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: glib
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: gnome3
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: heartbeat-cluster
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: kerberos
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: linux
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: monitoring
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: mysql
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: oracle
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: otrs
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: php
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: ranting
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: red-hat
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: selinux
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: ssh
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: symfony
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: technology
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: testing
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: windows
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: wordpress
---

View File

@ -1,4 +1,4 @@
---
layout: posts_by_tag
layout: posts-by-tag
tag: zabbix
---

View File

@ -13,7 +13,7 @@ you use anything, please put a backlink on your site to the given
article(s) or the main page.
The social media icons in the contact menu are from
[![komodomedia.com]({{site_url}}/images/komodomedia_azure_16.png)
[![komodomedia.com]({{'/images/komodomedia_azure_16.png' | prepend: site.baseurl}})
komodomedia.com](http://komodomedia.com).
Some design ideas, like the arrows under the menu items are from a

View File

@ -6,7 +6,7 @@
<title>{{site.title | xml_escape}}</title>
<description>{{site.description | xml_escape}}</description>
<link>{{site.url}}{{site.baseurl}}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />
<atom:link href="{{'/feed.xml' | prepend: site.baseurl | prepend: site.url}}" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:10 %}
<item>
<title>{{post.title | xml_escape}}</title>

View File

@ -1,6 +1,7 @@
---
layout: default
title: Gergely Polonkai
post_listing: true
---
<div class="container">
<div class="row">
@ -10,9 +11,6 @@ title: Gergely Polonkai
</div>
</div>
<div class="container-fluid">
{% for post in site.posts limit: 6 %}
{% capture counter %}{% cycle 'odd', 'even' %}{% endcapture %}
{% include blog-post-list.html %}
{% endfor %}
</div>
{% assign posts = site.posts %}
{% assign post_limit = 6 %}
{% include post-list.html %}