Skip to content

Commit

Permalink
multiuser setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mdxp committed Jun 8, 2012
1 parent b1786ef commit 2f5db71
Show file tree
Hide file tree
Showing 12 changed files with 111 additions and 5 deletions.
7 changes: 7 additions & 0 deletions _config.yml
Expand Up @@ -21,6 +21,13 @@ subscribe_email:
# RSS feeds can list your email address if you like
email:

authors:
marius-ducea:
display_name: Marius Ducea
github: mdxp
gravatar: 34b742e276f76496c6c3b12d07ee984f
twitter: mariusducea

# ----------------------- #
# Jekyll & Plugins #
# ----------------------- #
Expand Down
2 changes: 1 addition & 1 deletion sass/custom/_layout.scss
Expand Up @@ -6,7 +6,7 @@
//$header-padding-bottom: 1.5em;

//$max-width: 1350px;
//$indented-lists: true;
$indented-lists: true;

// Padding used for layout margins
//$pad-min: 18px;
Expand Down
1 change: 1 addition & 0 deletions source/_includes/archive_post.html
@@ -1,6 +1,7 @@
{% capture category %}{{ post.categories | size }}{% endcapture %}
<h1><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h1>
<time datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate>{{ post.date | date: "<span class='month'>%b</span> <span class='day'>%d</span> <span class='year'>%Y</span>"}}</time>
<span class="archive_author">by <a href="{{ root_url }}/blog/our-team/{{ post.author }}.html">{{ site.authors[post.author].display_name }}</a></span>
{% if category != '0' %}
<footer>
<span class="categories">posted in {{ post.categories | category_links }}</span>
Expand Down
4 changes: 2 additions & 2 deletions source/_includes/article.html
Expand Up @@ -7,8 +7,8 @@ <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% el
{% endif %}
{% unless page.meta == false %}
<p class="meta">
{% include post/date.html %}{{ time }}
{% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %}
{% include post/author.html %} - {% include post/date.html %}{{ time }}
{% if site.disqus_short_name and page.comments != false and site.disqus_show_comment_count == true %}
| <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">Comments</a>
{% endif %}
</p>
Expand Down
17 changes: 17 additions & 0 deletions source/_includes/author_archive.html
@@ -0,0 +1,17 @@
<div id="blog-archives">
{% for post in site.posts reverse %}
{% if post.published %}
{% if post.author == page.author %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h2>{{ year }}</h2>
{% endunless %}
<article>
{% include archive_post.html %}
</article>
{% endif %}
{% endif %}
{% endfor %}
</div>

1 change: 1 addition & 0 deletions source/_includes/custom/navigation.html
@@ -1,4 +1,5 @@
<ul class="main-navigation">
<li><a href="{{ root_url }}/">Blog</a></li>
<li><a href="{{ root_url }}/blog/our-team">Our Team</a></li>
<li><a href="{{ root_url }}/blog/archives">Archives</a></li>
</ul>
4 changes: 3 additions & 1 deletion source/_includes/post/author.html
Expand Up @@ -5,4 +5,6 @@
{% else %}
{% assign author = site.author %}
{% endif %}
{% if author %}<span class="byline author vcard">Posted by <span class="fn">{{ author }}</span></span>{% endif %}
{% if author %}
<span class="byline author vcard">Posted by <span class="fn"><a href="{{ root_url }}/blog/our-team/{{ author }}.html">{{ site.authors[author].display_name }}</a></span></span>
{% endif %}
4 changes: 3 additions & 1 deletion source/_layouts/post.html
Expand Up @@ -3,6 +3,8 @@
single: true
---

{% assign author = site.authors[page.author] %}

<div>
<article class="hentry" role="article">
{% include article.html %}
Expand All @@ -20,7 +22,7 @@
<a class="basic-alignment left" href="{{page.previous.url}}" title="Previous Post: {{page.previous.title}}">&laquo; {{page.previous.title}}</a>
{% endif %}
{% if page.next.url %}
<a class="basic-alignment right" href="{{page.next.url}}" title="Next Post: {{page.next.title}}">{{page.next.title}} &raquo;</a>
<a class="basic-alignment right" href="{{page.next.url}}" title="next Post: {{page.next.title}}">{{page.next.title}} &raquo;</a>
{% endif %}
</p>
</footer>
Expand Down
27 changes: 27 additions & 0 deletions source/_layouts/team_member.html
@@ -0,0 +1,27 @@
---
layout: page
single: true
---

{% assign author = site.authors[page.author] %}

<div id="author-top-links" style="margin:-10px 0 8px 0;">
{% if author.github %}
<iframe src="http://markdotto.github.com/github-buttons/github-btn.html?user={{ author.github }}&type=follow&count=true"
allowtransparency="true" frameborder="0" scrolling="0" width="165px" height="20px"></iframe>
{% endif %}

{% if author.twitter %}
<a href="https://twitter.com/{{ author.twitter }}" class="twitter-follow-button" data-show-count="false">Follow @{{ author.twitter }}</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
{% endif %}
</div>

<img alt="{{ author.display_name }}" src="http://gravatar.com/avatar/{{ author.gravatar }}?s=200" width="200" height="200" style="float:left; margin-right: 1.5em;" />

<div style="border-bottom:1px solid #ddd; padding:0 0 10px 0;">
{{ content | newline_to_br }}
<div style="clear:both;"></div>
</div>

{% include author_archive.html %}
8 changes: 8 additions & 0 deletions source/blog/about/index.markdown
@@ -0,0 +1,8 @@
---
layout: page
title: "about"
date: 2012-06-04 11:41
comments: true
sharing: true
footer: true
---
33 changes: 33 additions & 0 deletions source/blog/our-team/index.html
@@ -0,0 +1,33 @@
---
layout: page
title: Our Team
footer: false
---

<div id="author-archives">
{% for author in site.authors %}
{% assign post_count = 0 %}
{% for post in site.posts %}
{% if post.author == author[0] and post.published %}
{% capture post_count %}{{ post_count | plus: 1 }}{% endcapture %}
{% endif %}
{% endfor %}
<div style="margin: 0 0 15px 0;">
<img src="http://www.gravatar.com/avatar/{{ author[1].gravatar }}?default=mm&s=50" style="border-width:5px; float:left; margin:0 15px 0 0;" height="50" width="50">
<div style="padding:2px 0 0 0;">
<a href="{{ root_url }}/blog/our-team/{{ author[0] }}.html">{{ author[1].display_name }}</a>
</div>
<div style="color:#999; font-size:14px; font-style:italic; margin:-5px 0 0 0;">
{{ post_count }}
{% if post_count == '1' %}
post
{% else %}
posts
{% endif %}
</div>
</div>

<div style="clear:both"></div>
{% endfor %}
</div>

8 changes: 8 additions & 0 deletions source/blog/our-team/marius-ducea.html
@@ -0,0 +1,8 @@
---
layout: team_member
title: Marius Ducea
author: marius-ducea
footer: false
---

Marius Ducea is an operation engineer at Promethost

0 comments on commit 2f5db71

Please sign in to comment.