drink_up_doctor 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +32 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +74 -0
- data/Rakefile +11 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/bootstrap-boilerplate/.gitignore +8 -0
- data/bootstrap-boilerplate/404.html +25 -0
- data/bootstrap-boilerplate/README.md.tt +88 -0
- data/bootstrap-boilerplate/_includes/footer.html +18 -0
- data/bootstrap-boilerplate/_includes/google_analytics.html +10 -0
- data/bootstrap-boilerplate/_includes/head.html +11 -0
- data/bootstrap-boilerplate/_includes/header.html +27 -0
- data/bootstrap-boilerplate/_includes/index_item.html +5 -0
- data/bootstrap-boilerplate/_includes/page_js.html +4 -0
- data/bootstrap-boilerplate/_layouts/category_index.html +12 -0
- data/bootstrap-boilerplate/_layouts/default.html +22 -0
- data/bootstrap-boilerplate/_layouts/page.html +13 -0
- data/bootstrap-boilerplate/_layouts/post.html +13 -0
- data/bootstrap-boilerplate/_layouts/tag_index.html +14 -0
- data/bootstrap-boilerplate/_plugins/category_index.rb +42 -0
- data/bootstrap-boilerplate/_plugins/slug_sort.rb +13 -0
- data/bootstrap-boilerplate/_plugins/tag_index.rb +41 -0
- data/bootstrap-boilerplate/_posts/2015-10-18-post-four.md +17 -0
- data/bootstrap-boilerplate/_posts/2015-10-18-post-one.md +12 -0
- data/bootstrap-boilerplate/_posts/2015-10-18-post-three.md +20 -0
- data/bootstrap-boilerplate/_posts/2015-10-18-post-two.md +16 -0
- data/bootstrap-boilerplate/_posts/2015-10-18-welcome.md +8 -0
- data/bootstrap-boilerplate/_sass/_bootstrap-compass.scss +9 -0
- data/bootstrap-boilerplate/_sass/_bootstrap-mincer.scss +19 -0
- data/bootstrap-boilerplate/_sass/_bootstrap-sprockets.scss +9 -0
- data/bootstrap-boilerplate/_sass/_bootstrap.scss +56 -0
- data/bootstrap-boilerplate/_sass/_my_variables.scss +874 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_alerts.scss +73 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_badges.scss +68 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_breadcrumbs.scss +26 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_button-groups.scss +244 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_buttons.scss +168 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_carousel.scss +269 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_close.scss +36 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_code.scss +69 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_component-animations.scss +37 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_dropdowns.scss +216 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_forms.scss +611 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_glyphicons.scss +307 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_grid.scss +84 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_input-groups.scss +167 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_jumbotron.scss +52 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_labels.scss +66 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_list-group.scss +130 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_media.scss +66 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_mixins.scss +40 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_modals.scss +150 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_navbar.scss +662 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_navs.scss +242 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_normalize.scss +424 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_pager.scss +54 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_pagination.scss +89 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_panels.scss +271 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_popovers.scss +131 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_print.scss +101 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_progress-bars.scss +87 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_responsive-embed.scss +35 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_responsive-utilities.scss +179 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_scaffolding.scss +161 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_tables.scss +234 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_theme.scss +291 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_thumbnails.scss +38 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_tooltip.scss +101 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_type.scss +298 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_utilities.scss +55 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_variables.scss +872 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_wells.scss +29 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_alerts.scss +14 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_background-variant.scss +12 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_border-radius.scss +18 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_buttons.scss +68 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_center-block.scss +7 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_clearfix.scss +22 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_forms.scss +88 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_gradients.scss +58 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_grid-framework.scss +81 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_grid.scss +122 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_hide-text.scss +21 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_image.scss +33 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_labels.scss +12 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_list-group.scss +32 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_nav-divider.scss +10 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_opacity.scss +8 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_pagination.scss +24 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_panels.scss +24 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_progress-bar.scss +10 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_reset-filter.scss +8 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_reset-text.scss +18 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_resize.scss +6 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_size.scss +10 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_tab-focus.scss +9 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_table-row.scss +28 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_text-emphasis.scss +12 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_text-overflow.scss +8 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- data/bootstrap-boilerplate/_sass/main.scss +20 -0
- data/bootstrap-boilerplate/about/index.md +24 -0
- data/bootstrap-boilerplate/apple-touch-icon.png +0 -0
- data/bootstrap-boilerplate/browserconfig.xml +12 -0
- data/bootstrap-boilerplate/crossdomain.xml +14 -0
- data/bootstrap-boilerplate/favicon.ico +0 -0
- data/bootstrap-boilerplate/fonts/glyphicons-halflings-regular.eot +0 -0
- data/bootstrap-boilerplate/fonts/glyphicons-halflings-regular.svg +229 -0
- data/bootstrap-boilerplate/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/bootstrap-boilerplate/fonts/glyphicons-halflings-regular.woff +0 -0
- data/bootstrap-boilerplate/humans.txt.tt +18 -0
- data/bootstrap-boilerplate/index.html +18 -0
- data/bootstrap-boilerplate/js/main.js +1 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/affix.js +162 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/alert.js +94 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/button.js +120 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/carousel.js +237 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/collapse.js +211 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/dropdown.js +165 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/modal.js +337 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/popover.js +108 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/scrollspy.js +172 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/tab.js +155 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/tooltip.js +514 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/transition.js +59 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap-sprockets.js +12 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap.js +2363 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap.min.js +7 -0
- data/bootstrap-boilerplate/js/vendor/jquery-1.11.2.js +10346 -0
- data/bootstrap-boilerplate/js/vendor/jquery-1.11.2.min.js +4 -0
- data/bootstrap-boilerplate/js/vendor/modernizr-2.8.3-respond-1.4.2.min.js +11 -0
- data/bootstrap-boilerplate/js/vendor/npm.js +13 -0
- data/bootstrap-boilerplate/robots.txt +5 -0
- data/bootstrap-boilerplate/tile-wide.png +0 -0
- data/bootstrap-boilerplate/tile.png +0 -0
- data/drink_up_doctor.gemspec +29 -0
- data/exe/drink_up_doctor +4 -0
- data/lib/drink_up_doctor/new_site.rb +178 -0
- data/lib/drink_up_doctor/new_twbs_site.rb +124 -0
- data/lib/drink_up_doctor/version.rb +3 -0
- data/lib/drink_up_doctor.rb +12 -0
- data/templates/Gemfile +11 -0
- data/templates/README.md.erb +81 -0
- data/templates/bower.json.erb +17 -0
- data/templates/gulpfile.js.erb +84 -0
- data/templates/main.scss +46 -0
- data/templates/package.json.erb +20 -0
- data/templates/setup.sh +2 -0
- data/templates/site_gitignore +7 -0
- metadata +285 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5f5002a9109f1b3af1f501541829f2830ca21f70
|
4
|
+
data.tar.gz: fcbbe1e62f766c61d3adf9ec52ac31ecdc524145
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: aaf3bf23c0461b86f96f6107ef50c77ed090a8cb66977ce956f2f05e740813557c94f6e8fe630ed8bb879e3df2c3ee1b97fd8fa506fb11215ed76eff1c7ddf00
|
7
|
+
data.tar.gz: 56e7a9f065cf4ef88aee4e4067997d3a60386abaf20bf7091a47f5ccaa0aa7fbbe3184d811b29043a4d772883b8d5d362e51d951ad39e5c9e304d8f8f4a0a536
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect
|
4
|
+
all people who contribute through reporting issues, posting feature
|
5
|
+
requests, updating documentation, submitting pull requests or patches,
|
6
|
+
and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a
|
9
|
+
harassment-free experience for everyone, regardless of level of
|
10
|
+
experience, gender, gender identity and expression, sexual
|
11
|
+
orientation, disability, personal appearance, body size, race,
|
12
|
+
ethnicity, age, or religion.
|
13
|
+
|
14
|
+
Examples of unacceptable behavior by participants include the use of
|
15
|
+
sexual language or imagery, derogatory comments or personal attacks,
|
16
|
+
trolling, public or private harassment, insults, or other
|
17
|
+
unprofessional conduct.
|
18
|
+
|
19
|
+
Project maintainers have the right and responsibility to remove, edit,
|
20
|
+
or reject comments, commits, code, wiki edits, issues, and other
|
21
|
+
contributions that are not aligned to this Code of Conduct. Project
|
22
|
+
maintainers who do not follow the Code of Conduct may be removed from
|
23
|
+
the project team.
|
24
|
+
|
25
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior
|
26
|
+
may be reported by opening an issue or contacting one or more of the
|
27
|
+
project maintainers.
|
28
|
+
|
29
|
+
This Code of Conduct is adapted from the
|
30
|
+
[Contributor Covenant](http://contributor-covenant.org), version
|
31
|
+
1.0.0, available at
|
32
|
+
[http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Tamara Temple
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# DrinkUpDoctor
|
2
|
+
|
3
|
+
## Dependencies
|
4
|
+
|
5
|
+
`DrinkUpDoctor` depends on [Gulp], [Bower], [Jekyll], and [Compass]. You'll need to have both [Ruby] and [Node.js] installed and running.
|
6
|
+
|
7
|
+
### Installing Global Dependencies
|
8
|
+
|
9
|
+
Installations should be simple:
|
10
|
+
|
11
|
+
$ gem install jekyll
|
12
|
+
$ gem install compass
|
13
|
+
$ npm install -g bower
|
14
|
+
$ npm install -g gulp
|
15
|
+
|
16
|
+
If you have problems installing any of these, seek help in the associated IRC channels on `irc.freenode.net`.
|
17
|
+
|
18
|
+
## Installation
|
19
|
+
|
20
|
+
Installing the command should be as simple as
|
21
|
+
|
22
|
+
$ gem install drink_up_doctor
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
See the help text:
|
27
|
+
|
28
|
+
$ drink_up_doctor new help
|
29
|
+
|
30
|
+
Creating a new site:
|
31
|
+
|
32
|
+
$ drink_up_doctor new NAME [OPTIONS]
|
33
|
+
|
34
|
+
The above creates a standard Jekyll site, with a few
|
35
|
+
modifications. The new site's README file describes the changes.
|
36
|
+
|
37
|
+
After creating a new site, you need to install the components:
|
38
|
+
|
39
|
+
$ npm install
|
40
|
+
$ bower install
|
41
|
+
|
42
|
+
After all the installation is done, you can start the gulp server to
|
43
|
+
build the various pieces and keep a browser going with site changes:
|
44
|
+
|
45
|
+
$ gulp serve
|
46
|
+
|
47
|
+
The new site's README file has more details on working with your new
|
48
|
+
site with Gulp. Following the instructions at the [Jekyll] site
|
49
|
+
should speed you on the rest of your way.
|
50
|
+
|
51
|
+
## Acknowledgements
|
52
|
+
|
53
|
+
Billy Overton's blog post on
|
54
|
+
[Setting up Jekyll, Gulp, and Automated Git Deployment](http://billyoverton.com/2015/07/27/Jekyll-Gulp-and-Automated-Deployments.html)
|
55
|
+
provided all the inspiration for this tiny bit of automation, which
|
56
|
+
mainly for my own nefarious purposes.
|
57
|
+
|
58
|
+
## Contributing
|
59
|
+
|
60
|
+
Bug reports and pull requests are welcome on GitHub at
|
61
|
+
https://github.com/tamouse/drink_up_doctor. This project is
|
62
|
+
intended to be a safe, welcoming space for collaboration, and
|
63
|
+
contributors are expected to adhere to the
|
64
|
+
[Contributor Covenant](contributor-covenant.org) code of conduct.
|
65
|
+
|
66
|
+
## License
|
67
|
+
|
68
|
+
The gem is available as open source under the terms of the
|
69
|
+
[MIT License](http://opensource.org/licenses/MIT).
|
70
|
+
|
71
|
+
[Jekyll]: http://jekyllrb.com/ "Jekyll"
|
72
|
+
[Gulp]: http://gulpjs.com/ "Gulp"
|
73
|
+
[Bower]: http://bower.io/ "Bower"
|
74
|
+
[Compass]: http://compass-style.org/ "Compass"
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "drink_up_doctor"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
require "pry"
|
11
|
+
Pry.start
|
12
|
+
|
13
|
+
# require "irb"
|
14
|
+
# IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
title: Page Not Found
|
4
|
+
---
|
5
|
+
|
6
|
+
<p>Sorry, but the page you were trying to view does not exist.</p>
|
7
|
+
|
8
|
+
<a class="btn btn-primary btn-lrg" href="{{site.baseurl}}/">Back Home</a>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div id="extra-crap-for-ie" style="display: none; visibility: hidden">
|
12
|
+
<!--
|
13
|
+
IE browser needs a lot of extra crud to actually display the page,
|
14
|
+
so here we go.
|
15
|
+
|
16
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.<br><br>
|
17
|
+
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.<br><br>
|
18
|
+
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.<br><br>
|
19
|
+
Pellentesque dapibus suscipit ligula. Donec posuere augue in quam. Etiam vel tortor sodales tellus ultricies commodo. Suspendisse potenti. Aenean in sem ac leo mollis blandit. Donec neque quam, dignissim in, mollis nec, sagittis eu, wisi. Phasellus lacus. Etiam laoreet quam sed arcu. Phasellus at dui in ligula mollis ultricies. Integer placerat tristique nisl. Praesent augue. Fusce commodo. Vestibulum convallis, lorem a tempus semper, dui dui euismod elit, vitae placerat urna tortor vitae lacus. Nullam libero mauris, consequat quis, varius et, dictum id, arcu. Mauris mollis tincidunt felis. Aliquam feugiat tellus ut neque. Nulla facilisis, risus a rhoncus fermentum, tellus tellus lacinia purus, et dictum nunc justo sit amet elit.<br><br>
|
20
|
+
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.<br><br>
|
21
|
+
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.<br><br>
|
22
|
+
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.<br><br>
|
23
|
+
|
24
|
+
-->
|
25
|
+
</div>
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# <%= name %>
|
2
|
+
|
3
|
+
New Twitter Bootstrap Jekyll site with Gulp generated by
|
4
|
+
[<%= app_name %>](https://github.com/tamouse/drink_up_doctor).
|
5
|
+
|
6
|
+
## Completing the Installation
|
7
|
+
|
8
|
+
After creating the new site, run the following command:
|
9
|
+
|
10
|
+
``` bash
|
11
|
+
./.setup.sh
|
12
|
+
```
|
13
|
+
|
14
|
+
This will install all the npm modules, bower components, and bundle
|
15
|
+
install the ruby gems.
|
16
|
+
|
17
|
+
## Working on the Site
|
18
|
+
|
19
|
+
After the installation is complete, you can work on the site any time
|
20
|
+
with the command:
|
21
|
+
|
22
|
+
``` bash
|
23
|
+
gulp serve
|
24
|
+
```
|
25
|
+
|
26
|
+
This will build the site, watch the appropriate folders for changes,
|
27
|
+
and display the built site in a browser. As you make changes to the
|
28
|
+
site files, add posts, pages, etc, the site will automatically be
|
29
|
+
updated and redisplayed in the browser.
|
30
|
+
|
31
|
+
You should keep track of the gulp process, though, in case there is a
|
32
|
+
error during the Compass or Jekyll passes that cause the gulp process
|
33
|
+
to terminate. Fix them and restart gulp as above.
|
34
|
+
|
35
|
+
You can see all the tasks for gulp with the `help` command:
|
36
|
+
|
37
|
+
``` bash
|
38
|
+
gulp help
|
39
|
+
```
|
40
|
+
## Differences from standard `jekyll new`
|
41
|
+
|
42
|
+
There is no `css/` folder; all CSS work should be done with SASS/SCSS
|
43
|
+
in the `_sass/` folder, which is watched by the Gulp 'css' task and
|
44
|
+
compiled in the `assets/css/` folder.
|
45
|
+
|
46
|
+
There is a `main.scss` that is essentially the same as the standard
|
47
|
+
Jekyll file of the same name, but it has a few extra items described
|
48
|
+
below.
|
49
|
+
|
50
|
+
The path for the site style sheet is changed in `_includes/head.html`
|
51
|
+
file from `/css/main.css` to `/assets/css/main.css`.
|
52
|
+
|
53
|
+
### Bootstrap
|
54
|
+
|
55
|
+
The `_sass/main.scss` file imports `_sass/_my_variables.scss` first,
|
56
|
+
where you can override any of the bootstrap variables and create your
|
57
|
+
own theme, if you like. On generation, the file is an exact copy of
|
58
|
+
the `_sass/bootstrap/_variables.scss` file without the `!default`
|
59
|
+
settings on the variables.
|
60
|
+
|
61
|
+
Local scss settings can be appended to `_sass/main.scss`.
|
62
|
+
|
63
|
+
### FontAwesome
|
64
|
+
|
65
|
+
The `font-awesome.scss` package has been added to the components and
|
66
|
+
imported by `main.scss`. This lets you use `<i class="fa
|
67
|
+
fa-github"></i>` and the like. The `svg` entries in the various
|
68
|
+
standard Jekyll files `header.html` and `footer.html` have been
|
69
|
+
replaced with these icons.
|
70
|
+
|
71
|
+
### baseurl
|
72
|
+
|
73
|
+
The `baseurl` is not set in the standard `_config.yml`; instead it is
|
74
|
+
in it's own configuration file `_baseurl.yml`. Jekyll's `build`
|
75
|
+
command lets you have multiple configuration files given with the
|
76
|
+
`--config` option.
|
77
|
+
|
78
|
+
## Distributing the Site
|
79
|
+
|
80
|
+
Building your site for distribution, i.e., utilizing the baseurl, is
|
81
|
+
performed by the command:
|
82
|
+
|
83
|
+
``` bash
|
84
|
+
gulp dist
|
85
|
+
```
|
86
|
+
|
87
|
+
This will put the distribution into the `_dist/` folder in the root of
|
88
|
+
the site.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<footer class="navbar navbar-default navbar-fixed-bottom" role="navigation">
|
2
|
+
<div class="container-fluid">
|
3
|
+
<div class="navbar-header">
|
4
|
+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-footer" aria-expanded="false" aria-controls="navbar">
|
5
|
+
<span class="sr-only">Toggle navigation</span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
</button>
|
10
|
+
<a class="navbar-brand" href="{{site.baseurl}}/">© {{site.time | date: "%Y"}} {% if site.author %}{{site.author}}{% else %}Site Author{% endif %}</a>
|
11
|
+
</div>
|
12
|
+
<div id="navbar" class="navbar-collapse collapse">
|
13
|
+
<ul class="nav navbar-nav navbar-right">
|
14
|
+
<li><a href="{{ site.baseurl}}/humans.txt">Colophon</a></li>
|
15
|
+
</ul>
|
16
|
+
</div><!--/.navbar-collapse -->
|
17
|
+
</div>
|
18
|
+
</footer>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{% if site.google_analytics %}
|
2
|
+
<script>
|
3
|
+
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
|
4
|
+
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
|
5
|
+
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
|
6
|
+
e.src='//www.google-analytics.com/analytics.js';
|
7
|
+
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
|
8
|
+
ga('create','{{ site.google_analytics }}','auto');ga('send','pageview');
|
9
|
+
</script>
|
10
|
+
{% endif %}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
4
|
+
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
|
5
|
+
<meta name="description" content="{% if page.excerpt %}{{page.excerpt}}{% else %}{{site.description}}{% endif %}">
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7
|
+
<link rel="apple-touch-icon" href="apple-touch-icon.png">
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/main.css">
|
10
|
+
<script src="{{site.baseurl}}/js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
|
11
|
+
</head>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
2
|
+
<div class="container-fluid">
|
3
|
+
<div class="navbar-header">
|
4
|
+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
5
|
+
<span class="sr-only">Toggle navigation</span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
</button>
|
10
|
+
<a class="navbar-brand" href="{{ site.baseurl}}/">{% if site.title %}{{site.title}}{% else %}New Site{% endif %}</a>
|
11
|
+
</div>
|
12
|
+
<div id="navbar" class="navbar-collapse collapse">
|
13
|
+
<ul class="nav navbar-nav navbar-right">
|
14
|
+
{% for page in site.pages %}{% if page.navbar %}
|
15
|
+
<li><a href="{{ page.url | prepend: site.baseurl}}">{{page.title}}</a></li>
|
16
|
+
{% endif %}{% endfor %}
|
17
|
+
<li class="dropdown">
|
18
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Categories<span class="caret"></span></a>
|
19
|
+
<ul class="dropdown-menu" role="menu">
|
20
|
+
{% capture categories %}{% for cat in site.categories %} {{ cat[0] }} {% endfor %}{% endcapture %}{% assign sorted_categories = categories | split:' ' | sort %}{% for cat in sorted_categories %}
|
21
|
+
<li><a href="{{site.baseurl}}/categories/{{cat}}/index.html">{{cat}}</a></li>{% endfor %}
|
22
|
+
</ul>
|
23
|
+
</li><!-- li.dropdown -->
|
24
|
+
</ul>
|
25
|
+
</div><!--/.navbar-collapse -->
|
26
|
+
</div>
|
27
|
+
</nav>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
2
|
+
<script>window.jQuery || document.write('<\script src="{{site.baseurl}}/js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
|
3
|
+
<script src="{{site.baseurl}}/js/vendor/bootstrap.min.js"></script>
|
4
|
+
<script src="{{site.basurl}}/js/main.js"></script>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div class="container">
|
5
|
+
<div class="page-header">
|
6
|
+
<h1>{{page.category}}</h1>
|
7
|
+
</div>
|
8
|
+
{% assign posts = site.categories[page.category] %}
|
9
|
+
{% for post in posts %}
|
10
|
+
{% include index_item.html %}
|
11
|
+
{% endfor %}
|
12
|
+
</div>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
|
3
|
+
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
|
4
|
+
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
|
5
|
+
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
|
6
|
+
{% include head.html %}
|
7
|
+
<body>
|
8
|
+
<!--[if lt IE 8]>
|
9
|
+
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
10
|
+
<![endif]-->
|
11
|
+
|
12
|
+
{% include header.html %}
|
13
|
+
|
14
|
+
<main class="container">
|
15
|
+
{{ content }}
|
16
|
+
</main>
|
17
|
+
|
18
|
+
{% include footer.html %}
|
19
|
+
{% include page_js.html %}
|
20
|
+
{% include google_analytics.html %}
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="container">
|
6
|
+
<div class="page-header">
|
7
|
+
<h1>{{ page.tag }}</h1>
|
8
|
+
</div>
|
9
|
+
{% assign posts = site.tags[page.tag] %}
|
10
|
+
{% for post in posts %}
|
11
|
+
{% include index_item.html %}
|
12
|
+
{% endfor %}
|
13
|
+
</ul>
|
14
|
+
</div>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Jekyll
|
2
|
+
|
3
|
+
class CategoryPage < Page
|
4
|
+
def initialize(site, base, dir, category)
|
5
|
+
@site = site
|
6
|
+
@base = base
|
7
|
+
@dir = dir
|
8
|
+
@name = 'index.html'
|
9
|
+
|
10
|
+
self.process(@name)
|
11
|
+
self.read_yaml(File.join(base, '_layouts'), 'category_index.html')
|
12
|
+
self.data['category'] = category
|
13
|
+
|
14
|
+
category_title_prefix = site.config['category_title_prefix'] || 'Category: '
|
15
|
+
self.data['title'] = "#{category_title_prefix}#{category}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class CategoryPageGenerator < Generator
|
20
|
+
safe true
|
21
|
+
|
22
|
+
def generate(site)
|
23
|
+
if site.layouts.key? 'category_index'
|
24
|
+
dir = site.config['category_dir'] || 'categories'
|
25
|
+
site.categories.keys.each do |category|
|
26
|
+
category = category.to_s
|
27
|
+
site.pages << CategoryPage.new(site, site.source, File.join(dir, category), category)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
class CategoryList < Liquid::Tag
|
34
|
+
def render(context)
|
35
|
+
context.registers[:site].categories.keys.sort.tap{|t| STDERR.puts "category_list: #{t.inspect}"}
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
Liquid::Template.register_tag('category_list', Jekyll::CategoryList)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# Sort the site posts by slug instead of date
|
2
|
+
module Jekyll
|
3
|
+
module SlugSort
|
4
|
+
|
5
|
+
def slug_sort(posts)
|
6
|
+
slug_sorted_posts = posts.sort{|a,b| a.slug <=> b.slug }
|
7
|
+
slug_sorted_posts
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
Liquid::Template.register_filter(Jekyll::SlugSort)
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Jekyll
|
2
|
+
|
3
|
+
class TagPage < Page
|
4
|
+
def initialize(site, base, dir, tag)
|
5
|
+
@site = site
|
6
|
+
@base = base
|
7
|
+
@dir = dir
|
8
|
+
@name = 'index.html'
|
9
|
+
|
10
|
+
self.process(@name)
|
11
|
+
self.read_yaml(File.join(base, '_layouts'), 'tag_index.html')
|
12
|
+
self.data['tag'] = tag
|
13
|
+
|
14
|
+
tag_title_prefix = site.config['tag_title_prefix'] || 'Tag: '
|
15
|
+
self.data['title'] = "#{tag_title_prefix}#{tag}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class TagPageGenerator < Generator
|
20
|
+
safe true
|
21
|
+
|
22
|
+
def generate(site)
|
23
|
+
if site.layouts.key? 'tag_index'
|
24
|
+
dir = site.config['tag_dir'] || 'tags'
|
25
|
+
site.tags.keys.each do |tag|
|
26
|
+
tag = tag.to_s
|
27
|
+
site.pages << TagPage.new(site, site.source, File.join(dir, tag), tag)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
class TagList < Liquid::Tag
|
34
|
+
def render(context)
|
35
|
+
context.registers[:site].tags.keys.sort
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
Liquid::Template.register_tag("tag_list", Jekyll::TagList)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
layout: post
|
3
|
+
title: Post Four
|
4
|
+
date: 2015-10-18 18:00
|
5
|
+
categories:
|
6
|
+
- ipsum
|
7
|
+
---
|
8
|
+
|
9
|
+
Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis odio. Nunc porta vulputate tellus. Nunc rutrum turpis sed pede. Sed bibendum. Aliquam posuere. Nunc aliquet, augue nec adipiscing interdum, lacus tellus malesuada massa, quis varius mi purus non odio. Pellentesque condimentum, magna ut suscipit hendrerit, ipsum augue ornare nulla, non luctus diam neque sit amet urna. Curabitur vulputate vestibulum lorem. Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia eros. Sed id ligula quis est convallis tempor. Curabitur lacinia pulvinar nibh. Nam a sapien.
|
10
|
+
|
11
|
+
Pellentesque dapibus suscipit ligula. Donec posuere augue in quam. Etiam vel tortor sodales tellus ultricies commodo. Suspendisse potenti. Aenean in sem ac leo mollis blandit. Donec neque quam, dignissim in, mollis nec, sagittis eu, wisi. Phasellus lacus. Etiam laoreet quam sed arcu. Phasellus at dui in ligula mollis ultricies. Integer placerat tristique nisl. Praesent augue. Fusce commodo. Vestibulum convallis, lorem a tempus semper, dui dui euismod elit, vitae placerat urna tortor vitae lacus. Nullam libero mauris, consequat quis, varius et, dictum id, arcu. Mauris mollis tincidunt felis. Aliquam feugiat tellus ut neque. Nulla facilisis, risus a rhoncus fermentum, tellus tellus lacinia purus, et dictum nunc justo sit amet elit.
|
12
|
+
|
13
|
+
Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis odio. Nunc porta vulputate tellus. Nunc rutrum turpis sed pede. Sed bibendum. Aliquam posuere. Nunc aliquet, augue nec adipiscing interdum, lacus tellus malesuada massa, quis varius mi purus non odio. Pellentesque condimentum, magna ut suscipit hendrerit, ipsum augue ornare nulla, non luctus diam neque sit amet urna. Curabitur vulputate vestibulum lorem. Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia eros. Sed id ligula quis est convallis tempor. Curabitur lacinia pulvinar nibh. Nam a sapien.
|
14
|
+
|
15
|
+
Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis odio. Nunc porta vulputate tellus. Nunc rutrum turpis sed pede. Sed bibendum. Aliquam posuere. Nunc aliquet, augue nec adipiscing interdum, lacus tellus malesuada massa, quis varius mi purus non odio. Pellentesque condimentum, magna ut suscipit hendrerit, ipsum augue ornare nulla, non luctus diam neque sit amet urna. Curabitur vulputate vestibulum lorem. Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia eros. Sed id ligula quis est convallis tempor. Curabitur lacinia pulvinar nibh. Nam a sapien.
|
16
|
+
|
17
|
+
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.
|
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
layout: post
|
3
|
+
title: Post One
|
4
|
+
date: 2015-10-18 09:00
|
5
|
+
categories: [lorem]
|
6
|
+
---
|
7
|
+
|
8
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.
|
9
|
+
|
10
|
+
Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis odio. Nunc porta vulputate tellus. Nunc rutrum turpis sed pede. Sed bibendum. Aliquam posuere. Nunc aliquet, augue nec adipiscing interdum, lacus tellus malesuada massa, quis varius mi purus non odio. Pellentesque condimentum, magna ut suscipit hendrerit, ipsum augue ornare nulla, non luctus diam neque sit amet urna. Curabitur vulputate vestibulum lorem. Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia eros. Sed id ligula quis est convallis tempor. Curabitur lacinia pulvinar nibh. Nam a sapien.
|
11
|
+
|
12
|
+
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.
|