Skip to content

Commit 3eceab0

Browse files
committed
Copying 2018 website content to KeystoneDH 2018 folder
0 parents  commit 3eceab0

Some content is hidden

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

82 files changed

+2846
-0
lines changed

.gitignore

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

404.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: center
3+
permalink: /404.html
4+
---
5+
6+
# 404
7+
8+
# Sorry *!*

Gemfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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 'jekyll'
7+
gem 'jekyll-paginate'
8+
gem 'jekyll-sitemap'
9+
gem 'jekyll-feed'
10+
gem 'gemoji'
11+
gem 'json'
12+
gem 'github-pages'

LICENSE.txt

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

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Digital Scholarship @ Swarthmore
2+
3+
---
4+
based on the excellent [pixyll.com](http://www.pixyll.com) by [John Otander](http://johnotander.com)
5+
see theme repo for full documentation
6+
---
7+
8+
## Thanks to the following
9+
10+
* [BASSCSS](http://basscss.com)
11+
* [Jekyll](http://jekyllrb.com)
12+
* [Refills](http://refills.bourbon.io/)
13+
* [Solarized](http://ethanschoonover.com/solarized)
14+
* [Animate.css](http://daneden.github.io/animate.css/)
15+
16+
## Post-receive hook
17+
18+
- added post-receive hook to aws remote repository (`.git/hooks/`)
19+
- added deploy remote `ds-aws`
20+
- must make the post-receive script executable `chmod +x post-receive`
21+
- (still necessary?) needed to manually install gem `io-console` in order for `bundler` to work correctly
22+
23+
:clap: :clap: :clap: :clap:

Rakefile

+69
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

+141
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
# Site settings
2+
title: Keystone DH 2017
3+
4+
description: "2017 Keystone Digital Humanities Conference will be held at the Chemical Heritage Foundation, July 12-14, 2017."
5+
baseurl: ""
6+
url: "http://keystonedh.network"
7+
date_format: "%b %-d, %Y"
8+
9+
# Prose settings
10+
prose:
11+
rooturl: '_posts'
12+
media: 'media'
13+
metadata:
14+
_posts:
15+
- name: "layout"
16+
field:
17+
element: "hidden"
18+
value: "post"
19+
- name: "categories"
20+
field:
21+
element: "multiselect"
22+
label: "Add categories"
23+
placeholder: "Choose Tags"
24+
options:
25+
- name: "Left"
26+
value: "left"
27+
- name: "Right"
28+
value: "Right"
29+
- name: "date"
30+
field:
31+
element: "hidden"
32+
value: CURRENT_DATETIME
33+
- name: "title"
34+
field:
35+
element: "text"
36+
label: "title"
37+
- name: "published"
38+
field:
39+
element: "checkbox"
40+
label: "Publish"
41+
value: false
42+
43+
# Google services
44+
google_verification:
45+
# Use either direct GA implementation or set up GTM account
46+
# - using both will skew your data (leave blank to not use at all)
47+
google_analytics:
48+
google_tag_manager:
49+
# Bing services
50+
bing_verification:
51+
52+
# Optional features
53+
animated: false
54+
show_related_posts: false
55+
show_post_footers: false
56+
show_social_icons: true
57+
ajaxify_contact_form: false
58+
enable_mathjax: false
59+
extended_fonts: false
60+
enable_anchorjs: false
61+
62+
# Disqus post comments
63+
# (leave blank to disable Disqus)
64+
disqus_shortname:
65+
66+
# Facebook Comments plugin
67+
# (leave blank to disable Facebook Comments, otherwise set it to true)
68+
facebook_comments:
69+
facebook_appid:
70+
facebook_comments_number: 10
71+
72+
# Social icons
73+
github_username: keystonedh
74+
bitbucket_username:
75+
stackoverflow_id:
76+
twitter_username: keystonedh
77+
skype_username:
78+
steam_nickname:
79+
google_plus_id:
80+
linkedin_username:
81+
angellist_username:
82+
medium_id:
83+
bitcoin_url:
84+
paypal_url:
85+
flattr_button:
86+
87+
# Post sharing icons
88+
show_sharing_icons: true
89+
# Change to 'true' to enable individual icons
90+
share_facebook: false
91+
share_twitter: true
92+
share_googleplus: false
93+
share_linkedin: false
94+
share_digg: false
95+
share_tumblr: false
96+
share_reddit: false
97+
share_stumbleupon: false
98+
share_hackernews: false
99+
100+
text:
101+
pagination:
102+
newer: 'Newer'
103+
older: 'Older'
104+
share_buttons:
105+
text: 'Share this post!'
106+
facebook: 'Share on Facebook'
107+
twitter: 'Share on Twitter'
108+
linkedin: 'Share on LinkedIn'
109+
post:
110+
updated: 'Updated'
111+
minute_read: 'minute read'
112+
related_posts: 'Related Posts'
113+
index:
114+
coming_soon: 'Coming soon...'
115+
contact:
116+
email: 'Email Address'
117+
content: 'What would you like to say?'
118+
subject: 'New submission!'
119+
submit: 'Say Hello'
120+
ajax:
121+
sending: 'sending..'
122+
sent: 'Message sent!'
123+
error: 'Error!'
124+
thanks: 'Thanks for contacting us. We will reply as soon as possible.'
125+
og_locale: 'en_US'
126+
127+
# Build settings
128+
markdown: kramdown
129+
redcarpet:
130+
extensions: ['smart', 'tables', 'with_toc_data']
131+
permalink: pretty
132+
paginate: 10
133+
paginate_path: "blog/posts/:num"
134+
sass:
135+
compressed: true
136+
gems:
137+
- jekyll-paginate
138+
- jekyll-sitemap
139+
- gemoji
140+
# https://github.com/jekyll/jekyll/issues/2938
141+
exclude: [vendor, html-example]

_includes/ajaxify_content_form.html

+30
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

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<footer class="center">
2+
<div class="measure">
3+
<small>
4+
<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/80x15.png" /></a>
5+
</small>
6+
</div>
7+
</footer>
8+
{% if site.enable_anchorjs %}<!-- AnchorJS -->
9+
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.0.0/anchor.min.js"></script>
10+
<script>
11+
anchors.options.visible = 'always';
12+
anchors.add('article h2, article h3, article h4, article h5, article h6');
13+
</script>{% endif %}

0 commit comments

Comments
 (0)