├── _stores
├── aqua.html
├── delta.html
├── beta.html
├── epsilon.html
├── alpha.html
└── gamma.html
├── _cats
├── business.html
└── shoes.html
├── .gitignore
├── _includes
└── tour.html
├── _layouts
├── main.html
├── store.html
└── category.html
├── index.html
├── Gemfile
└── _config.yml
/_stores/aqua.html:
--------------------------------------------------------------------------------
1 | ---
2 | ---
3 |
--------------------------------------------------------------------------------
/_cats/business.html:
--------------------------------------------------------------------------------
1 | ---
2 | ---
3 |
--------------------------------------------------------------------------------
/_stores/delta.html:
--------------------------------------------------------------------------------
1 | ---
2 | ---
3 |
--------------------------------------------------------------------------------
/_stores/beta.html:
--------------------------------------------------------------------------------
1 | ---
2 | categories: Sport
3 | ---
4 |
--------------------------------------------------------------------------------
/_stores/epsilon.html:
--------------------------------------------------------------------------------
1 | ---
2 | categories: Shoes
3 | ---
4 |
--------------------------------------------------------------------------------
/_stores/alpha.html:
--------------------------------------------------------------------------------
1 | ---
2 | categories: [Shoes, Business]
3 | ---
4 |
--------------------------------------------------------------------------------
/_stores/gamma.html:
--------------------------------------------------------------------------------
1 | ---
2 | categories: [Shoes, Sport]
3 | ---
4 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | _site
2 | .sass-cache
3 | .jekyll-metadata
4 | Gemfile.lock
5 |
--------------------------------------------------------------------------------
/_cats/shoes.html:
--------------------------------------------------------------------------------
1 | ---
2 | ---
3 |
San Francisco has an amazing set of shoe stores
4 |
--------------------------------------------------------------------------------
/_includes/tour.html:
--------------------------------------------------------------------------------
1 | Tour:
2 |
3 | {% if page.previous %}
4 | Previous
5 | {% endif %}
6 |
7 | Next
8 |
--------------------------------------------------------------------------------
/_layouts/main.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Main Layout
5 |
8 |
9 |
10 | MAIN
11 | {{ content }}
12 |
13 |
14 |
--------------------------------------------------------------------------------
/_layouts/store.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: main
3 | ---
4 | {% include tour.html %}
5 |
6 | {{ page.title }}
7 |
8 | {{ content }}
9 |
10 | Categories:
11 |
12 | {% for cat in page.categories %}
13 | - {{ cat }}
14 | {% endfor %}
15 |
16 |
17 | Home
18 |
--------------------------------------------------------------------------------
/_layouts/category.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: main
3 | ---
4 |
5 | {{ page.title }}
6 |
7 | {{ content }}
8 |
9 |
10 | {% for store in site.stores %}
11 | {% if store.categories contains page.title %}
12 | - {{ store.id }} {{ store.categories }}
13 | {% endif %}
14 | {% endfor %}
15 |
16 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: main
3 | ---
4 |
5 | Index
6 |
7 | {{ site.categories | inspect }}
8 |
9 |
10 |
11 |
12 | Stores
13 |
14 |
15 | {% assign last_char = '' %}
16 |
17 | {% for store in site.stores %}
18 |
19 | {% assign curr_char = store.title | slice: 0 %}
20 |
21 | {% if last_char != curr_char %}
22 | {{ curr_char }}
23 | {% endif %}
24 |
25 | {% assign last_char = curr_char %}
26 |
27 | -
28 | {{ store.title }}
29 |
30 | {% endfor %}
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | Categories
39 |
40 |
41 | {% for cat in site.cats %}
42 |
43 | -
44 | {{ cat.title }}
45 |
46 |
47 | {% endfor %}
48 |
49 |
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source "https://rubygems.org"
2 |
3 | # Hello! This is where you manage which Jekyll version is used to run.
4 | # When you want to use a different version, change it below, save the
5 | # file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
6 | #
7 | # bundle exec jekyll serve
8 | #
9 | # This will help ensure the proper Jekyll version is running.
10 | # Happy Jekylling!
11 | gem "jekyll", "3.5.1"
12 |
13 | # This is the default theme for new Jekyll sites. You may change this to anything you like.
14 | gem "minima", "~> 2.0"
15 |
16 | # If you want to use GitHub Pages, remove the "gem "jekyll"" above and
17 | # uncomment the line below. To upgrade, run `bundle update github-pages`.
18 | # gem "github-pages", group: :jekyll_plugins
19 |
20 | # If you have any plugins, put them here!
21 | group :jekyll_plugins do
22 | gem "jekyll-feed", "~> 0.6"
23 | end
24 |
25 | # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
26 | gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
27 |
28 |
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | # Welcome to Jekyll!
2 | #
3 | # This config file is meant for settings that affect your whole blog, values
4 | # which you are expected to set up once and rarely edit after that. If you find
5 | # yourself editing this file very often, consider using Jekyll's data files
6 | # feature for the data you need to update frequently.
7 | #
8 | # For technical reasons, this file is *NOT* reloaded automatically when you use
9 | # 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10 |
11 | # Site settings
12 | # These are used to personalize your new site. If you look in the HTML files,
13 | # you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
14 | # You can create any custom variable you would like, and they will be accessible
15 | # in the templates via {{ site.myvariable }}.
16 | title: Your awesome title
17 | email: your-email@example.com
18 | description: > # this means to ignore newlines until "baseurl:"
19 | Write an awesome description for your new site here. You can edit this
20 | line in _config.yml. It will appear in your document head meta (for
21 | Google search results) and in your feed.xml site description.
22 | baseurl: "" # the subpath of your site, e.g. /blog
23 | url: "" # the base hostname & protocol for your site, e.g. http://example.com
24 | twitter_username: jekyllrb
25 | github_username: jekyll
26 |
27 | collections:
28 | stores:
29 | foo: bar
30 | output: true
31 | cats:
32 | output: true
33 |
34 | defaults:
35 | - scope:
36 | type: stores
37 | values:
38 | layout: store
39 | - scope:
40 | type: cats
41 | values:
42 | layout: category
43 |
44 | # Build settings
45 | markdown: kramdown
46 |
47 | # Exclude from processing.
48 | # The following items will not be processed, by default. Create a custom list
49 | # to override the default setting.
50 | # exclude:
51 | # - Gemfile
52 | # - Gemfile.lock
53 | # - node_modules
54 | # - vendor/bundle/
55 | # - vendor/cache/
56 | # - vendor/gems/
57 | # - vendor/ruby/
58 |
--------------------------------------------------------------------------------