Skip to content

Commit 7cf274c

Browse files
committed
cst-clone
1 parent cf20425 commit 7cf274c

Some content is hidden

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

61 files changed

+2618
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Read this before making a pull request
2+
3+
### There's no need to make a pull request against the original repo for personal changes
4+
5+
You can publish your copy of Pixyll from your fork using Github Pages, without ever needing to make a pull request. The original source repository (johnotander/pixyll) exists as a template.
6+
7+
To learn more look [here](https://stackoverflow.com/questions/3611256/forking-vs-branching-in-github)

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
_site
2+
.sass-cache
3+
.DS_Store
4+
.jekyll-metadata
5+
6+
# Ignore the config file that's used for gh-pages.
7+
_config.gh-pages.yml
8+
9+
Gemfile.lock

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: ruby
2+
cache: bundler
3+
sudo: false
4+
rvm:
5+
- 2.1
6+
- 2.2
7+
- 2.3
8+
- 2.4
9+
script:
10+
- bundle exec jekyll build
11+
- grep johnotander/pixyll _site/index.html
12+
- grep post-title _site/index.html
13+
- grep pagination-item _site/index.html
14+
- grep johnotander/pixyll _site/css/pixyll.css
15+
- grep 404 _site/404.html

404.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: center
3+
permalink: /404.html
4+
---
5+
6+
# 404
7+
8+
Sorry, we can't seem to find this page's pixylls.
9+
10+
<div class="mt3">
11+
<a href="{{ site.baseurl }}/" class="button button-blue button-big">Home</a>
12+
<a href="{{ site.baseurl }}/contact/" class="button button-blue button-big">Contact</a>
13+
</div>

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
# A simple Ruby Gem to bootstrap dependencies for setting up and
4+
# maintaining a local Jekyll environment in sync with GitHub Pages
5+
# https://github.com/github/pages-gem
6+
gem 'github-pages'

LICENSE.txt

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

Rakefile

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
drafts_dir = '_drafts'
2+
posts_dir = '_posts'
3+
4+
# rake post['my new post']
5+
desc 'create a new post with "rake post[\'post title\']"'
6+
task :post, :title do |t, args|
7+
if args.title
8+
title = args.title
9+
else
10+
puts "Please try again. Remember to include the filename."
11+
end
12+
mkdir_p "#{posts_dir}"
13+
filename = "#{posts_dir}/#{Time.now.strftime('%Y-%m-%d')}-#{title.downcase.gsub(/[^\w]+/, '-')}.md"
14+
puts "Creating new post: #{filename}"
15+
File.open(filename, "w") do |f|
16+
f << <<-EOS.gsub(/^ /, '')
17+
---
18+
layout: post
19+
title: #{title}
20+
date: #{Time.new.strftime('%Y-%m-%d %H:%M')}
21+
categories:
22+
---
23+
24+
EOS
25+
end
26+
27+
# Uncomment the line below if you want the post to automatically open in your default text editor
28+
# system ("#{ENV['EDITOR']} #{filename}")
29+
end
30+
31+
# usage: rake draft['my new draft']
32+
desc 'create a new draft post with "rake draft[\'draft title\']"'
33+
task :draft, :title do |t, args|
34+
if args.title
35+
title = args.title
36+
else
37+
puts "Please try again. Remember to include the filename."
38+
end
39+
mkdir_p "#{drafts_dir}"
40+
filename = "#{drafts_dir}/#{title.downcase.gsub(/[^\w]+/, '-')}.md"
41+
puts "Creating new draft: #{filename}"
42+
File.open(filename, "w") do |f|
43+
f << <<-EOS.gsub(/^ /, '')
44+
---
45+
layout: post
46+
title: #{title}
47+
date: #{Time.new.strftime('%Y-%m-%d %H:%M')}
48+
categories:
49+
---
50+
51+
EOS
52+
end
53+
54+
# Uncomment the line below if you want the draft to automatically open in your default text editor
55+
# system ("#{ENV['EDITOR']} #{filename}")
56+
end
57+
58+
desc 'preview the site with drafts'
59+
task :preview do
60+
puts "## Generating site"
61+
puts "## Stop with ^C ( <CTRL>+C )"
62+
system "jekyll serve --watch --drafts"
63+
end
64+
65+
desc 'list tasks'
66+
task :list do
67+
puts "Tasks: #{(Rake::Task.tasks - [Rake::Task[:list]]).join(', ')}"
68+
puts "(type rake -T for more detail)\n\n"
69+
end

_config.yml

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Site settings
2+
title: IdeaLab CST Blog
3+
email: ab.idealab@gmail.com
4+
author: Infant Derrick Gnanasusairaj
5+
description: "The Blog for the CST stream for IdeaLab"
6+
baseurl: "/cst-blog"
7+
url: ""
8+
date_format: "%b %-d, %Y"
9+
header_pages:
10+
- about.md
11+
- contact.html
12+
13+
# Google services
14+
google_verification:
15+
# Use either direct GA implementation or set up GTM account
16+
# - using both will skew your data (leave blank to not use at all)
17+
google_analytics:
18+
google_tag_manager:
19+
# Bing services
20+
bing_verification:
21+
22+
# Optional features
23+
animated: false
24+
show_related_posts: false
25+
show_post_footers: false
26+
show_social_icons: false
27+
ajaxify_contact_form: false
28+
enable_mathjax: false
29+
extended_fonts: false
30+
enable_anchorjs: false
31+
# Preview image for social media aka og:image and twitter:image
32+
post_preview_image: false
33+
34+
# Facebook Page integration
35+
# (for instant articles and other stuff)
36+
fb_page: false
37+
fb_page_id:
38+
39+
# Disqus post comments
40+
# (leave blank to disable Disqus)
41+
disqus_shortname:
42+
43+
# txtpen post comments
44+
# (leave blank to disable txtpen)
45+
txtpen_sitename:
46+
47+
# Facebook Comments plugin
48+
# (leave blank to disable Facebook Comments, otherwise set it to true)
49+
facebook_comments:
50+
facebook_appid:
51+
facebook_comments_number: 10
52+
53+
# Social icons
54+
github_username:
55+
reddit_username:
56+
bitbucket_username:
57+
stackoverflow_id:
58+
twitter_username:
59+
skype_username:
60+
steam_nickname:
61+
google_plus_id:
62+
linkedin_username:
63+
angellist_username:
64+
medium_id:
65+
bitcoin_url:
66+
paypal_url:
67+
flattr_button:
68+
telegram_username:
69+
vk_id:
70+
71+
# Post sharing icons
72+
show_sharing_icons: false
73+
# Change to 'true' to enable individual icons
74+
share_facebook: false
75+
share_twitter: false
76+
share_googleplus: false
77+
share_linkedin: false
78+
share_digg: false
79+
share_tumblr: false
80+
share_reddit: false
81+
share_stumbleupon: false
82+
share_hackernews: false
83+
84+
text:
85+
pagination:
86+
newer: 'Newer'
87+
older: 'Older'
88+
share_buttons:
89+
text: 'Share this post!'
90+
facebook: 'Share on Facebook'
91+
twitter: 'Share on Twitter'
92+
googleplus: 'Share on Google+'
93+
linkedin: 'Share on LinkedIn'
94+
digg: 'Share on Digg'
95+
tumblr: 'Share on Tumblr'
96+
reddit: 'Share on Reddit'
97+
stumbleupon: 'Share on StumbleUpon'
98+
hackernews: 'Share on Hacker News'
99+
post:
100+
updated: 'Updated'
101+
minute_read: 'minute read'
102+
related_posts: 'Related Posts'
103+
index:
104+
coming_soon: 'Coming soon...'
105+
contact:
106+
email: 'Email Address'
107+
content: 'What would you like to say?'
108+
subject: 'New submission!'
109+
submit: 'Say Hello'
110+
ajax:
111+
sending: 'sending..'
112+
sent: 'Message sent!'
113+
error: 'Error!'
114+
thanks: 'Thanks for contacting us. We will reply as soon as possible.'
115+
og_locale: 'en_US'
116+
117+
# Build settings
118+
markdown: kramdown
119+
redcarpet:
120+
extensions: ['smart', 'tables', 'with_toc_data']
121+
permalink: pretty
122+
paginate: 4
123+
sass:
124+
style: compressed
125+
plugins:
126+
- jekyll-paginate
127+
- jekyll-sitemap
128+
# https://github.com/jekyll/jekyll/issues/2938
129+
exclude:
130+
- Gemfile
131+
- Gemfile.lock
132+
- vendor
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<script>
2+
var contactForm = document.querySelector('form'),
3+
inputEmail = contactForm.querySelector('[name="email"]'),
4+
textAreaMessage = contactForm.querySelector('[name="content"]'),
5+
sendButton = contactForm.querySelector('button');
6+
7+
sendButton.addEventListener('click', function(event){
8+
event.preventDefault();
9+
10+
sendButton.innerHTML = '{{ site.text.contact.ajax.sending }}';
11+
12+
var xhr = new XMLHttpRequest();
13+
xhr.open('POST', '//formspree.io/{{ site.email }}', true);
14+
xhr.setRequestHeader("Accept", "application/json")
15+
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
16+
17+
xhr.send(
18+
"email=" + inputEmail.value +
19+
"&message=" + textAreaMessage.value);
20+
21+
xhr.onloadend = function (res) {
22+
if (res.target.status === 200){
23+
sendButton.innerHTML = '{{ site.text.contact.ajax.sent }}';
24+
}
25+
else {
26+
sendButton.innerHTML = '{{ site.text.contact.ajax.error }}';
27+
}
28+
}
29+
});
30+
</script>

_includes/footer.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<footer class="center">
2+
<div class="measure">
3+
<small>
4+
Back to <a href="https://idea-lab.github.io">Home</a>
5+
&lt;/&gt; available on <a href="https://github.com/johnotander/pixyll">GitHub</a>.
6+
</small>
7+
</div>
8+
</footer>
9+
{% if site.enable_anchorjs %}<!-- AnchorJS -->
10+
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.0.0/anchor.min.js"></script>
11+
<script>
12+
anchors.options.visible = 'always';
13+
anchors.add('article h2, article h3, article h4, article h5, article h6');
14+
</script>{% endif %}

0 commit comments

Comments
 (0)