Skip to content

Commit

Permalink
feat(theme): refactor theme related code according to jekyll
Browse files Browse the repository at this point in the history
  • Loading branch information
kosalaperera committed Jul 22, 2020
1 parent 85edfca commit 39aa704
Show file tree
Hide file tree
Showing 32 changed files with 42 additions and 37 deletions.
5 changes: 3 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ sass:

# Use Bookworm gem-based theme
# - uncomment will use the remote theme instead
# remote_theme: alertbox/bookworm
# remote_theme: alertbox/jekyll-theme-bookworm
theme: jekyll-theme-bookworm

plugins:
- jekyll-feed
Expand All @@ -91,7 +92,7 @@ exclude:
- screenshot.png
- robots.txt
- vendor
- bookworm.gemspec
- '*.gemspec'
- '*.gem'
- '*.sh'
include:
Expand Down
30 changes: 30 additions & 0 deletions _sass/bookworm.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*!
* Pixyll - A simple, beautiful Jekyll theme that's mobile first.
* Crafted with <3 by John Otander (@4lpine) - ©2015-2019 John Otander
* @author John Otander <[email protected]> (http://johnotander.com/)
* @link https://github.com/johnotander/pixyll
* @license MIT
*/
@charset 'UTF-8';

@import 'bookworm/variables';

@import 'bookworm/basscss';

@import 'bookworm/base';

@import 'bookworm/links';
@import 'bookworm/positions';
@import 'bookworm/clearfix';
@import 'bookworm/code';
@import 'bookworm/typography';
@import 'bookworm/header';
@import 'bookworm/tables';
@import 'bookworm/animations';
@import 'bookworm/footer';
@import 'bookworm/blockquotes';
@import 'bookworm/posts';
@import 'bookworm/media-queries';
@import 'bookworm/gists';
@import 'bookworm/measure';
@import 'bookworm/pagination';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 3 additions & 30 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -1,34 +1,7 @@
---
# The scss file which include files from _sass/
---
@charset "UTF-8";
@charset 'UTF-8';
$base-url: "{{ site.baseurl }}";

/*!
* Pixyll - A simple, beautiful Jekyll theme that's mobile first.
* Crafted with <3 by John Otander (@4lpine) - ©2015-2019 John Otander
* @author John Otander <[email protected]> (http://johnotander.com/)
* @link https://github.com/johnotander/pixyll
* @license MIT
*/

@import 'variables';

@import 'basscss';

@import 'base';

@import 'links';
@import 'positions';
@import 'clearfix';
@import 'code';
@import 'typography';
@import 'header';
@import 'tables';
@import 'animations';
@import 'footer';
@import 'blockquotes';
@import 'posts';
@import 'media-queries';
@import 'gists';
@import 'measure';
@import 'pagination';
@import "bookworm";
11 changes: 6 additions & 5 deletions bookworm.gemspec → jekyll-theme-booworm.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

Gem::Specification.new do |spec|
spec.name = "bookworm"
spec.name = "jekyll-theme-bookworm"
spec.version = "1.0.0"
spec.authors = ["Kosala Nuwan Perera"]
spec.email = ["[email protected]"]
Expand All @@ -13,11 +13,12 @@ Gem::Specification.new do |spec|
spec.metadata["plugin_type"] = "theme"

spec.files = `git ls-files -z`.split("\x0").select do |f|
f.match(%r{^((_includes|_layouts|_sass|assets)/|Rakefile|(LICENSE|README)((\.(txt|md|markdown)|$)))}i)
f.match(%r{^(_layouts|_includes|_sass|LICENSE|README)/i})
end

spec.add_runtime_dependency "jekyll", "~> 3.3"
spec.add_development_dependency "bundler", ">= 1.12"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_runtime_dependency "jekyll-feed", "~> 0.9"
spec.add_development_dependency 'jekyll'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake'

end

0 comments on commit 39aa704

Please sign in to comment.