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: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
gem "html-proofer"
gem "jekyll"
group :jekyll_plugins do
gem "github-pages"
gem "jekyll-seo-tag"
gem "ruby"
end
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ theme: jekyll-theme-hacker
google_analytics: UA-107410166-1
plugins:
- jekyll-seo-tag
- ruby
29 changes: 29 additions & 0 deletions _plugins/convert_javascript.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module Jekyll
class ConvertJS < Converter
safe true
priority :low

def matches(ext)
ext =~ /^\.js$/i
end

def output_ext(ext)
".html"
end

def convert(content)
#---
#title: "First Drawing"
#date: 2017-10-02
#categories: update
#---
#
#My first drawing...
#
#{% include 2017-10-02-first-drawing.js %}
#
#<a href="{{ site.baseurl }}/">Back...</a>
content
end
end
end
2 changes: 2 additions & 0 deletions _posts/2017-10-02-first-drawing.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rect(20, 20, 150, 100);
stroke();
11 changes: 0 additions & 11 deletions _posts/2017-10-02-first-post.md

This file was deleted.