Skip to content

Commit e80f126

Browse files
committed
try hpster
1 parent e4fbe07 commit e80f126

File tree

121 files changed

+9618
-767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+9618
-767
lines changed

.gitignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
_site/
2-
.sass-cache/
3-
.jekyll-metadata
1+
_site
2+
.DS_Store
3+
*.sublime-project
4+
*.sublime-workspace
5+
codekit-config.json
6+
node_modules
7+
Gemfile.lock
8+
.sass-cache
9+
.jekyll-metadata

.jshintrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"bitwise": true,
3+
"browser": true,
4+
"curly": true,
5+
"eqeqeq": true,
6+
"eqnull": true,
7+
"es5": false,
8+
"esnext": true,
9+
"immed": true,
10+
"jquery": true,
11+
"latedef": true,
12+
"newcap": true,
13+
"noarg": true,
14+
"node": true,
15+
"strict": false,
16+
"trailing": false,
17+
"undef": true,
18+
"multistr": true,
19+
"expr": true
20+
}

404.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: page
3+
title: "Page Not Found"
4+
description: "Page not found. Your pixels are in another canvas."
5+
comments: false
6+
share: false
7+
permalink: /404.html
8+
---
9+
10+
Sorry, but the page you were trying to view does not exist --- perhaps you can try searching for it below.
11+
12+
<script type="text/javascript">
13+
var GOOG_FIXURL_LANG = 'en';
14+
var GOOG_FIXURL_SITE = '{{ site.url }}'
15+
</script>
16+
<script type="text/javascript"
17+
src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js">
18+
</script>

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source "https://rubygems.org"
2+
3+
gem "json"
4+
gem "jekyll"
5+
gem "jekyll-sitemap"
6+
gem "jekyll-feed"
7+
gem "jekyll-paginate"
8+
gem "jekyll-gist"

Gruntfile.js

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
'use strict';
2+
module.exports = function(grunt) {
3+
4+
grunt.initConfig({
5+
jshint: {
6+
options: {
7+
jshintrc: '.jshintrc'
8+
},
9+
all: [
10+
'Gruntfile.js',
11+
'!assets/js/*.js',
12+
'!assets/js/plugins/*.js',
13+
'!assets/js/scripts.min.js'
14+
]
15+
},
16+
uglify: {
17+
dist: {
18+
files: {
19+
'assets/js/scripts.min.js': [
20+
'assets/js/plugins/*.js',
21+
'assets/js/_*.js'
22+
]
23+
}
24+
}
25+
},
26+
imagemin: {
27+
dist: {
28+
options: {
29+
optimizationLevel: 7,
30+
progressive: true
31+
},
32+
files: [{
33+
expand: true,
34+
cwd: 'images/',
35+
src: '{,*/}*.{png,jpg,jpeg}',
36+
dest: 'images/'
37+
}]
38+
}
39+
},
40+
svgmin: {
41+
dist: {
42+
files: [{
43+
expand: true,
44+
cwd: 'images/',
45+
src: '{,*/}*.svg',
46+
dest: 'images/'
47+
}]
48+
}
49+
},
50+
watch: {
51+
js: {
52+
files: [
53+
'<%= jshint.all %>'
54+
],
55+
tasks: ['jshint','uglify']
56+
}
57+
},
58+
clean: {
59+
dist: [
60+
'assets/js/scripts.min.js'
61+
]
62+
}
63+
});
64+
65+
// Load tasks
66+
grunt.loadNpmTasks('grunt-contrib-clean');
67+
grunt.loadNpmTasks('grunt-contrib-jshint');
68+
grunt.loadNpmTasks('grunt-contrib-uglify');
69+
grunt.loadNpmTasks('grunt-contrib-watch');
70+
grunt.loadNpmTasks('grunt-contrib-imagemin');
71+
grunt.loadNpmTasks('grunt-svgmin');
72+
73+
// Register tasks
74+
grunt.registerTask('default', [
75+
'clean',
76+
'uglify',
77+
'imagemin',
78+
'svgmin'
79+
]);
80+
grunt.registerTask('dev', [
81+
'watch'
82+
]);
83+
84+
};

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
The MIT License (MIT)
22

3-
Copyright (c) 2017 sharath Kumar
3+
Copyright (c) 2014 Michael Rose
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# HPSTR Jekyll Theme
2+
3+
They say three times the charm, so here is another free responsive Jekyll theme for you. I've learned a ton since open sourcing [my first two themes](https://mademistakes.com/work/jekyll-themes/), and wanted to try a few new things this time around. If you've used my previous themes most of this should be familiar territory.
4+
5+
**Compatible with Jekyll 3.0 and up.**
6+
7+
## What HPSTR brings to the table:
8+
9+
* Modern and minimal design.
10+
* Responsive templates for post, page, and post index `_layouts`. Looks great on mobile, tablet, and desktop devices.
11+
* Gracefully degrades in older browsers. Compatible with Internet Explorer 8+ and all modern browsers.
12+
* Sweet animated menu with support for drop-downs.
13+
* Optional [Disqus](http://disqus.com) comments and social sharing links.
14+
* [Open Graph](https://developers.facebook.com/docs/opengraph/) and [Twitter Cards](https://dev.twitter.com/docs/cards) support for a better social sharing experience.
15+
* Simple [custom 404 page](http://mmistakes.github.io/hpstr-jekyll-theme/404.html) to get you started.
16+
* [Syntax highlighting](http://mmistakes.github.io/hpstr-jekyll-theme/code-highlighting-post/) stylesheet to make your code examples look snazzy
17+
* [Available in Spanish](https://github.com/cruznick/hpstr-jekyll-theme/tree/es). Thanks [@cruznick](https://github.com/cruznick)!
18+
19+
![HPSTR Theme Preview screenshot](http://mmistakes.github.io/hpstr-jekyll-theme/images/hpstr-jekyll-theme-preview.jpg)
20+
21+
---
22+
23+
## Getting Started
24+
25+
HPSTR takes advantage of SCSS and data files to make customizing easier. This theme requires Jekyll 3.x and will not work with older versions properly.
26+
27+
To learn how to install and use this theme check out the [Setup Guide](https://mmistakes.github.io/hpstr-jekyll-theme/theme-setup/) for more information.

_config.yml

Lines changed: 81 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,89 @@
1-
### your site title here
1+
title: Site Title
2+
description: Describe your website here.
3+
disqus_shortname:
4+
reading_time: true
5+
words_per_minute: 200
6+
# Your site's domain goes here (eg: https://mmistakes.github.io, http://yourdomain.com, etc)
7+
# When testing locally leave blank or use http://localhost:4000
8+
url:
29

3-
title: solvingj's blog
10+
# Owner/author information
11+
owner:
12+
name: Your Name
13+
avatar: avatar.jpg
14+
bio: "Your bio goes here. It shouldn't be super long but a good sentence or two should suffice."
15+
email: you@email.com
16+
# Social networking links used in footer. Update and remove as you like.
17+
twitter:
18+
facebook:
19+
github:
20+
stackexchange:
21+
linkedin:
22+
instagram:
23+
flickr:
24+
tumblr:
25+
# google plus id, include the '+', eg +mmistakes
26+
google_plus:
427

28+
# Background image to be tiled on all pages
29+
background:
530

6-
sass:
7-
style: compressed
31+
# Analytics and webmaster tools stuff goes here
32+
google_analytics:
33+
google_verify:
34+
# https://ssl.bing.com/webmaster/configure/verify/ownership Option 2 content= goes here
35+
bing_verify:
836

37+
# http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
38+
timezone: America/New_York
39+
future: false # publish future dated posts -- true, false (default)
40+
highlighter: rouge
41+
markdown: kramdown
42+
gems:
43+
- jekyll-sitemap
44+
- jekyll-paginate
45+
- jekyll-gist
46+
- jekyll-feed
47+
sass:
48+
sass_dir: _sass
49+
style: compressed
950

10-
# Tracker
11-
analytics: UA-83979019-1
51+
# https://github.com/mojombo/jekyll/wiki/Permalinks
52+
permalink: /:categories/:title/
1253

54+
# Amount of post to show on home page
55+
paginate: 5
56+
57+
kramdown:
58+
input: GFM
59+
auto_ids: true
60+
footnote_nr: 1
61+
entity_output: as_char
62+
toc_levels: 1..6
63+
enable_coderay: false
1364

1465
include:
15-
- _pages
66+
- .htaccess
67+
exclude:
68+
- "*.less"
69+
- "*.sublime-project"
70+
- "*.sublime-workspace"
71+
- .asset-cache
72+
- .bundle
73+
- .jekyll-assets-cache
74+
- .sass-cache
75+
- CHANGELOG
76+
- Capfile
77+
- Gemfile
78+
- Gruntfile.js
79+
- LICENSE
80+
- README
81+
- Rakefile
82+
- config
83+
- gulpfile.js
84+
- lib
85+
- log
86+
- node_modules
87+
- package.json
88+
- spec
89+
- tmp

_data/navigation.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Menu navigation links
2+
3+
- title: Theme Setup
4+
url: /theme-setup/
5+
6+
- title: External Link
7+
url: http://mademistakes.com

_includes/analytics.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

_includes/browser-upgrade.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!--[if lt IE 9]><div class="upgrade"><strong><a href="http://whatbrowser.org/">Your browser is quite old!</strong> Why not upgrade to a different browser to better enjoy this site?</a></div><![endif]-->

_includes/disqus_comments.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% if site.disqus_shortname %}
2+
<script type="text/javascript">
3+
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
4+
var disqus_shortname = '{{ site.disqus_shortname }}'; // required: replace example with your forum shortname
5+
6+
/* * * DON'T EDIT BELOW THIS LINE * * */
7+
(function() {
8+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
9+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
10+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
11+
})();
12+
13+
/* * * DON'T EDIT BELOW THIS LINE * * */
14+
(function () {
15+
var s = document.createElement('script'); s.async = true;
16+
s.type = 'text/javascript';
17+
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
18+
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
19+
}());
20+
</script>
21+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
22+
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
23+
{% endif %}

_includes/feed-footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
&lt;p&gt;&lt;a href=&quot;{{ site.url }}{{ post.url }}&quot;&gt;{{ post.title | xml_escape }}&lt;/a&gt; was originally published by {{ site.owner.name }} at &lt;a href=&quot;{{ site.url }}&quot;&gt;{{ site.title }}&lt;/a&gt; on {{ post.date | date: "%B %d, %Y" }}.&lt;/p&gt;

_includes/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<span>&copy; {{ site.time | date: '%Y' }} {{ site.owner.name }}. Powered by <a href="http://jekyllrb.com" rel="nofollow">Jekyll</a> using the <a href="https://mademistakes.com/work/hpstr-jekyll-theme/" rel="nofollow">HPSTR Theme</a>.</span>

_includes/gallery

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% assign images = include.images | split:" " %}
2+
{% assign caption = include.caption %}
3+
{% assign cols = include.cols %}
4+
5+
{% case cols %}
6+
{% when 1 %}
7+
{% assign class = "" %}
8+
{% when 2 %}
9+
{% assign class = "half" %}
10+
{% when 3 %}
11+
{% assign class = "third" %}
12+
{% else %}
13+
{% assign class = "" %}
14+
{% endcase %}
15+
16+
<figure {% if class != "" %}class="{{ class }}"{% endif %}>
17+
{% for image in images %}
18+
<a href="{{ image }}"><img src="{{ image }}" alt=""></a>
19+
{% endfor %}
20+
<figcaption>{{ caption }}</figcaption>
21+
</figure>

0 commit comments

Comments
 (0)