Skip to content

Commit

Permalink
Customize more
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov committed Sep 1, 2015
1 parent 6245467 commit 97bbff1
Show file tree
Hide file tree
Showing 13 changed files with 129 additions and 136 deletions.
6 changes: 5 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ email: pranav@maangalabs.com
baseurl: /dvteam.org
favicon: /favicon.png

permalink: /:categories/:title
permalink: /:categories

twitter_username: pranavrajs

Expand All @@ -25,3 +25,7 @@ authors:
display_name: Alexander Borzunov
email: borzunov.alexander@gmail.com
github: borzunov
phil9l:
display_name: Phil Bazun
email: Phil9lne@gmail.com
github: Phil9l
87 changes: 0 additions & 87 deletions _includes/author_block.html

This file was deleted.

13 changes: 9 additions & 4 deletions _includes/include_js.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@

<style>
pre.prettyprint {

font-size: 13px;
font-family: "Open Sans";
padding: 8px 12px;
border: 1px solid #bbb;
border-radius: 4px;
}
.linenos pre.prettyprint{
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
border-right: none;
}
.highlight pre.prettyprint{
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
</style>
53 changes: 53 additions & 0 deletions _includes/post_footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{% assign author = site.authors[page.author] %}

{% if author %}
<div class="author_block row">
<div class="author-block-floated" style="float: right;">
<div>Author: <strong>{{ author.display_name }}</strong></div>
<ul>
{% if author.email %}
<li><a href="mailto:{{ author.email }}" target="_blank"><i class="fa fa-envelope"></i></a></li>
{% endif %}
{% if author.github %}
<li><a href="http://github.com/{{ author.github }}" target="_blank"><i class="fa fa-github"></i></a></li>
{% endif %}
{% if author.facebook %}
<li><a href="http://facebook.com/{{ author.facebook }}" target="_blank"><i class="fa fa-facebook"></i></a></li>
{% endif %}
{% if author.twitter %}
<li><a href="http://twitter.com/{{ author.twitter }}" target="_blank"><i class="fa fa-twitter"></i></a></li>
{% endif %}
{% if author.linkedin %}
<li><a href="http://in.linkedin.com/in/{{ author.linkedin }}" target="_blank"><i class="fa fa-linkedin"></i></a></li>
{% endif %}
</ul>
</div>
</div>
{% endif %}

{% if site.disqus_short_name and page.comments != false %}
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ site.disqus_short_name }}'; // required: replace example with your forum shortname
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
{% endif %}

<ul class="pager">
{% if page.previous.url %}
<li class="previous"><a class="basic-alignment left"
href="{{page.previous.url | prepend: site.baseurl }}" title="Previous Post:
{{page.previous.title}}">&laquo; {{page.previous.title}}</a></li>
{% endif %}
<!-- <li><a href="/blog/archives">Blog Archives</a></li> -->
{% if page.next.url %}
<li class="next"><a class="basic-alignment right" href="{{ page.next.url | prepend: site.baseurl }}"
title="Next Post: {{page.next.title}}">{{page.next.title}}
&raquo;</a></li>
{% endif %}
</ul>
4 changes: 2 additions & 2 deletions _includes/sharer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- {% if site.fb_username %}
{% if site.fb_username %}
<div class="fb_share">
<div id="fb-root"></div>
<script>(function(d, s, id) {
Expand Down Expand Up @@ -33,4 +33,4 @@
<script src="https://apis.google.com/js/platform.js" async defer></script>
<div class="g-plus" data-action="share" data-annotation="bubble"></div>
</div>
{% endif %} -->
{% endif %}
8 changes: 5 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<div class="row jumb-bot">
<div class="col-md-1"></div>
<div class="jumbotron jumb-bot-jumbu col-md-10">
<img class="jumbotron-logo" src="{{ site.baseurl }}/images/dvteam_black.png" />
<a href="{{ site.baseurl }}/">
<img class="jumbotron-logo" src="{{ site.baseurl }}/images/dvteam_white.png" />
</a>
<h1>{{site.title}}</h1>
<p>{{site.description}}</p>
</div>
Expand All @@ -21,13 +23,13 @@ <h1>{{site.title}}</h1>
<div class="col-md-12">
{{ content }}
</div>
<div class="col-md-12 share-div">
<!-- <div class="col-md-12 share-div">
<div class="col-md-1"></div>
<div class="col-md-10">
{% include sharer.html %}
</div>
<div class="col-md-1"></div>
</div>
</div> -->
<div class="col-md-12">
{% include footer.html %}
</div>
Expand Down
22 changes: 12 additions & 10 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
layout: default
---
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">
<div class="post-header">
<h1>{{ page.title }}</h1>
<p class="post-meta"><i class="fa fa-calendar"></i> &nbsp;{{ page.date | date: "%b %-d, %Y" }}</p>
<div class="col-md-2"></div>
<div class="col-md-8">
<div class="blog-post-small">
<div class="post-header">
<h1>{{ page.title }}</h1>
<p class="post-meta"><i class="fa fa-calendar"></i> &nbsp;{{ page.date | date: "%b %-d, %Y" }}</p>
</div>
<article class="blog-post-small blog-post-content">
{{ content }}
</article>
</div>
<article class="blog-post-small blog-post-content">
{{ content }}
</article>
{% include author_block.html %}
{% include post_footer.html %}
</div>
<div class="col-md-1"></div>
<div class="col-md-2"></div>
</div>
11 changes: 5 additions & 6 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ h6, .h6 {
}

p {
margin: 0 0 10.5px;
margin: 18px 0;
}

.lead {
Expand Down Expand Up @@ -5195,8 +5195,7 @@ fieldset[disabled] .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link[di
}

.pager {
padding-left: 0;
margin: 21px 0;
padding: 0 5px;
list-style: none;
text-align: center;
li {
Expand Down Expand Up @@ -7402,9 +7401,9 @@ label, .control-label, .help-block, .checkbox, .radio {
}

.pager {
font-size: 12px;
font-weight: 300;
color: #999999;
// font-size: 12px;
// font-weight: 300;
color: #888;
}

.list-group {
Expand Down
21 changes: 17 additions & 4 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,21 @@
text-align: justify;
padding: 10px;
p {
font-size: 14.43px;
font-size: 16px;
font-weight: 300;
}
}

.blog-post-preview {
padding: 5px 0;
}

.blog-post-header {
margin-bottom: 15px;
}

.post-header {
margin: 0 0 25px 10px;
margin: 0 0 -15px 10px;
}

.navbar {
Expand Down Expand Up @@ -67,8 +72,7 @@
margin-top: 10px;
}
.author_block{
float: right;
padding:2%;
padding: 0 30px;
p{
line-height: 44px;
font-size: 13px;
Expand Down Expand Up @@ -180,3 +184,12 @@
.fa-like-image {
margin-top: -3px;
}

.center-image {
margin: 0 auto;
display: block;
}

.button-read-more {
margin-top: 15px;
}
Binary file added images/dvteam_green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/dvteam_green_square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/dvteam_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 21 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,33 @@


<div class="row">
<div class="col-md-1"></div>
<div class="col-md-7">
<div class="col-md-2"></div>
<div class="col-md-8">
<!-- Blog Post Links -->
<div class="blog-post-small">
{% for post in site.posts %}
<div class="blog-post-header">
<h3><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3>
<p><i class="fa fa-calendar"></i> &nbsp;{{ post.date | date: "%b %-d, %Y" }}
{% if site.disqus_short_name and page.comments != false and site.disqus_show_comment_count == true %}
| <a href="{% if page.index %}{{ post.url | prepend: site.baseurl }}{% endif %}#disqus_thread">Comments</a>
{% endif %}
</p>
</div>
<div class="blog-post-preview">
<div class="blog-post-header">
<h3><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3>
<p><i class="fa fa-calendar"></i> &nbsp;{{ post.date | date: "%b %-d, %Y" }}
{% if site.disqus_short_name and page.comments != false and site.disqus_show_comment_count == true %}
| <a href="{% if page.index %}{{ post.url | prepend: site.baseurl }}{% endif %}#disqus_thread">Comments</a>
{% endif %}
</p>
</div>

{% if post.content contains '<!-- more -->' %}
<p>{{ post.content | split:'<!-- more -->' | first }}
<br><br>
<a href="{{ post.url | prepend: site.baseurl }}"class="btn btn-primary btn-sm">Read More</a>
</p>
{% else %}
{{ post.content }}
{% endif %}
{% if post.content contains '<!-- more -->' %}
<p>{{ post.content | split:'<!-- more -->' | first }}
<br />
<a href="{{ post.url | prepend: site.baseurl }}" class="btn btn-primary btn-sm button-read-more">Read More</a>
</p>
{% else %}
{{ post.content }}
{% endif %}
</div>
{% endfor %}
</div>
<!-- End Blog Post Links -->
</div>
<div class="col-md-1"></div>
<div class="col-md-2"></div>
</div>

0 comments on commit 97bbff1

Please sign in to comment.