Commit 25f95904 authored by jeekajoo's avatar jeekajoo
Browse files

upgrade jekyll, minima, jekyll-feed, jekyll-toc

parent 17b83638
source "https://rubygems.org"
ruby RUBY_VERSION
gem "jekyll", "3.3.1"
gem "minima", "~> 2.1.0"
gem "jekyll", "3.5.1"
gem "minima", "~> 2.1.1"
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.8.0"
gem "jekyll-feed", "~> 0.9.2"
gem "jekyll-paginate-v2", "~> 1.7.3"
gem "jekyll-seo-tag", "~> 2.1.0"
gem "jekyll-sitemap", "~> 1.0.0"
gem "jekyll-twitter-plugin", "~> 2.0.0"
gem "jekyll-toc", "~> 0.2.0"
gem "jekyll-toc", "~> 0.3.0"
end
......@@ -42,10 +42,14 @@ pagination:
sort_field: 'date'
sort_reverse: true
# Date format
minima:
date_format: "%d/%m/%Y"
# Build settings
markdown: kramdown
theme: minima
gems:
plugins:
- jekyll-feed
- jekyll-paginate-v2
- jekyll-seo-tag
......
<ul class="post-list">
{% for post in include.cat limit:include.limit %}
<li>
<span class="post-meta">{{ post.date | date: "%d/%m/%Y" }} • {{ post.author }}</span>
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
<span class="post-meta">{{ post.date | date: date_format }} • {{ post.author }}</span>
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape | truncatewords: include.truncate }}</a>
</li>
{% endfor %}
......
......@@ -39,7 +39,7 @@
</div>
<div class="footer-col footer-col-2">
<ul class="social-media-list">
<ul class="contact-list">
<li>
{% assign feedurl = "/feed.xml" | relative_url %}
{% include icon-footer.html icon='icon-feed.svg' linkurl=feedurl linktext='Flux RSS' %}
......
<header class="site-header" role="banner">
<div class="wrapper">
{% assign default_paths = site.pages | map: "path" %}
{% assign page_paths = site.header_pages | default: default_paths %}
<a class="site-title" href="{{ "/" | relative_url}}">
{% if site.logo %}
<img src="{{ site.logo | relative_url }}" width="auto" height="56" alt="logo">
......@@ -11,25 +12,30 @@
{% endif %}
</a>
<nav class="site-nav">
<span class="menu-icon" onclick="void(0)">
<svg viewBox="0 0 18 15" width="18px" height="15px">
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</span>
{% if page_paths %}
<nav class="site-nav">
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger">
<span class="menu-icon">
<svg viewBox="0 0 18 15" width="18px" height="15px">
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</span>
</label>
<div class="trigger" onclick="void(0)">
{% for my_page in site.pages %}
{% unless my_page.menu_exclusion %}
{% if my_page.title %}
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{% endif %}
{% endunless %}
{% endfor %}
</div>
</nav>
<div class="trigger" onclick="void(0)">
{% for my_page in site.pages %}
{% unless my_page.menu_exclusion %}
{% if my_page.title %}
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{% endif %}
{% endunless %}
{% endfor %}
</div>
</nav>
{% endif %}
</div>
......
......@@ -10,7 +10,8 @@ layout: default
<ul class="post-list">
{% for post in paginator.posts %}
<li>
<span class="post-meta">{{ post.date | date: "%d/%m/%Y" }} • {{ post.author }}</span>
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
<span class="post-meta">{{ post.date | date: date_format }} • {{ post.author }}</span>
<h2>
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
......
......@@ -5,7 +5,8 @@ layout: default
<header class="post-header">
<h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1>
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%d/%m/%Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: date_format }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
</header>
<div class="post-content" itemprop="articleBody">
......
---
# Only the main Sass file needs front matter (the dashes are enough)
---
@charset "utf-8";
// Our variables
$base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
$base-font-size: 16px;
$base-font-weight: 400;
$small-font-size: $base-font-size * 0.875;
$base-line-height: 1.5;
$spacing-unit: 30px;
$text-color: #111;
$background-color: #fdfdfd;
$brand-color: #2a7ae2;
$grey-color: #828282;
$grey-color-light: lighten($grey-color, 40%);
$grey-color-dark: darken($grey-color, 25%);
$spacing-unit: 30px !default;
$grey-color: #828282 !default;
// Width of the content area
$content-width: 1000px;
$on-palm: 770px;
$on-laptop: 1000px;
// Minima also includes a mixin for defining media queries.
// Use media queries like this:
// @include media-query($on-palm) {
// .wrapper {
// padding-right: $spacing-unit / 2;
// padding-left: $spacing-unit / 2;
// }
// }
// Import partials from the `minima` theme.
@import "minima";
.site-title {
font-size: 1.1em;
font-size: 4vmin;
letter-spacing: -1px;
letter-spacing: 0.05vmin;
@mixin media-query($device) {
@media screen and (max-width: $device) {
@content;
}
}
.post-title {
font-size: 2em;
}
#videoFrame {
width:100%;
......@@ -170,3 +138,5 @@ ul.pager li {display: inline;border: 1px solid grey; padding: 10px; margin: 5px;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
@import "minima";
......@@ -2,6 +2,7 @@
layout: null
---
[
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
{% for post in site.posts %}
{
"title" : "{{ post.title | escape }}",
......@@ -10,7 +11,7 @@ layout: null
"tags" : "{{ post.tags | join: ', ' }}",
"author" : "{{ post.author }} ",
"url" : "{{ site.baseurl }}{{ post.url }}",
"date" : "{{ post.date | date: "%d/%m/%Y" }} • ",
"date" : "{{ post.date | date: date_format }} • ",
"content" : "{{ post.content | strip_html | strip_newlines }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment