Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

# Syntax highlighting
markdown: redcarpet
highlighter: pygments
highlighter: rouge

# Permalinks
permalink: /:title
relative_permalinks: true

# Setup
timezone: your timezone # eg. Asia/Kathmandu
Expand All @@ -16,7 +14,7 @@ tagline: 'tagline'
description: 'description'
url: site url
rss: rss feed url
baseurl: '/'
baseurl: ''
baseurl_posts_img: '/assets/images/posts/'
baseurl_featured_img: '/assets/images/hero/'
baseurl_featured_thumbnail: '/assets/images/thumbnail/'
Expand Down
6 changes: 3 additions & 3 deletions _includes/footer-scripts.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- Javascript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="{{ site.baseurl_javascripts }}imagesloaded.pkgd.min.js"></script>
<script src="{{ site.baseurl }}{{ site.baseurl_javascripts }}imagesloaded.pkgd.min.js"></script>

{% if page.syntaxHighlighter %}
<script src="{{ site.baseurl_javascripts }}prism.js"></script>
<script src="{{ site.baseurl_javascripts }}plugins/prism-line-numbers.min.js"></script>
<script src="{{ site.baseurl }}{{ site.baseurl_javascripts }}prism.js"></script>
<script src="{{ site.baseurl }}{{ site.baseurl_javascripts }}plugins/prism-line-numbers.min.js"></script>
{% endif %}

<script>
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<footer class="section--footer">
<div class="container container--content">
<div>
<a href="{{ site.baseurl }}humans.txt">Hand-crafted</a> by <a href="{{ site.baseurl }}about/">Your Name</a>
<a href="{{ site.baseurl }}/humans.txt">Hand-crafted</a> by <a href="{{ site.baseurl }}/about/">Your Name</a>
</div>
<ul class="socialAccountList">
<li><a href="http://twitter.com/{{ site.author.twitter }}" class="socialAccount socialAccount--twitter" target="_blank"></a></li>
Expand Down
14 changes: 7 additions & 7 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
<meta name="twitter:creator" content="@{{ site.author.twitter }}">
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.name }}{% endif %}">
<meta name="twitter:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<meta name="twitter:image" content="{% if page.image.feature %}{{ page.image.feature | prepend: site.baseurl_featured_img | prepend: site.url }}{% else %}{{ site.icon | prepend: site.baseurl | prepend: site.url }}{% endif %}">
<meta name="twitter:image" content="{% if page.image.feature %}{{ site.url }}{{ site.baseurl }}{{ site.baseurl_featured_img }}{{ page.image.feature }}{% else %}{{ site.icon | prepend: site.baseurl | prepend: site.url }}{% endif %}">
<meta name="twitter:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">

<!-- Open graph -->
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.name }}{% endif %}">
<meta property="og:type" content="{% if page.date %}article{% else %}website{% endif %}">
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">
<meta property="og:image" content="{% if page.image.feature %}{{ page.image.feature | prepend: site.baseurl_featured_img | prepend: site.url }}{% else %}{{ site.icon | prepend: site.baseurl | prepend: site.url }}{% endif %}">
<meta property="og:image" content="{% if page.image.feature %}{{ site.url }}{{ site.baseurl }}{{ site.baseurl_featured_img }}{{ page.image.feature }}{% else %}{{ site.icon | prepend: site.baseurl | prepend: site.url }}{% endif %}">
<meta property="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<meta property="og:site_name" content="{{ site.name }}">
<meta property="og:locale" content="{{ site.locale }}">
Expand Down Expand Up @@ -75,11 +75,11 @@
</title>

<!-- CSS -->
<link rel="stylesheet" href="{{ site.baseurl }}assets/css/main.css">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/main.css">

{% if page.syntaxHighlighter %}
<link rel="stylesheet" href="{{ site.baseurl }}assets/css/prism-okaidia.css">
<link rel="stylesheet" href="{{ site.baseurl }}assets/css/prism-line-numbers.css">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/prism-okaidia.css">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/prism-line-numbers.css">
{% endif %}

<!-- Fonts -->
Expand All @@ -88,8 +88,8 @@
<link href='http://fonts.googleapis.com/css?family=PT+Sans:700' rel='stylesheet' type='text/css'>

<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}assets/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="{{ site.baseurl }}assets/images/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}/assets/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="{{ site.baseurl }}/assets/images/favicon.ico">

<!-- RSS -->
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml">
Expand Down
2 changes: 1 addition & 1 deletion _includes/menu.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav class="menuWrapper">
<ul class="popover popover--menu">
<li class="menu-avatar">
<a href="{{ site.baseurl }}" class="brandLogo brandLogo--small
<a href="{{ site.baseurl }}/" class="brandLogo brandLogo--small
{% if page.bgContrast == "light" %}
brandLogo--black
{% endif %}
Expand Down
12 changes: 6 additions & 6 deletions _includes/modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<div class="u-tableCell u-verticalAlignMiddle">
<h2 class="h2--shareTitle">Share this story</h2>
<ul class="shareWrapper">
<li><a class="shareButton shareButton--twitter" href="https://twitter.com/intent/tweet?text={{ page.title | append: ' by @VincentChan' }}&url={{ page.url | prepend: site.url | url_encode }}" target="_blank"></a></li>
<li><a class="shareButton shareButton--facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | prepend: site.url | url_encode }}" target="_blank"></a></li>
<li><a class="shareButton shareButton--twitter" href="https://twitter.com/intent/tweet?text={{ page.title | append: ' by @VincentChan' }}&url={{ page.url | prepend: site.baseurl | prepend: site.url | url_encode }}" target="_blank"></a></li>
<li><a class="shareButton shareButton--facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | prepend: site.baseurl | prepend: site.url | url_encode }}" target="_blank"></a></li>
<li><a class="shareButton shareButton--linkedin" href="https://www.linkedin.com/shareArticle
?mini=true&url={{ page.url | prepend: site.url | url_encode }}&title={{ page.title }}" target="_blank"></a></li>
<li><a class="shareButton shareButton--buffer" href="https://buffer.com/add?text={{ page.title | append: ' by @VincentChan' }}&url={{ page.url | prepend: site.url | url_encode }}" target="_blank"></a></li>
<li><a class="shareButton shareButton--hackernews" href="http://news.ycombinator.com/submitlink?u={{ page.url | prepend: site.url | url_encode }}&t={{ page.title }}" target="_blank"></a></li>
<li><a class="shareButton shareButton--pocket" href="https://getpocket.com/save?url={{ page.url | prepend: site.url | url_encode }}&title={{ page.title }}" target="_blank"></a></li>
?mini=true&url={{ page.url | prepend: site.baseurl | prepend: site.url | url_encode }}&title={{ page.title }}" target="_blank"></a></li>
<li><a class="shareButton shareButton--buffer" href="https://buffer.com/add?text={{ page.title | append: ' by @VincentChan' }}&url={{ page.url | prepend: site.baseurl | prepend: site.url | url_encode }}" target="_blank"></a></li>
<li><a class="shareButton shareButton--hackernews" href="http://news.ycombinator.com/submitlink?u={{ page.url | prepend: site.baseurl | prepend: site.url | url_encode }}&t={{ page.title }}" target="_blank"></a></li>
<li><a class="shareButton shareButton--pocket" href="https://getpocket.com/save?url={{ page.url | prepend: site.baseurl | prepend: site.url | url_encode }}&title={{ page.title }}" target="_blank"></a></li>
</ul>
</div>
</div>
8 changes: 4 additions & 4 deletions _includes/sidebar-nav.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<nav role="navigation" class="sidebar sidebar--right">
<a href="{{site.baseurl}}" class="textLogo textLogo--white textLogo--sidebar">{{ site.name }}</a>
<a href="{{ site.baseurl }}/" class="textLogo textLogo--white textLogo--sidebar">{{ site.name }}</a>
<ul class="sidebar-recentPosts">
{% for post in site.posts offset:0 limit:10 %}
{% if post.title == page.title %}
<!-- exclude current post -->
{% else %}
<li>
{% if post.image.feature %}
<a href="{{ post.url }}" class="sidebar-recentPosts-image-wrapper">
<img src="{{ post.image.feature | prepend: site.baseurl_featured_thumbnail }}" style="" alt="">
<a href="{{ site.baseurl }}{{ post.url }}" class="sidebar-recentPosts-image-wrapper">
<img src="{{ site.baseurl }}{{ site.baseurl_featured_thumbnail }}{{ post.image.feature }}" style="" alt="">
</a>
{% endif %}
<a href="{{ post.url }}">{{ post.title }}</a>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
<div class="postMeta">{{ post.date | date_to_string }}</div>
</li>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion _includes/subscribe.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container container--content">
<h3 class="u-alignCenter">Stay in touch</h3>
<p>
Hi, I'm <a href="{{ site.baseurl }}about/">Your Name</a>. A short description of your blog. Mickey is a minimal one-column theme for Jekyll. It's designed and developed by <a href="http://github.com/vincentchan" target="_blank">@VincentChan</a>.
Hi, I'm <a href="{{ site.baseurl }}/about/">Your Name</a>. A short description of your blog. Mickey is a minimal one-column theme for Jekyll. It's designed and developed by <a href="http://github.com/vincentchan" target="_blank">@VincentChan</a>.
</p>
<div class="newsletterForm-wrapper">
<!-- Begin MailChimp Signup Form -->
Expand Down
6 changes: 3 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
{% include head.html %}

<body>
{% if page.url != '/index.html' %}
{% if page.url != "/" %}
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">
{% include sidebar-nav.html %}
{% include menu.html %}
{% endif %}

{{ content }}

{% if page.url != '/index.html' %}
{% if page.url != "/" %}
{% include sidebar-toggle.html %}
{% endif %}

{% if page.url == '/index.html' %}
{% if page.url == "/" %}
{% include subscribe.html %}
{% include footer.html %}
{% endif %}
Expand Down
6 changes: 3 additions & 3 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="section-backgroundImage">

{% if page.image.feature %}
<img class="post-featuredImage" src="{{ page.image.feature | prepend: site.baseurl_featured_img }}" style="
<img class="post-featuredImage" src="{{ site.baseurl }}{{ site.baseurl_featured_img }}{{ page.image.feature }}" style="
{% if page.image.topPosition %}
top:{{ page.image.topPosition }};
{% endif %}
Expand Down Expand Up @@ -66,7 +66,7 @@ <h2>{{ page.title }}</h2>
<div class="section-backgroundImage section-backgroundImage--previousPage">
<img class="post-featuredImage"
{% if page.previous.image.feature %}
src="{{ page.previous.image.feature | prepend: site.baseurl_featured_img }}"
src="{{ site.baseurl }}{{ site.baseurl_featured_img }}{{ page.previous.image.feature }}"
{% endif %}
style="top:0" alt="">
</div>
Expand All @@ -80,7 +80,7 @@ <h2>{{ page.title }}</h2>
<div class="section-title u-tableCell u-verticalAlignMiddle">
<div class="container">
<h4>Next story:</h4>
<a class="prev" href="{{page.previous.url}}">
<a class="prev" href="{{ site.baseurl }}{{page.previous.url}}">
<h2>{{page.previous.title}}</h2>
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _posts/2014-12-15-a-life-of-walt-disney.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Disney died from lung cancer on December 15, 1966, in Burbank, California. He le

#### Childhood

<div class="img img--fullContainer img--14xLeading" style="background-image: url({{ site.baseurl_posts_img }}walt-childhood.jpg);"></div>
<div class="img img--fullContainer img--14xLeading" style="background-image: url({{ site.baseurl }}{{ site.baseurl_posts_img }}walt-childhood.jpg);"></div>

Disney was born on December 5, 1901, at 2156 North Tripp Avenue in Chicago's Hermosa community area, to Elias Charles Disney, who was Irish-Canadian, and Flora Call Disney, who was of German and English descent. His great-grandfather, Arundel Elias Disney, had emigrated from Gowran, County Kilkenny, Ireland where he was born in 1801. Arundel Disney was a descendant of Robert d'Isigny, a Frenchman who had travelled to England with William the Conqueror in 1066. With the d'Isigny name anglicized as "Disney", the family settled in the English village now known as Norton Disney, south of the city of Lincoln, in the county of Lincolnshire.

Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ <h1 class="textLogo textLogo--frontpage">
<div class="postArticle-wrapper">
<article class="postArticle postArticle--short">
{% if post.image.feature %}
<a href="{{ post.url }}">
<div class="postArticle-image desaturate" style="background-image:url('{{ post.image.feature | prepend: site.baseurl_featured_img }}')">
<a href="{{ site.baseurl }}{{ post.url }}">
<div class="postArticle-image desaturate" style="background-image:url('{{ site.baseurl }}{{ site.baseurl_featured_img }}{{ post.image.feature }}')">
</div>
</a>
{% else %}
<a href="{{ post.url }}">
<a href="{{ site.baseurl }}{{ post.url }}">
<div class="postArticle-image" style="background-image:url('{{site.baseurl}}assets/images/logo-black.svg')">
</div>
</a>
{% endif %}
<a class="postArticle-title" href="{{ post.url }}">{{ post.title }}</a>
<a class="postArticle-title" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</article>
<div class="block-postMeta">{{ post.date | date_to_string }}</div>
</div>
Expand Down