diff --git a/Gemfile b/Gemfile index dbace9d..3be9c3c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,2 @@ source "https://rubygems.org" -gem 'rouge' -gem 'jekyll' -gem 'jekyll-paginate' +gemspec diff --git a/_config.yml b/_config.yml index 73ddb32..91e930d 100644 --- a/_config.yml +++ b/_config.yml @@ -6,7 +6,7 @@ url: "https://rohanchandra.github.io/" theme_settings: # Meta title: Type Theme - avatar: avatar.png + avatar: assets/img/avatar.png gravatar: # Email MD5 hash description: "A website with blog posts and pages" # used by search engines @@ -76,3 +76,7 @@ sass: sass_dir: _sass style: :compressed plugins: [jekyll-paginate] +theme: jekyll-theme-type +exclude: + - Gemfile + - Gemfile.lock diff --git a/_includes/footer.html b/_includes/footer.html index 79885a5..775bb70 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,5 +1,5 @@ {% if site.theme_settings.katex %} - + {% endif %} {% if site.theme_settings.footer_text %} diff --git a/_includes/head.html b/_includes/head.html index 4009e22..b02dc2d 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -5,7 +5,7 @@ - + diff --git a/_includes/header.html b/_includes/header.html index ad38665..bacbfeb 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -6,7 +6,7 @@ {% elsif site.theme_settings.avatar %} - + {% endif %}

diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..296c864 --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,52 @@ +--- +layout: default +--- + +
+ {% if site.theme_settings.header_text %} +
+ {{ site.theme_settings.header_text }} +
+ {% endif %} + +
+ {% for post in paginator.posts %} + + {% endfor %} +
+ + {% if paginator.total_pages > 1 %} + + {% endif %} +
diff --git a/_posts/2014-11-28-markdown-and-html.md b/_posts/2014-11-28-markdown-and-html.md index 5cc51e6..8bb2fa6 100644 --- a/_posts/2014-11-28-markdown-and-html.md +++ b/_posts/2014-11-28-markdown-and-html.md @@ -14,7 +14,7 @@ Content Cell | Content Cell Here's an example of an image, which is included using Markdown: -![Geometric pattern with fading gradient]({{ site.baseurl }}/img/sample_feature_img_2.png) +![Geometric pattern with fading gradient]({{ site.baseurl }}/assets/img/sample_feature_img_2.png) Highlighting for code in Jekyll is done using Pygments or Rouge. This theme makes use of Rouge by default. diff --git a/_posts/2014-11-29-feature-images.md b/_posts/2014-11-29-feature-images.md index 252dd81..323048c 100644 --- a/_posts/2014-11-29-feature-images.md +++ b/_posts/2014-11-29-feature-images.md @@ -1,6 +1,6 @@ --- layout: post title: Feature images -feature-img: "img/sample_feature_img.png" +feature-img: "assets/img/sample_feature_img.png" --- This is an example of a post which includes a feature image specified in the front matter of the post. The feature image spans the full-width of the page, and is shown with the title on permalink pages. diff --git a/css/main.scss b/_sass/type-theme.scss similarity index 97% rename from css/main.scss rename to _sass/type-theme.scss index 92d89c4..664571e 100644 --- a/css/main.scss +++ b/_sass/type-theme.scss @@ -1,5 +1,3 @@ ---- ---- // External @import 'external/reset'; @import 'external/syntax'; diff --git a/about.md b/about.md index 0e26e9c..e2f995a 100644 --- a/about.md +++ b/about.md @@ -2,7 +2,7 @@ layout: page title: About permalink: /about/ -feature-img: "img/sample_feature_img_2.png" +feature-img: "assets/img/sample_feature_img_2.png" --- Type Theme is a free and open-source theme for [Jekyll](http://jekyllrb.com/), licensed under the MIT License. diff --git a/assets/css/main.scss b/assets/css/main.scss new file mode 100644 index 0000000..96938cf --- /dev/null +++ b/assets/css/main.scss @@ -0,0 +1,4 @@ +--- +--- + +@import "type-theme"; diff --git a/img/avatar.png b/assets/img/avatar.png similarity index 100% rename from img/avatar.png rename to assets/img/avatar.png diff --git a/img/sample_feature_img.png b/assets/img/sample_feature_img.png similarity index 100% rename from img/sample_feature_img.png rename to assets/img/sample_feature_img.png diff --git a/img/sample_feature_img_2.png b/assets/img/sample_feature_img_2.png similarity index 100% rename from img/sample_feature_img_2.png rename to assets/img/sample_feature_img_2.png diff --git a/img/sample_feature_img_3.png b/assets/img/sample_feature_img_3.png similarity index 100% rename from img/sample_feature_img_3.png rename to assets/img/sample_feature_img_3.png diff --git a/js/katex_init.js b/assets/js/katex_init.js similarity index 100% rename from js/katex_init.js rename to assets/js/katex_init.js diff --git a/index.html b/index.html index 296c864..e4d427d 100644 --- a/index.html +++ b/index.html @@ -1,52 +1,3 @@ --- -layout: default +layout: home --- - -
- {% if site.theme_settings.header_text %} -
- {{ site.theme_settings.header_text }} -
- {% endif %} - -
- {% for post in paginator.posts %} - - {% endfor %} -
- - {% if paginator.total_pages > 1 %} - - {% endif %} -
diff --git a/jekyll-theme-type.gemspec b/jekyll-theme-type.gemspec new file mode 100644 index 0000000..62d7e12 --- /dev/null +++ b/jekyll-theme-type.gemspec @@ -0,0 +1,20 @@ +# coding: utf-8 + +Gem::Specification.new do |spec| + spec.name = "jekyll-theme-type" + spec.version = "1.0" + spec.authors = ["Rohan Chandra"] + spec.email = ["hellorohan@outlook.com"] + + spec.summary = %q{A free and open-source Jekyll theme. Great for blogs and easy to customize.} + spec.homepage = "https://github.com/rohanchandra/type-theme" + spec.license = "MIT" + + spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|_layouts|_includes|_sass|LICENSE|README)}i) } + + spec.add_runtime_dependency "jekyll", "~> 3.4" + spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" + + spec.add_development_dependency "bundler", "~> 1.12" + spec.add_development_dependency "rake", "~> 10.0" +end