Skip to content

Commit

Permalink
Start customizing the template
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov committed Sep 1, 2015
1 parent 569373a commit 6245467
Show file tree
Hide file tree
Showing 20 changed files with 210 additions and 251 deletions.
45 changes: 14 additions & 31 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,27 @@
# Site settings
title: Swift
description: A clean minimal Theme for Jekyll

title: Destructive Voice
description: a CTF team from Ural Federal University, Yekaterinburg
email: pranav@maangalabs.com
baseurl: /dvteam.org
#url: "http://localhost:4000" # the base hostname & protocol for your site
#favicon
favicon: /favicon.png

#feed
feedburner_username: maangalabs
#twitter
twitter_username: pranavrajs
github_username: pranavrajs
permalink: /:categories/:title

#linkedin
linkedin_username: pranavrajs
twitter_username: pranavrajs

#google analytics
google_analytics_id : UA-53386152-2
#gplus
gplus_username: 101893920934936418705
# google analytics
# google_analytics_id : UA-53386152-2

#fb_username
fb_username: pranav.tayberrycreative
# disqus_short_name: maangalabscom
# disqus_show_comment_count: true

#permalink /blog/2014/11/11/this-is-a-sample-post
permalink: /blog/:year/:month/:day/:title
# Build settings
markdown: kramdown

#Disqus configuration
disqus_short_name: maangalabscom
disqus_show_comment_count: true
markdown: kramdown

#Can be used for multiple author blogs ! Add name to post For more visit the sample
authors:
pranavrajs:
display_name: Pranav Raj S
email: pranavrajs@gmail.com
fb: pranav.tayberrycreative
linkedin: pranavrajs
twitter: pranavrajs
github: pranavrajs
hx:
display_name: Alexander Borzunov
email: borzunov.alexander@gmail.com
github: borzunov
58 changes: 44 additions & 14 deletions _includes/author_block.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,69 @@
{% assign author = site.authors[page.author] %}
<!-- Output author details if some exist. -->
{% if author %}
<div class="author_block col-md-12">
<div class="author_block row">
<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 class="author_block col-md-12">
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-2">
<p>Written by <strong>{{ author.display_name }}</strong></p>
<div class="col-md-3">
<p>Written by <strong>{{ author.display_name }}</strong></p>
</div>
<div class="col-md-3">
<div class="col-md-3">
<ul>
{% 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>
<li><a href="mailto:{{author.email}}" target="_blank"><i class="fa fa-send-o"></i></a></li>
{% endif %}
{% if author.email %}
<li><a href="mailto:{{ author.email }}" target="_blank"><i class="fa fa-envelope"></i></a></li>
{% endif %}
</ul>
</div>
<div class="col-md-4">
{% if page.github_repo_username %}
<div class="col-md-12">
<a class= "btn-primary btn-large" style="padding:10px; line-height: 44px; margin-left:-24px; text-decoration:none;" href = "//github.com/{{ page.github_repo_username }}/{{page.github_repo}}" target="_blank">Download Source</a>
<iframe style = "line-height:44px"src="http://ghbtns.com/github-btn.html?user={{ page.github_repo_username }}&repo={{page.github_repo}}&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
<iframe style = "line-height:44px"src="http://ghbtns.com/github-btn.html?user={{ page.github_repo_username }}&repo={{page.github_repo}}&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
</div>
{% endif %}
</div>
<div class="col-md-2"></div>
<div class="col-md-1"></div>
</div>
</div>
{% endif %}
{% if page.comments %}
</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
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';
Expand All @@ -48,10 +78,10 @@
href="{{page.previous.url}}" title="Previous Post:
{{page.previous.title}}">&laquo; {{page.previous.title}}</a></li>
{% endif %}
<li><a href="/blog/archives">Blog Archives</a></li>
<!-- <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}}"
title="Next Post: {{page.next.title}}">{{page.next.title}}
&raquo;</a></li>
{% endif %}
</ul>
</ul>
4 changes: 2 additions & 2 deletions _includes/endfooter.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="row end_footer">
<div class="col-md-1"></div>
<div class="col-md-6">
<p>Copyright &copy; {{ site.title }} 2014</p>
<p>Copyright &copy; {{ site.title }} {{ site.time | date: '%Y' }}</p>
</div>
<div class="col-md-4"></div>
<div class="col-md-1"></div>
</div>
</div>
32 changes: 0 additions & 32 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,6 @@ <h4>Recent Posts</h4>
{% endfor %}
</ul>
</div>
<div class="col-md-3 col-md-offset-1">
<h4>Github Repositories</h4>
<ul>
{% if site.github_username %}
<li>
<a href="https://github.com/{{ site.github_username }}">
<span class="username">{{ site.github_username }}</span>
</a>
</li>
{% endif %}
</ul>
</div>
<div class="col-md-3 col-md-offset-1">

<h4>Follow Us Here</h4>
{% if site.gplus_username %}

<!-- Place this tag where you want the widget to render. -->
<div class="g-page" data-width="273" data-href="//plus.google.com/u/0/{{ site.gplus_username }}" data-theme="dark" data-layout="landscape" style="border:0px;" data-rel="publisher"></div>

<!-- Place this tag after the last widget tag. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
{% endif %}
<!-- <img class="footer-logo" src="img/maanga-logo.png"/> -->

</div>
</div>
</div>
<div class="col-md-1"></div>
Expand Down
8 changes: 4 additions & 4 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
</div>
<div class="navbar-collapse collapse navbar-inverse-collapse">
<ul class="nav navbar-nav">
<li><a href="{{ site.baseurl }}/">Blog</a></li>
{% for page in site.pages %}
{% if page.title %}
<li><a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></li>
{% endif %}
{% endfor %}

<!-- <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Pages<b class="caret"></b></a>
<ul class="dropdown-menu">
Expand All @@ -26,10 +27,9 @@
</ul>
</li>
--> </ul>

<ul class="nav navbar-nav navbar-right left-syms">
<li><a href="https://facebook.com/{{site.fb_username}}" target="_blank"><i class="fa fa-facebook-square"></i> <span>Facebook</span></a></li>
<li><a href="http://github.com/{{ site.github_username}}" target="_blank"><i class="fa fa-github"></i> <span>Github</span></a></li>
<li><a href="https://ctftime.org/team/7527" target="_blank"><img class="fa-like-image" src="{{ site.baseurl }}/images/ctftime_icon.png" /> <span>CTFTime</span></a></li>
<li><a href="//twitter.com/{{site.twitter_username}}" target="_blank"><i class="fa fa-twitter"></i> <span>Twitter</span></a></li>
<li><a href="{{ "/atom.xml" | prepend: site.baseurl | prepend: site.url }}" target="_blank"><i class="fa fa-rss"></i> <span>RSS Feed</span></a></li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions _includes/include_js.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/prettify.js"></script>
<script type="text/javascript" src="{{ site.baseurl }}/js/prettify.js"></script>
<script>
[].forEach.call(document.getElementsByTagName("pre"), function(el) {
el.classList.add("prettyprint");
Expand Down Expand Up @@ -29,4 +29,4 @@
border: 1px solid #bbb;
border-radius: 4px;
}
</style>
</style>
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 %} -->
6 changes: 3 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<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" />
<h1>{{site.title}}</h1>
<p>{{site.description}}</p>
</div>
</div>
<div class="col-md-1"></div>
</div>
</div>
Expand All @@ -35,7 +35,7 @@ <h1>{{site.title}}</h1>
{% include endfooter.html %}
</div>
{% include include_js.html %}

</body>

</html>
20 changes: 5 additions & 15 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,14 @@
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">


<h1>{{ page.title }}</h1>
<div id="google_translate_element" style="padding-right: 27px;float: left;"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}</p>


<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>


{% include author_block.html %}
</div>
<div class="col-md-1"></div>
</div>
</div>
18 changes: 6 additions & 12 deletions _posts/2014-09-09-example.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@
layout: post
title: "Example"
date: 2014-09-09 22:37:00 +05:30
categories: example
author: pranavrajs
github_repo_username: pranavrajs
github_repo : swift
categories: writeups volgactf 2015
author: hx
comments: true
---

This is a sample post to denote the features of Swift theme . The theme consists of various share plugins , feedburner support , sitemap generation etc. You can configure the blog in similar way you use a word press blog

This is a sample post to denote the features of Swift theme. The theme consists of various share plugins, feedburner support, sitemap generation etc. You can configure the blog in similar way you use a WordPress blog.
<!-- more -->

**Basic**
Expand All @@ -23,27 +20,24 @@ Neque porro *quisquam* est, qui **dolorem** ipsum, quia ***dolor*** sit, amet, [
1. dolor
2. sit


**Blockquote**

> They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.
>
>
> _Benjamin Franklin_
**Code**

{% highlight c %}

static void asyncEnabled(Dict* args, void* vAdmin, String* txid, struct Allocator* requestAlloc)
{
struct Admin* admin = Identity_check((struct Admin*) vAdmin);
int64_t enabled = admin->asyncEnabled;
Dict d = Dict_CONST(String_CONST("asyncEnabled"), Int_OBJ(enabled), NULL);
Admin_sendMessage(&d, txid, admin);
}

{% endhighlight %}

**Image**
<!-- **Image** -->

![ThisIsADemoPhoto](http://media.vector4free.com/normal/flat-banner-vectors.jpg)
<!-- ![ThisIsADemoPhoto](http://media.vector4free.com/normal/flat-banner-vectors.jpg) -->
Loading

0 comments on commit 6245467

Please sign in to comment.