Skip to content

Commit

Permalink
Major theme update
Browse files Browse the repository at this point in the history
  • Loading branch information
Hossain Mohd. Faysal committed May 18, 2014
1 parent 1055574 commit 2dc7c87
Show file tree
Hide file tree
Showing 19 changed files with 930 additions and 449 deletions.
115 changes: 114 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ share: true
# Read Time is a calculator tp provide post read-time based on word count. Usage is recommended.
readtime: true
# Turn on or off the fin animations in the header and footer
animated_fins: true
triangleheader: false
animated_fins: false
# Specify the fin color in RGB value
fin_color: "255,255,255"
# Change url to your domain. Leave localhost server or blank when working locally.
Expand Down Expand Up @@ -85,5 +86,117 @@ kramdown:
coderay_bold_every: 10
coderay_css: class

prose:
rooturl: '_posts'
siteurl: 'http://hmfaysal.github.io/'
relativeLinks: 'http://hmfaysal.github.io/links.jsonp'
media: 'images'
metadata:
_posts:
- name: "published"
field:
label: "Published"
element: "checkbox"
value: "true"
- name: "layout"
field:
element: "hidden"
label: "Layout"
value: "post"
- name: "type"
field:
element: "select"
label: "Select Post Type"
placeholder: "Choose your type"
options:
- name: "Standard"
value:
- name: "Quote"
value: quote
- name: "Status"
value: status
- name: "Photo"
value: photo
- name: "Video"
value: video
- name: "title"
field:
label: "Title"
element: "text"
value: "An Awesome Headline!"
- name: "description"
field:
element: "text"
label: "Description"
placeholder: "Enter Post Description"
- name: "headline"
field:
element: "text"
label: "beadline"
placeholder: "Enter Post Headline"
- name: "modified"
field:
element: "text"
label: "Has this page been modified?"
placeholder: "YYYY-MM-DD"
- name: "categories"
field:
element: "multiselect"
label: "Add categories"
placeholder: "Choose categories"
value: personal
options:
- name: "Personal"
value: personal
- name: "Web-Development"
value: webdevelopment
- name: "Interesting"
value: interesting
- name: "Status"
value: status
- name: "Quotes"
value: quotes
alterable: true
- name: "tags"
field:
element: "text"
label: "Tags"
placeholder: "Enter tags, separated by spaces"
- name: "imagefeature"
field:
element: "text"
label: "Featured Image"
placeholder: "somefile.jpg"
- name: "imagecredit"
field:
element: "text"
label: "Image Credit"
placeholder: "some guy"
- name: "imagecreditlink"
field:
element: "text"
label: "Credit link for the image"
placeholder: "http://somewebsite.com"
- name: "video"
field:
element: "text"
label: "Insert Youtube Link"
placeholder: "http://youtube.com/somevideo"
- name: "mathjax"
field:
element: "checkbox"
label: "MathJax"
value: false
- name: "featured"
field:
element: "checkbox"
label: "Featured?"
value: false
- name: "comments"
field:
element: "checkbox"
label: "Comments"
value: false

include: [".htaccess"]
exclude: ["lib", "config.rb", "Gemfile", "Capfile", "Gemfile.lock", "config", "log", "Rakefile", "Rakefile.rb", "tmp", "less", "*.sublime-project", "*.sublime-workspace", "test", "spec", "Gruntfile.js", "package.json", "node_modules"]
16 changes: 7 additions & 9 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% if page.image.feature %}
<footer id="footer" class="blog-background overlay text-center align-middle animated from-top" style="background-image: url({{ site.url }}/images/{{ page.image.feature }})" >
{% if page.imagefeature %}
<footer id="footer" class="blog-background overlay text-center align-middle animated from-top" style="background-image: url({{ site.url }}/images/{{ page.imagefeature }})" >
{% else %}
<footer id="footer" class="blog-background overlay text-center align-middle animated from-top" style="background-image: url({{ site.url }}/images/{{ site.default_bg }})" >
{% endif %}
Expand Down Expand Up @@ -54,12 +54,9 @@
</a>
</li>{% endif %}
</ul>
<p class="copy-text">
<div>
<a href="{{ site.url }}/about/">{{ site.owner.name }}</a> &copy; {{ site.time | date: '%Y' }} &bull; All rights reserved.
</p>
<p class="copy-text">
Powered by <a href="http://jekyllrb.com">Jekyll</a> using the <i class="icon-heart"></i> <a href="http://alum.mit.edu/www/hmfaysal/">HMFAYSAL OMEGA</a> theme.
</p>
</div>
<ul class="menu-items">
{% for link in site.links %}
<li>
Expand All @@ -71,11 +68,10 @@
</li>
{% endfor %}
<li><a href="{{ site.url }}/feed.xml" title="Atom/RSS feed"><i class="icon-rss"></i> Feed</a></li>
{% if site.search %}&nbsp;&bull;<li class="dosearch"><i class="icon-search"></i> Search</li>{% endif %}
</ul>
</div>
</div>
{% if site.animated_fins %}
{% if site.animated_fins and site.triangleheader %}
<div class="decor-wrapper">
<svg id="footer-decor" class="decor top" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100" preserveAspectRatio="none">

Expand All @@ -95,6 +91,7 @@
</svg>
</div>
{% else %}
{% if site.triangleheader %}
<div class="decor-wrapper">
<svg id="footer-decor" class="decor top" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100" preserveAspectRatio="none">
<path d="M0 0 L50 50 L100 0 L0 0" fill="rgba(255,255,255, 1)"></path>
Expand All @@ -104,4 +101,5 @@
</svg>
</div>
{% endif %}
{% endif %}
</footer>
6 changes: 3 additions & 3 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}

{% if site.owner.twitter %}<!-- Twitter Cards -->
{% if page.image.feature %}<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{{ site.url }}/images/{{ page.image.feature }}">
{% if page.imagefeature %}<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{{ site.url }}/images/{{ page.imagefeature }}">
{% else %}<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/{{ site.logo }}{% endif %}">{% endif %}
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
Expand All @@ -19,7 +19,7 @@
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:site_name" content="{{ site.title }}">
{% if page.image.feature %}<meta property="og:image" content="{{ site.url }}/images/{{ page.image.feature }}">{% else %}<meta property="og:image" content="{{ site.url }}/images/{{ site.default_bg }}">{% endif %}
{% if page.imagefeature %}<meta property="og:image" content="{{ site.url }}/images/{{ page.imagefeature }}">{% else %}<meta property="og:image" content="{{ site.url }}/images/{{ site.default_bg }}">{% endif %}

{% if site.google_verify %}<meta name="google-site-verification" content="{{ site.google_verify }}">{% endif %}
{% if site.bing_verify %}<meta name="msvalidate.01" content="{{ site.bing_verify }}">{% endif %}
Expand Down
33 changes: 29 additions & 4 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
{% if page.image.feature %}<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url({{ site.url }}/images/{{ page.image.feature }})" itemscope itemtype="http://schema.org/Organization">
<div id="fade"></div>
<a id="slide" class="animated fade"></a>
<aside id="sidebar">
<nav id="navigation">
<h2>MENU</h2>
<hr>
{% for link in site.links %}
<li>{% if link.external %}
<a href="{{ link.url }}">{{ link.title }}</a>
{% else %}
<a href="{{ site.url }}{{ link.url }}">{{ link.title }}</a>
{% endif %} </li>
{% endfor %}
<li><a href="{{ site.url }}/feed.xml" title="Atom/RSS feed"><i class="icon-rss"></i> Feed</a></li>
</nav>


</aside>
{% if page.imagefeature %}<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url({{ site.url }}/images/{{ page.imagefeature }})" itemscope itemtype="http://schema.org/Organization">{% if page.imagecredit %}<span class="image-credit">Photo Credit: <a href="{{ page.imagecreditlink }}" target="_blank">{{ page.imagecredit }}</a></span>{% endif %}
{% else %}
<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url({{ site.url }}/images/{{ site.default_bg }})" itemscope itemtype="http://schema.org/Organization">
{% endif %}
{% if site.search %}
<button class="menu-button animated fade dosearch">
<i class="icon-search"></i>
</button>
{% endif %}
{% if page.headline %}
<div class="inner">
<div class="container">
<a class="brand light" href="/" role="banner" itemprop="url">
<a class="brand light" href="{{ site.url }}" role="banner" itemprop="url">

{% if site.logo %}<img itemprop="logo" src="{{ site.url }}/images/{{ site.logo }}" alt="{{ site.title }} Logo" />{% endif %}

Expand All @@ -22,7 +45,7 @@ <h2 class="blog-description light bordered bordered-top" itemprop="description">
{% else %}
<div class="inner">
<div class="container">
<a class="brand" href="/" role="banner" itemprop="url">
<a class="brand" href="{{ site.url }}" role="banner" itemprop="url">

{% if site.logo %}<img itemprop="logo" src="{{ site.url }}/images/{{ site.logo }}" alt="{{ site.title }} Logo" />{% endif %}

Expand All @@ -34,7 +57,7 @@ <h1 class="blog-title light" itemprop="name">
</div>
</div>
{% endif %}
{% if site.animated_fins %}
{% if site.animated_fins and site.triangleheader %}
<div class="decor-wrapper">
<svg id="header-decor" class="decor bottom" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100" preserveAspectRatio="none">
<path class="large left" d="M0 0 L50 50 L0 100" fill="rgba({{ site.fin_color }}, .1)"></path>
Expand All @@ -53,6 +76,7 @@ <h1 class="blog-title light" itemprop="name">
</svg>
</div>
{% else %}
{% if site.triangleheader %}
<div class="decor-wrapper">
<svg id="header-decor" class="decor bottom" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100" preserveAspectRatio="none">
<path d="M0 99.9 L50 49.9 L100 99.9 L0 99.9" fill="rgba(255,255,255, 1)"></path>
Expand All @@ -62,4 +86,5 @@ <h1 class="blog-title light" itemprop="name">
</svg>
</div>
{% endif %}
{% endif %}
</header>
30 changes: 28 additions & 2 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ site.url }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="{{ site.url }}/assets/js/scripts.min.js"></script>
{% if site.animated_fins %}<script type="text/javascript" src="{{ site.url }}/assets/js/waypoints.min.js"></script>{% endif %}
<script type="text/javascript" src="{{ site.url }}/assets/js/script.js"></script>
<script type="text/javascript" src="{{ site.url }}/assets/js/waypoints.min.js"></script>
<script type="text/javascript" src="{{ site.url }}/assets/js/script.js"></script>

<script type="text/javascript">

/* Slides */

$("a#slide").click(function(){
$("#sidebar,body,a#slide,#fade").addClass("slide")
});

$("#fade,#header,#posts-container").click(function(){
$("#sidebar,body,a#slide,#fade").removeClass("slide")
});

$("a#click-filter").click(function(){
$("#slide-filter").slideToggle("medium");
$("#slide-pages").slideOut("medium");
});

$("a#click-pages").click(function(){
$("#slide-pages").slideToggle("medium");
$("#slide-filter").slideOut("medium");
});

/* End-Slides */

</script>

{% if site.search %}
<!-- Jekyll Simple Search option -->
Expand Down
44 changes: 42 additions & 2 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,51 @@
<!DOCTYPE html>
<html>
<!--
====================================================
__ ____ ______________ _______ ___ __
/ / / / |/ / ____/ \ \/ / ___// | / /
/ /_/ / /|_/ / /_ / /| |\ /\__ \/ /| | / /
/ __ / / / / __/ / ___ |/ /___/ / ___ |/ /___
/_/ /_/_/ /_/_/ /_/ |_/_//____/_/ |_/_____/
====================================================
Owner Name: Hossain Mohammad Faysal
Profile: https://www.facebook.com/hmfaysal
Version: 1.1
Description: Awesome dude, awesome life
====================================================
-->
<head>
{% include head.html %}
</head>
<body class="home-template" itemscope itemtype="http://schema.org/WebPage">
{% if page.image.feature %}<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url({{ site.url }}/images/{{ page.image.feature }})" itemscope itemtype="http://schema.org/Organization">
<div id="fade"></div>
<a id="slide" class="animated fade"></a>
<aside id="sidebar">
<nav id="navigation">
<h2>MENU</h2>
<hr>
{% for link in site.links %}
<li>{% if link.external %}
<a href="{{ link.url }}">{{ link.title }}</a>
{% else %}
<a href="{{ site.url }}{{ link.url }}">{{ link.title }}</a>
{% endif %} </li>
{% endfor %}
<li><a href="{{ site.url }}/feed.xml" title="Atom/RSS feed"><i class="icon-rss"></i> Feed</a></li>
</nav>


</aside>
{% if page.imagefeature %}<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url({{ site.url }}/images/{{ page.imagefeature }})" itemscope itemtype="http://schema.org/Organization">
{% else %}
<header id="masthead" class="blog-background overlay align-center align-middle animated from-bottom" style="background-image: url({{ site.url }}/images/{{ site.default_bg }})" itemscope itemtype="http://schema.org/Organization">
{% endif %}
{% if site.search %}
<button class="menu-button animated fade dosearch">
<i class="icon-search"></i>
</button>
{% endif %}
{% if site.description %}
<div class="inner">
<div class="container">
Expand Down Expand Up @@ -40,7 +78,7 @@ <h1 class="blog-title light" itemprop="name">
</div>
</div>
{% endif %}
{% if site.animated_fins %}
{% if site.animated_fins and site.triangleheader %}
<div class="decor-wrapper">
<svg id="header-decor" class="decor bottom" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100" preserveAspectRatio="none">
<path class="large left" d="M0 0 L50 50 L0 100" fill="rgba({{ site.fin_color }}, .1)"></path>
Expand All @@ -59,6 +97,7 @@ <h1 class="blog-title light" itemprop="name">
</svg>
</div>
{% else %}
{% if site.triangleheader %}
<div class="decor-wrapper">
<svg id="header-decor" class="decor bottom" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100" preserveAspectRatio="none">
<path d="M0 99.9 L50 49.9 L100 99.9 L0 99.9" fill="rgba(255,255,255, 1)"></path>
Expand All @@ -68,6 +107,7 @@ <h1 class="blog-title light" itemprop="name">
</svg>
</div>
{% endif %}
{% endif %}
</header>


Expand Down
Loading

0 comments on commit 2dc7c87

Please sign in to comment.