Skip to content
This repository was archived by the owner on Jan 10, 2021. It is now read-only.

Commit de3b2a4

Browse files
Merge pull request #1 from chrisanthropic/gem
Gemify the theme
2 parents ed3654d + 2669d69 commit de3b2a4

19 files changed

+128
-359
lines changed

.bundle/config

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
BUNDLE_PATH: ".vendor"
3+
BUNDLE_BIN: ".bin"
4+
BUNDLE_DISABLE_SHARED_GEMS: true

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
starving-artist-jekyll-theme-*.gem
12
_site
23
.sass-cache
34
.asset-cache
45
.jekyll-metadata
56

67
.bundle
8+
.bin
9+
.vendor
710
bin
811
vendor/ruby
912
Gemfile.lock
10-
notes

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
source "https://rubygems.org"
2+
#gemspec
23
gem 'jekyll' #Needed since this is a theme for Jekyll
34
gem 'jekyll-feed'
45
gem 'rake' #Used to simplify building/deploying tasks
56
gem 's3_website' #Used to deploy site to AWS S3
67
gem 'mini_magick' #Used by a raketask to compress/optimize images at build time
7-
gem 'html_compressor' #Used to minify our HTML at build time
88
gem 'sass'
99
gem 'image_optim' #Optimizes our images
1010
gem 'image_optim_pack' #Tools that image_optim uses
11+
gem 'starving-artist-jekyll-theme', github: 'chrisanthropic/starving-artist-jekyll-theme', branch: 'gem'

LICENSE

-19
This file was deleted.

LICENSE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 chrisanthropic
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+28-38
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,36 @@
1-
starving-artist-jekyll-theme
2-
=============
1+
# starving-artist-jekyll-theme
32

43
Live Demo [HERE](http://chrisanthropic.github.io/starving-artist-jekyll-theme/)
54

65
Starving Artist is a simple portfolio theme for visual artists to easily share their work.
76

7+
## Installation
8+
9+
Add this line to your Jekyll site's Gemfile:
10+
11+
```ruby
12+
gem "starving-artist"
13+
```
14+
15+
And add this line to your Jekyll site:
16+
17+
```yaml
18+
theme: starving-artist
19+
```
20+
21+
And then execute:
22+
23+
$ bundle
24+
25+
## Usage
26+
27+
Includes the following custom layouts:
28+
29+
- about.html
30+
- blog.html
31+
- contact.html
32+
- gallery.html
33+
834
## Basic features include:
935
1036
* Jekyll 3.0 compatible
@@ -14,8 +40,6 @@ Starving Artist is a simple portfolio theme for visual artists to easily share t
1440
* Visibility classes
1541
* Responsive / Mobile-friendly
1642
* **Javascript free**
17-
* Custom Rakefile with tasks for deploying, minifying, and notifying search engines about updates
18-
* image_optim plugin to optimize all images
1943
* Basic SEO
2044
* Facebook opengraph integration
2145
* Twitter card integration
@@ -70,29 +94,9 @@ Uses minimal sass from Zurb Foundation:
7094
* Populated using Jekyll 'data' nav.yml file
7195
* Easily customizable text, link, and background colors using the supplied sass variables
7296
73-
### BANNER
74-
75-
7697
### JAVASCRIPT FREE
7798
The only thing in the theme that uses Javascript is the optional use of google analytics.
7899
79-
### RAKEFILE
80-
Includes the following custom tasks:
81-
82-
* *minify_html* - uses HTML_compressor to minify HTML
83-
* *notify* - pings google and bing to notify them about changes to the site/sitemap
84-
85-
These tasks have been bundled into custom build and deploy tasks
86-
87-
* *build* - runs `jekyll build` followed by `minify_html`
88-
* *deploy* - runs `s3_website push` and then `notify`
89-
90-
### IMAGE_OPTIM PLUGIN
91-
92-
* Custom [image_optim](https://github.com/chrisanthropic/image_optim-jekyll-plugin) plugin will optimize all images in the /images folder and any subdirectories
93-
* Uses the original [image_optim](https://github.com/toy/image_optim)
94-
* Cache file is created on the first run so that only updated/new images are optimized
95-
96100
### BASIC SEO
97101
98102
* Google Analytics*
@@ -141,17 +145,3 @@ For now it's best to start fresh or install the them and then transfer over any
141145
* edit the `_data/nav.yml` file as needed
142146
* Update your social links
143147
* edit the `_data/socials.yml` file as needed
144-
145-
## Deploying
146-
I use S3 to host my site and the [s3_website](https://github.com/laurilehmijoki/s3_website) plugin to deploy, if you don't do both of these, delete the `s3_website.yml` file and edit the deploy raketask to fit your needs.
147-
148-
If you plan on using S3 make sure you edit the configs:
149-
150-
* FIRST - add the s3_website.yml file to your gitignore so your credentials don't end up on the web.
151-
* s3_website.yml
152-
* add your `s3_id`. `s3_secret`, and `s3_bucket`
153-
* Update the Rakefile notify task to use your url
154-
* replace `site = "www.YOUR-URL.com"` with your actual url.
155-
156-
## MISC.
157-
The blog posts included are duplicated from my actual blog and are the documentation of how I created this theme. From starting with a fresh Jekyll installation to the final product.

Rakefile

-49
Original file line numberDiff line numberDiff line change
@@ -21,52 +21,3 @@ desc "Watch the site and regenerate when it changes"
2121
task :watch do
2222
system "JEKYLL_ENV=development bundle exec jekyll serve --config '_config.yml,_config_localhost.yml' --watch"
2323
end
24-
25-
##############
26-
# Deploy #
27-
##############
28-
29-
# Deploy the site
30-
# Ping / Notify after site is deployed
31-
32-
desc "deploy the site"
33-
task :deploy do
34-
system "bundle exec s3_website push"
35-
system "bundle exec rake notify" #ping google/bing about our sitemap updates
36-
end
37-
38-
##############
39-
# Notify #
40-
##############
41-
42-
# Ping Google and Yahoo to let them know you updated your site
43-
44-
site = "www.YOUR-URL.com"
45-
46-
desc 'Notify Google of the new sitemap'
47-
task :sitemapgoogle do
48-
begin
49-
require 'net/http'
50-
require 'uri'
51-
puts '* Pinging Google about our sitemap'
52-
Net::HTTP.get('www.google.com', '/webmasters/tools/ping?sitemap=' + URI.escape('#{site}/sitemap.xml'))
53-
rescue LoadError
54-
puts '! Could not ping Google about our sitemap, because Net::HTTP or URI could not be found.'
55-
end
56-
end
57-
58-
desc 'Notify Bing of the new sitemap'
59-
task :sitemapbing do
60-
begin
61-
require 'net/http'
62-
require 'uri'
63-
puts '* Pinging Bing about our sitemap'
64-
Net::HTTP.get('www.bing.com', '/webmaster/ping.aspx?siteMap=' + URI.escape('#{site}/sitemap.xml'))
65-
rescue LoadError
66-
puts '! Could not ping Bing about our sitemap, because Net::HTTP or URI could not be found.'
67-
end
68-
end
69-
70-
desc "Notify various services about new content"
71-
task :notify => [:sitemapgoogle, :sitemapbing] do
72-
end

_config.yml

+3-20
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ contact_form: "https://formspree.io/ctarwater@chrisanthropic.com"
1717

1818

1919
# Exclude our ruby stuff
20-
exclude: [.bundle, bin, vendor, Gemfile, Gemfile.lock, Rakefile, s3_website.yml]
20+
exclude: [.bundle, .vendor, .bin, starving-artist.gemspec, bin, vendor, Gemfile, Gemfile.lock, Rakefile, s3_website.yml]
2121

2222

2323
# Build settings
2424
markdown: kramdown
2525
kramdown:
2626
input: GFM
2727

28+
theme: starving-artist-jekyll-theme
29+
2830
# Plugins
2931
gems:
3032
- jekyll-feed
@@ -43,25 +45,6 @@ permalink: /blog/:year/:title
4345
collections:
4446
- galleries
4547

46-
## Thumbnailer taken from https://github.com/chrisanthropic/jekyll-minimagick
47-
48-
## Autogenerate thumbs for comics
49-
#mini_magick:
50-
51-
##Create Thumbs for the Archive Page
52-
# thumbnail:
53-
# source: images/posts/
54-
# destination: /images/posts/thumbs
55-
# resize: "150x150^"
56-
# gravity: "center"
57-
# extent: "150x150"
58-
59-
##Autogenerate smaller size for small screens
60-
# small:
61-
# source: images/posts/
62-
# destination: /images/posts/small
63-
# resize: "350"
64-
6548
#### SEO Stuff
6649
# Google Analytics
6750
google_universal_analytics:

_plugins/image_optim.rb.off

-48
This file was deleted.

_plugins/mini_magick.rb.off

-77
This file was deleted.

0 commit comments

Comments
 (0)