Update to latest jekyll
This commit is contained in:
parent
38bb6d6b67
commit
8e32784b57
@ -1 +1 @@
|
|||||||
2.3.1
|
2.5.3
|
||||||
|
7
Gemfile
7
Gemfile
@ -1,7 +1,12 @@
|
|||||||
source 'http://rubygems.org'
|
source 'http://rubygems.org'
|
||||||
|
|
||||||
gem 'github-pages', group: :jekyll_plugins
|
gem 'jekyll'
|
||||||
|
|
||||||
gem 'html-proofer'
|
gem 'html-proofer'
|
||||||
gem 'bourbon'
|
gem 'bourbon'
|
||||||
gem 'neat'
|
gem 'neat'
|
||||||
|
|
||||||
|
group :jekyll_plugins do
|
||||||
|
gem 'jekyll-compose'
|
||||||
|
gem 'jekyll-gist'
|
||||||
|
end
|
201
Gemfile.lock
201
Gemfile.lock
@ -1,150 +1,115 @@
|
|||||||
GEM
|
GEM
|
||||||
remote: http://rubygems.org/
|
remote: http://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
activesupport (4.2.5)
|
activesupport (4.2.10)
|
||||||
i18n (~> 0.7)
|
i18n (~> 0.7)
|
||||||
json (~> 1.7, >= 1.7.7)
|
|
||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
thread_safe (~> 0.3, >= 0.3.4)
|
thread_safe (~> 0.3, >= 0.3.4)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
addressable (2.4.0)
|
addressable (2.5.2)
|
||||||
bourbon (4.2.6)
|
public_suffix (>= 2.0.2, < 4.0)
|
||||||
|
bourbon (5.1.0)
|
||||||
sass (~> 3.4)
|
sass (~> 3.4)
|
||||||
thor (~> 0.19)
|
thor (~> 0.19)
|
||||||
coffee-script (2.4.1)
|
colorator (1.1.0)
|
||||||
coffee-script-source
|
colorize (0.8.1)
|
||||||
execjs
|
concurrent-ruby (1.0.5)
|
||||||
coffee-script-source (1.10.0)
|
em-websocket (0.5.1)
|
||||||
colorator (0.1)
|
eventmachine (>= 0.12.9)
|
||||||
colored (1.2)
|
http_parser.rb (~> 0.6.0)
|
||||||
ethon (0.8.0)
|
ethon (0.11.0)
|
||||||
ffi (>= 1.3.0)
|
ffi (>= 1.3.0)
|
||||||
execjs (2.7.0)
|
eventmachine (1.2.7)
|
||||||
faraday (0.9.2)
|
faraday (0.15.3)
|
||||||
multipart-post (>= 1.2, < 3)
|
multipart-post (>= 1.2, < 3)
|
||||||
ffi (1.9.10)
|
ffi (1.9.25)
|
||||||
gemoji (2.1.0)
|
forwardable-extended (2.6.0)
|
||||||
github-pages (87)
|
html-proofer (3.9.2)
|
||||||
github-pages-health-check (= 1.1.0)
|
activesupport (>= 4.2, < 6.0)
|
||||||
jekyll (= 3.1.6)
|
|
||||||
jekyll-coffeescript (= 1.0.1)
|
|
||||||
jekyll-feed (= 0.5.1)
|
|
||||||
jekyll-gist (= 1.4.0)
|
|
||||||
jekyll-github-metadata (= 2.0.2)
|
|
||||||
jekyll-mentions (= 1.1.3)
|
|
||||||
jekyll-paginate (= 1.1.0)
|
|
||||||
jekyll-redirect-from (= 0.11.0)
|
|
||||||
jekyll-sass-converter (= 1.3.0)
|
|
||||||
jekyll-seo-tag (= 2.0.0)
|
|
||||||
jekyll-sitemap (= 0.10.0)
|
|
||||||
jemoji (= 0.6.2)
|
|
||||||
kramdown (= 1.11.1)
|
|
||||||
liquid (= 3.0.6)
|
|
||||||
listen (= 3.0.6)
|
|
||||||
mercenary (~> 0.3)
|
|
||||||
rouge (= 1.11.1)
|
|
||||||
terminal-table (~> 1.4)
|
|
||||||
github-pages-health-check (1.1.0)
|
|
||||||
addressable (~> 2.3)
|
addressable (~> 2.3)
|
||||||
net-dns (~> 0.8)
|
colorize (~> 0.8)
|
||||||
octokit (~> 4.0)
|
|
||||||
public_suffix (~> 1.4)
|
|
||||||
typhoeus (~> 0.7)
|
|
||||||
html-pipeline (2.4.2)
|
|
||||||
activesupport (>= 2)
|
|
||||||
nokogiri (>= 1.4)
|
|
||||||
html-proofer (2.6.1)
|
|
||||||
activesupport (~> 4.2)
|
|
||||||
addressable (~> 2.3)
|
|
||||||
colored (~> 1.2)
|
|
||||||
mercenary (~> 0.3.2)
|
mercenary (~> 0.3.2)
|
||||||
nokogiri (~> 1.5)
|
nokogiri (~> 1.8.1)
|
||||||
parallel (~> 1.3)
|
parallel (~> 1.3)
|
||||||
typhoeus (~> 0.7)
|
typhoeus (~> 1.3)
|
||||||
yell (~> 2.0)
|
yell (~> 2.0)
|
||||||
i18n (0.7.0)
|
http_parser.rb (0.6.0)
|
||||||
jekyll (3.1.6)
|
i18n (0.9.5)
|
||||||
colorator (~> 0.1)
|
concurrent-ruby (~> 1.0)
|
||||||
|
jekyll (3.7.4)
|
||||||
|
addressable (~> 2.4)
|
||||||
|
colorator (~> 1.0)
|
||||||
|
em-websocket (~> 0.5)
|
||||||
|
i18n (~> 0.7)
|
||||||
jekyll-sass-converter (~> 1.0)
|
jekyll-sass-converter (~> 1.0)
|
||||||
jekyll-watch (~> 1.1)
|
jekyll-watch (~> 2.0)
|
||||||
kramdown (~> 1.3)
|
kramdown (~> 1.14)
|
||||||
liquid (~> 3.0)
|
liquid (~> 4.0)
|
||||||
mercenary (~> 0.3.3)
|
mercenary (~> 0.3.3)
|
||||||
rouge (~> 1.7)
|
pathutil (~> 0.9)
|
||||||
|
rouge (>= 1.7, < 4)
|
||||||
safe_yaml (~> 1.0)
|
safe_yaml (~> 1.0)
|
||||||
jekyll-coffeescript (1.0.1)
|
jekyll-compose (0.8.0)
|
||||||
coffee-script (~> 2.2)
|
|
||||||
jekyll-feed (0.5.1)
|
|
||||||
jekyll-gist (1.4.0)
|
|
||||||
octokit (~> 4.2)
|
|
||||||
jekyll-github-metadata (2.0.2)
|
|
||||||
jekyll (~> 3.1)
|
|
||||||
octokit (~> 4.0)
|
|
||||||
jekyll-mentions (1.1.3)
|
|
||||||
html-pipeline (~> 2.3)
|
|
||||||
jekyll (~> 3.0)
|
jekyll (~> 3.0)
|
||||||
jekyll-paginate (1.1.0)
|
jekyll-gist (1.5.0)
|
||||||
jekyll-redirect-from (0.11.0)
|
octokit (~> 4.2)
|
||||||
jekyll (>= 2.0)
|
jekyll-sass-converter (1.5.2)
|
||||||
jekyll-sass-converter (1.3.0)
|
sass (~> 3.4)
|
||||||
sass (~> 3.2)
|
jekyll-watch (2.1.2)
|
||||||
jekyll-seo-tag (2.0.0)
|
listen (~> 3.0)
|
||||||
jekyll (~> 3.1)
|
kramdown (1.17.0)
|
||||||
jekyll-sitemap (0.10.0)
|
liquid (4.0.0)
|
||||||
jekyll-watch (1.5.0)
|
listen (3.1.5)
|
||||||
listen (~> 3.0, < 3.1)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
jemoji (0.6.2)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
gemoji (~> 2.0)
|
ruby_dep (~> 1.2)
|
||||||
html-pipeline (~> 2.2)
|
mercenary (0.3.6)
|
||||||
jekyll (>= 3.0)
|
mini_portile2 (2.3.0)
|
||||||
json (1.8.3)
|
minitest (5.11.3)
|
||||||
kramdown (1.11.1)
|
|
||||||
liquid (3.0.6)
|
|
||||||
listen (3.0.6)
|
|
||||||
rb-fsevent (>= 0.9.3)
|
|
||||||
rb-inotify (>= 0.9.7)
|
|
||||||
mercenary (0.3.5)
|
|
||||||
mini_portile2 (2.0.0)
|
|
||||||
minitest (5.8.3)
|
|
||||||
multipart-post (2.0.0)
|
multipart-post (2.0.0)
|
||||||
neat (1.7.2)
|
neat (3.0.0)
|
||||||
bourbon (>= 4.0)
|
sass (~> 3.4)
|
||||||
sass (>= 3.3)
|
thor (~> 0.19)
|
||||||
net-dns (0.8.0)
|
nokogiri (1.8.5)
|
||||||
nokogiri (1.6.7.1)
|
mini_portile2 (~> 2.3.0)
|
||||||
mini_portile2 (~> 2.0.0.rc2)
|
octokit (4.13.0)
|
||||||
octokit (4.4.0)
|
sawyer (~> 0.8.0, >= 0.5.3)
|
||||||
sawyer (~> 0.7.0, >= 0.5.3)
|
parallel (1.12.1)
|
||||||
parallel (1.6.1)
|
pathutil (0.16.1)
|
||||||
public_suffix (1.5.3)
|
forwardable-extended (~> 2.6)
|
||||||
rb-fsevent (0.9.7)
|
public_suffix (2.0.5)
|
||||||
rb-inotify (0.9.7)
|
rb-fsevent (0.10.3)
|
||||||
ffi (>= 0.5.0)
|
rb-inotify (0.9.10)
|
||||||
rouge (1.11.1)
|
ffi (>= 0.5.0, < 2)
|
||||||
|
rouge (2.2.1)
|
||||||
|
ruby_dep (1.5.0)
|
||||||
safe_yaml (1.0.4)
|
safe_yaml (1.0.4)
|
||||||
sass (3.4.20)
|
sass (3.6.0)
|
||||||
sawyer (0.7.0)
|
sass-listen (~> 4.0.0)
|
||||||
addressable (>= 2.3.5, < 2.5)
|
sass-listen (4.0.0)
|
||||||
faraday (~> 0.8, < 0.10)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
terminal-table (1.7.3)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
unicode-display_width (~> 1.1.1)
|
sawyer (0.8.1)
|
||||||
thor (0.19.1)
|
addressable (>= 2.3.5, < 2.6)
|
||||||
thread_safe (0.3.5)
|
faraday (~> 0.8, < 1.0)
|
||||||
typhoeus (0.8.0)
|
thor (0.20.0)
|
||||||
ethon (>= 0.8.0)
|
thread_safe (0.3.6)
|
||||||
tzinfo (1.2.2)
|
typhoeus (1.3.0)
|
||||||
|
ethon (>= 0.9.0)
|
||||||
|
tzinfo (1.2.5)
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
unicode-display_width (1.1.1)
|
yell (2.0.7)
|
||||||
yell (2.0.5)
|
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
bourbon
|
bourbon
|
||||||
github-pages
|
|
||||||
html-proofer
|
html-proofer
|
||||||
|
jekyll
|
||||||
|
jekyll-compose
|
||||||
|
jekyll-gist
|
||||||
neat
|
neat
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.13.2
|
1.17.1
|
||||||
|
@ -6,9 +6,11 @@ url: http://walkah.net
|
|||||||
markdown: kramdown
|
markdown: kramdown
|
||||||
permalink: blog/:title/
|
permalink: blog/:title/
|
||||||
exclude: [Gemfile, Gemfile.lock, vendor]
|
exclude: [Gemfile, Gemfile.lock, vendor]
|
||||||
gems: [bourbon, neat]
|
|
||||||
sass:
|
sass:
|
||||||
style: compressed
|
style: compressed
|
||||||
|
|
||||||
gems:
|
plugins:
|
||||||
|
- bourbon
|
||||||
|
- neat
|
||||||
- jekyll-gist
|
- jekyll-gist
|
||||||
|
@ -20,3 +20,5 @@
|
|||||||
{% if page.summary %}<meta name="twitter:description" content="{{ page.summary }}">{% endif %}
|
{% if page.summary %}<meta name="twitter:description" content="{{ page.summary }}">{% endif %}
|
||||||
{% if page.image %}<meta name="twitter:image" content="{{ site.url }}{{ page.image }}">{% endif %}
|
{% if page.image %}<meta name="twitter:image" content="{{ site.url }}{{ page.image }}">{% endif %}
|
||||||
<meta name="microid" content="mailto+http:sha1:d1026e95deb9e779de34648de0c7e2c83e1d2a73" />
|
<meta name="microid" content="mailto+http:sha1:d1026e95deb9e779de34648de0c7e2c83e1d2a73" />
|
||||||
|
<link rel="apple-touch-icon" href="//s.gravatar.com/avatar/b29b5419f81fa03145cafc684bb20c76.png?s=60" />
|
||||||
|
<link rel="shortcut icon" type="image/png" href="//s.gravatar.com/avatar/b29b5419f81fa03145cafc684bb20c76.png?s=16" />
|
@ -1,5 +1,5 @@
|
|||||||
<div class="vcard">
|
<div class="vcard">
|
||||||
<img src="http://www.gravatar.com/avatar/b29b5419f81fa03145cafc684bb20c76.png?s=75" class="photo left" alt="James Walker" >
|
<img src="//www.gravatar.com/avatar/b29b5419f81fa03145cafc684bb20c76.png?s=75" class="photo left" alt="James Walker" >
|
||||||
<p><a href="/about" class="fn n">James Walker</a> (a.k.a. <a href="http://walkah.net/" rel="me" class="url nickname uid">walkah</a>) is an independent developer and hacker. He is a long time <a href="http://drupal.org/user/1531" rel="me">Drupal</a> developer, but these days spends more time in Python, Ruby and Javascript.</p>
|
<p><a href="/about" class="fn n">James Walker</a> (a.k.a. <a href="https://walkah.net/" rel="me" class="url nickname uid">walkah</a>) is an independent developer and hacker. He is a long time <a href="http://drupal.org/user/1531" rel="me">Drupal</a> developer, but these days spends more time in Python, Ruby and Javascript.</p>
|
||||||
<p>You can follow him on <a href="https://twitter.com/walkah" rel="me">twitter</a> or <a href="https://github.com/walkah">github</a>.</p>
|
<p>You can follow him on <a href="https://twitter.com/walkah" rel="me">twitter</a> or <a href="https://github.com/walkah">github</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,10 +5,9 @@
|
|||||||
{% include meta.html %}
|
{% include meta.html %}
|
||||||
|
|
||||||
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
|
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
|
||||||
<link href='http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>
|
<link href='//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>
|
||||||
<link href="//netdna.bootstrapcdn.com/font-awesome/latest/css/font-awesome.css" rel="stylesheet">
|
<link href="//netdna.bootstrapcdn.com/font-awesome/latest/css/font-awesome.css" rel="stylesheet">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="/favicon.ico" >
|
|
||||||
<link href="/atom.xml" rel="alternate" title="{{site.title}}" type="application/atom+xml">
|
<link href="/atom.xml" rel="alternate" title="{{site.title}}" type="application/atom+xml">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
layout: page
|
layout: page
|
||||||
title: Posts tagged "{{ page.tag }}"
|
title: Posts tagged "{{ page.tag }}"
|
||||||
---
|
---
|
||||||
{% for post in site.tags[page.tag] reverse %}
|
{% for post in site.tags[page.tag] %}
|
||||||
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
||||||
{% unless year == this_year %}
|
{% unless year == this_year %}
|
||||||
{% assign year = this_year %}
|
{% assign year = this_year %}
|
||||||
<h3>{{ year }}</h3>
|
<h3>{{ year }}</h3>
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% include article_list.html %}
|
{% include article_list.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<p><i class="fa fa-rss"></i> <a href="/tag/{{ page.tag | replace:' ','-' }}/atom.xml">Subscribe</a></p>
|
<p><i class="fa fa-rss"></i> <a href="/tag/{{ page.tag | replace:' ','-' }}/atom.xml">Subscribe</a></p>
|
||||||
|
85
_plugins/tag_index.rb
Normal file
85
_plugins/tag_index.rb
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
module Jekyll
|
||||||
|
class TagIndex < Page
|
||||||
|
def initialize(site, base, dir, tag)
|
||||||
|
@site = site
|
||||||
|
@base = base
|
||||||
|
@dir = dir
|
||||||
|
@name = 'index.html'
|
||||||
|
self.process(@name)
|
||||||
|
self.read_yaml(File.join(base, '_layouts'), 'tag_index.html')
|
||||||
|
self.data['tag'] = tag
|
||||||
|
tag_title_prefix = site.config['tag_title_prefix'] || 'Posts Tagged “'
|
||||||
|
tag_title_suffix = site.config['tag_title_suffix'] || '”'
|
||||||
|
self.data['title'] = "#{tag_title_prefix}#{tag}#{tag_title_suffix}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TagFeed < Page
|
||||||
|
def initialize(site, base, tag_dir, tag)
|
||||||
|
@site = site
|
||||||
|
@base = base
|
||||||
|
@dir = tag_dir
|
||||||
|
@name = 'atom.xml'
|
||||||
|
self.process(@name)
|
||||||
|
# Read the YAML data from the layout page.
|
||||||
|
self.read_yaml(File.join(base, '_layouts'), 'tag_feed.xml')
|
||||||
|
self.data['tag'] = tag
|
||||||
|
# Set the title for this page.
|
||||||
|
tag_title_prefix = site.config['tag_title_prefix'] || 'Posts Tagged “'
|
||||||
|
tag_title_suffix = site.config['tag_title_suffix'] || '”'
|
||||||
|
self.data['title'] = "#{tag_title_prefix}#{tag}#{tag_title_suffix}"
|
||||||
|
# Set the meta-description for this page.
|
||||||
|
|
||||||
|
# Set the correct feed URL.
|
||||||
|
self.data['feed_url'] = "#{tag_dir}/#{name}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TagGenerator < Generator
|
||||||
|
safe true
|
||||||
|
def generate(site)
|
||||||
|
if site.layouts.key? 'tag_index'
|
||||||
|
dir = site.config['tag_dir'] || 'tag'
|
||||||
|
site.tags.keys.each do |tag|
|
||||||
|
dest_dir = File.join(dir, tag.tr(' ', '-'))
|
||||||
|
write_tag_index(site, dest_dir, tag)
|
||||||
|
write_tag_feed(site, dest_dir, tag)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def write_tag_index(site, dir, tag)
|
||||||
|
index = TagIndex.new(site, site.source, dir, tag)
|
||||||
|
index.render(site.layouts, site.site_payload)
|
||||||
|
index.write(site.dest)
|
||||||
|
site.pages << index
|
||||||
|
end
|
||||||
|
|
||||||
|
def write_tag_feed(site, dir, tag)
|
||||||
|
feed = TagFeed.new(site, site.source, dir, tag)
|
||||||
|
feed.render(site.layouts, site.site_payload)
|
||||||
|
feed.write(site.dest)
|
||||||
|
site.pages << feed
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Adds some extra filters used during the category creation process.
|
||||||
|
module TagFilter
|
||||||
|
# Outputs a list of categories as comma-separated <a> links. This is used
|
||||||
|
# to output the category list for each post on a category page.
|
||||||
|
#
|
||||||
|
# +categories+ is the list of categories to format.
|
||||||
|
#
|
||||||
|
# Returns string
|
||||||
|
#
|
||||||
|
def tag_links(tags)
|
||||||
|
tags = tags.sort!.map do |item|
|
||||||
|
item.tr!(' ', '-')
|
||||||
|
"<a class='tag' href='/tag/#{item}/'>#{item}</a>"
|
||||||
|
end
|
||||||
|
tags.join(', ')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
Liquid::Template.register_filter(Jekyll::TagFilter)
|
@ -2,11 +2,11 @@
|
|||||||
layout: page
|
layout: page
|
||||||
title: Blog Archive
|
title: Blog Archive
|
||||||
---
|
---
|
||||||
{% for post in site.posts reverse %}
|
{% for post in site.posts %}
|
||||||
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
||||||
{% unless year == this_year %}
|
{% unless year == this_year %}
|
||||||
{% assign year = this_year %}
|
{% assign year = this_year %}
|
||||||
<h3>{{ year }}</h3>
|
<h3>{{ year }}</h3>
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% include article_list.html %}
|
{% include article_list.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
BIN
favicon.ico
BIN
favicon.ico
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
Loading…
x
Reference in New Issue
Block a user