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"> <meta name="description" content="Personal page of Gergely Polonkai">
<title>Gergely Polonkai{% if page.title %}: {{page.title}}{% endif %}</title> <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 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"> <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>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </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>
<div class="collapse navbar-collapse" id="gp-navbar"> <div class="collapse navbar-collapse" id="gp-navbar">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="{{site_url}}/about">About me</a></li> <li><a href="{{'/about' | prepend: site.baseurl}}">About me</a></li>
<li><a href="{{site_url}}/blog">Blog</a></li> <li><a href="{{'/blog' | prepend: site.baseurl}}">Blog</a></li>
<li><a href="{{site_url}}/resume">Resume</a></li> <li><a href="{{'/resume' | prepend: site.baseurl}}">Resume</a></li>
</ul> </ul>
<ul class="nav navbar-nav navbar-right"> <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"> <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> <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"> <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="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="{{site_url}}/images/linkedin_16.png" alt="" /> LinkedIn</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="{{site_url}}/images/skype_16.png" alt="" /> Skype</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="{{site_url}}/images/facebook_16.png" alt="" /> Facebook</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="{{site_url}}/images/google_plus_16.png" alt="" /> Google+</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="{{site_url}}/images/googletalk_16.png" alt="" /> Hangouts</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="{{site_url}}/images/twitter_16.png" alt="" /> Twitter</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="{{site_url}}/images/tumblr_16.png" alt="" /> Tumblr</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="{{site_url}}/images/deviantart_16.png" alt="" /> deviantArt</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="{{site_url}}/blog/atom.xml"><img src="{{site_url}}/images/rss_16.png" alt="" /> RSS Feed</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> </ul>
</li> </li>
</ul> </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' %} {% if page.name != 'about.html' %}
<div class="well well-sm small"> <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 %} {% include about.html %}
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>

View File

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

View File

@ -1,23 +1,9 @@
--- ---
layout: default layout: default
render_post: true
--- ---
<div class="post"> {% assign post = page %}
<header class="post-header"> {% include blog-post.html %}
<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>
<div class="g-plus" data-action="share" data-height="15"></div> <div class="g-plus" data-action="share" data-height="15"></div>
<nav> <nav>
@ -30,7 +16,5 @@ layout: default
{% endif %} {% endif %}
</ul> </ul>
</nav> </nav>
</footer>
{% include disqus.html %} {% include disqus.html %}
</div>

View File

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

View File

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

View File

@ -1,26 +1,12 @@
--- ---
layout: page layout: page
title: Blog title: Blog posts
post_listing: true
--- ---
{% include pagination.html %} {% include pagination.html %}
{% for post in paginator.posts %} {% assign posts = paginator.posts %}
<article class="post">
<header> {% include post-list.html %}
<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 %}
{% include pagination.html %} {% include pagination.html %}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
--- ---
layout: posts_by_tag layout: posts-by-tag
tag: zabbix 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. article(s) or the main page.
The social media icons in the contact menu are from 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). komodomedia.com](http://komodomedia.com).
Some design ideas, like the arrows under the menu items are from a 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> <title>{{site.title | xml_escape}}</title>
<description>{{site.description | xml_escape}}</description> <description>{{site.description | xml_escape}}</description>
<link>{{site.url}}{{site.baseurl}}/</link> <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 %} {% for post in site.posts limit:10 %}
<item> <item>
<title>{{post.title | xml_escape}}</title> <title>{{post.title | xml_escape}}</title>

View File

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