forked from mmistakes/jekyll-theme-basically-basic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
253 changed files
with
10,834 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = false | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
_assets/css/vendor/* linguist-vendored | ||
_assets/js/plugins/* linguist-vendored | ||
_assets/js/vendor/* linguist-vendored | ||
assets/fonts/* linguist-vendored | ||
assets/js/vendor/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
*.gem | ||
*.sublime-project | ||
*.sublime-workspace | ||
.bundle | ||
.DS_Store | ||
.jekyll-metadata | ||
.sass-cache | ||
_asset_bundler_cache | ||
_site | ||
codekit-config.json | ||
example/_site | ||
Gemfile.lock | ||
node_modules | ||
npm-debug.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## [Unreleased] - YYYY-MM-DD | ||
### Added | ||
- for new features | ||
|
||
### Changed | ||
- for changes in existing functionality | ||
|
||
### Deprecated | ||
- for once-stable features removed in upcoming releases | ||
|
||
### Fixed | ||
- for any bug fixes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
source "https://rubygems.org" | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017 Michael Rose | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
require "bundler/gem_tasks" | ||
require "jekyll" | ||
require "listen" | ||
|
||
def listen_ignore_paths(base, options) | ||
[ | ||
/_config\.ya?ml/, | ||
/_site/, | ||
/\.jekyll-metadata/ | ||
] | ||
end | ||
|
||
def listen_handler(base, options) | ||
site = Jekyll::Site.new(options) | ||
Jekyll::Command.process_site(site) | ||
proc do |modified, added, removed| | ||
t = Time.now | ||
c = modified + added + removed | ||
n = c.length | ||
relative_paths = c.map{ |p| Pathname.new(p).relative_path_from(base).to_s } | ||
print Jekyll.logger.message("Regenerating:", "#{relative_paths.join(", ")} changed... ") | ||
begin | ||
Jekyll::Command.process_site(site) | ||
puts "regenerated in #{Time.now - t} seconds." | ||
rescue => e | ||
puts "error:" | ||
Jekyll.logger.warn "Error:", e.message | ||
Jekyll.logger.warn "Error:", "Run jekyll build --trace for more information." | ||
end | ||
end | ||
end | ||
|
||
task :preview do | ||
base = Pathname.new('.').expand_path | ||
options = { | ||
"source" => base.join('example').to_s, | ||
"destination" => base.join('example/_site').to_s, | ||
"force_polling" => false, | ||
"serving" => true, | ||
"theme" => "jekyll-theme-basically-basic" | ||
} | ||
|
||
options = Jekyll.configuration(options) | ||
|
||
ENV["LISTEN_GEM_DEBUGGING"] = "1" | ||
listener = Listen.to( | ||
base.join("_includes"), | ||
base.join("_layouts"), | ||
base.join("_sass"), | ||
base.join("assets"), | ||
options["source"], | ||
:ignore => listen_ignore_paths(base, options), | ||
:force_polling => options['force_polling'], | ||
&(listen_handler(base, options)) | ||
) | ||
|
||
begin | ||
listener.start | ||
Jekyll.logger.info "Auto-regeneration:", "enabled for '#{options["source"]}'" | ||
|
||
unless options['serving'] | ||
trap("INT") do | ||
listener.stop | ||
puts " Halting auto-regeneration." | ||
exit 0 | ||
end | ||
|
||
loop { sleep 1000 } | ||
end | ||
rescue ThreadError | ||
# You pressed Ctrl-C, oh my! | ||
end | ||
|
||
Jekyll::Commands::Serve.process(options) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% assign author = page.author | default: page.authors[0] | default: site.author %} | ||
{% if author %} | ||
{% if author.name %} | ||
{% assign author_name = author.name %} | ||
{% else %} | ||
{% if site.data.authors and site.data.authors[author] %} | ||
{% assign author_name = site.data.authors[author].name %} | ||
{% else %} | ||
{% assign author_name = author %} | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% if author.picture %} | ||
{% assign author_picture = author.picture %} | ||
{% else %} | ||
{% if site.data.authors and site.data.authors[author] %} | ||
{% assign author_picture = site.data.authors[author].picture %} | ||
{% endif %} | ||
{% unless author_picture contains '://' %}{% assign author_picture = author_picture | relative_url %}{% endunless %} | ||
{% endif %} | ||
|
||
{% if author.twitter %} | ||
{% assign author_twitter = author.twitter %} | ||
{% else %} | ||
{% if site.data.authors and site.data.authors[author] %} | ||
{% assign author_twitter = site.data.authors[author].twitter %} | ||
{% else %} | ||
{% assign author_twitter = site.twitter_username %} | ||
{% endif %} | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<ul class="contact-list"> | ||
{% if site.email %} | ||
<li> | ||
<a href="mailto:{{ site.email }}"> | ||
<span class="icon icon--email">{% include icon-email.svg %}</span> | ||
<span class="label">Email</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
{% if site.github_username %} | ||
<li>{% include icon-github.html username=site.github_username label='GitHub' %}</li> | ||
{% endif %} | ||
|
||
{% if site.twitter_username %} | ||
<li>{% include icon-twitter.html username=site.twitter_username label='Twitter' %}</li> | ||
{% endif %} | ||
|
||
<li> | ||
{% if site.gems contains 'jekyll-feed' %} | ||
<a href="{{ site.feed.path | default: 'feed.xml' | relative_url }}" title="Atom Feed"> | ||
<span class="icon icon--rss">{% include icon-rss.svg %}</span> | ||
<span class="label">Subscribe</span> | ||
</a> | ||
{% endif %} | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% if cv.awards %} | ||
<div id="awards" class="entry"> | ||
<header class="entry-header"> | ||
<h3 class="entry-title">Awards</h3> | ||
</header> | ||
|
||
<div class="entry-content"> | ||
{% for a in cv.awards %} | ||
{% if a.title %} | ||
<h4 class="title">{{ a.title }}</h4> | ||
{% endif %} | ||
{% if a.date %} | ||
<div class="date">{{ a.date }}</div> | ||
{% endif %} | ||
{% if a.awarder %} | ||
<h5 class="awarder">{{ a.awarder }}</h5> | ||
{% endif %} | ||
{% if a.summary %} | ||
<div class="summary">{{ a.summary | markdownify }}</div> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{% if cv.basics.summary %} | ||
<div class="summary"> | ||
{{ cv.basics.summary | markdownify }} | ||
</div> | ||
{% endif %} | ||
|
||
<div id="contact" class="entry"> | ||
<header class="entry-header"> | ||
<h3 class="entry-title">Contact</h3> | ||
</header> | ||
|
||
<div class="entry-content"> | ||
{% if cv.basics.email %} | ||
<div class="email"><strong>Email</strong> <a href="mailto:{{ cv.basics.email }}">{{ cv.basics.email }}</a></div> | ||
{% endif %} | ||
{% if cv.basics.phone %} | ||
<div class="phone"><strong>Phone</strong> {{ cv.basics.phone }}</div> | ||
{% endif %} | ||
{% if cv.basics.website %} | ||
<div class="website"><strong>Website</strong> <a href="{{ cv.basics.website }}">{{ cv.basics.website }}</a></div> | ||
{% endif %} | ||
{% if cv.basics.profiles %} | ||
{% for p in cv.basics.profiles %} | ||
<div class="item"> | ||
{% if p.network %} | ||
<strong class="network">{{ p.network | append: ' ' }}</strong> | ||
{% endif %} | ||
{% if p.username %} | ||
<span class="username"> | ||
{% if p.url %} | ||
<a href="{{ p.url }}">{{ p.username }}</a> | ||
{% else %} | ||
{{ p.username }} | ||
{% endif %} | ||
</span> | ||
{% endif %} | ||
</div> | ||
{% endfor %} | ||
{% endif %} | ||
</div> | ||
</div> | ||
|
||
{% if cv.basics.location %} | ||
<div id="location" class="entry"> | ||
<header class="entry-header"> | ||
<h3 class="entry-title">Location</h3> | ||
</header> | ||
|
||
<div class="entry-content"> | ||
<address> | ||
{% if cv.basics.location.address %} | ||
<span class="address">{{ cv.basics.location.address }}</span><br /> | ||
{% endif %} | ||
{% if cv.basics.location.city %} | ||
<span class="city">{{ cv.basics.location.city | append: ', ' }}</span> | ||
{% endif %} | ||
{% if cv.basics.location.region %} | ||
<span class="region">{{ cv.basics.location.region | append: ' ' }}</span> | ||
{% endif %} | ||
{% if cv.basics.location.postalCode %} | ||
<span class="postalCode">{{ cv.basics.location.postalCode | append: ' ' }}</span> | ||
{% endif %} | ||
{% if cv.basics.location.countryCode %} | ||
<span class="countryCode">{{ cv.basics.location.countryCode }}</span> | ||
{% endif %} | ||
</address> | ||
</div> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% if cv.education %} | ||
<div id="education" class="entry"> | ||
<header class="entry-header"> | ||
<h3 class="entry-title">Education</h3> | ||
</header> | ||
|
||
<div class="entry-content"> | ||
{% for e in cv.education %} | ||
{% if e.institution %} | ||
<h4 class="institution">{{ e.institution }}</h4> | ||
{% endif %} | ||
<div class="date"> | ||
{% if e.startDate %} | ||
<span class="startDate">{{ e.startDate }}</span> | ||
{% endif %} | ||
{% if e.endDate %} | ||
<span class="endDate">{{ e.endDate | prepend: ' — ' }}</span> | ||
{% else %} | ||
<span class="endDate">{{ Present | prepend: ' — ' }}</span> | ||
{% endif %} | ||
</div> | ||
{% if e.area %} | ||
<div class="area"><strong>{{ e.area }}{% if e.studyType %}<span class="studyType">{{ e.studyType | prepend: ', ' }}</span>{% endif %}</strong>{% if e.gpa %}<span class="gpa">{{ e.gpa | prepend: ' (' | append: ' GPA)' }}</span>{% endif %}</div> | ||
{% endif %} | ||
{% if e.courses %} | ||
<h5 class="courses-title">Courses</h5> | ||
<ul class="courses"> | ||
{% for course in e.courses %} | ||
<li>{{ course }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% if cv.interests %} | ||
<div id="interests" class="entry"> | ||
<header class="entry-header"> | ||
<h3 class="entry-title">Interests</h3> | ||
</header> | ||
|
||
<div class="entry-content"> | ||
{% for i in cv.interests %} | ||
<div class="taxonomy"> | ||
{% if i.name %} | ||
<h4 class="title">{{ i.name }}</h4> | ||
{% endif %} | ||
{% if i.keywords %} | ||
<span class="keywords">{{ i.keywords | array_to_sentence_string }}</span> | ||
{% endif %} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endif %} |
Oops, something went wrong.