Skip to content

Commit 5f5c8d2

Browse files
committed
project collection
1 parent 2fa6530 commit 5f5c8d2

File tree

18 files changed

+162
-49
lines changed

18 files changed

+162
-49
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
I"�{"source"=>"/home/bobby/Documents/websites/site", "destination"=>"/home/bobby/Documents/websites/site/_site", "collections_dir"=>"collections", "cache_dir"=>".jekyll-cache", "plugins_dir"=>"_plugins", "layouts_dir"=>"_layouts", "data_dir"=>"_data", "includes_dir"=>"_includes", "collections"=>{"posts"=>{"output"=>true, "permalink"=>"/:categories/:year/:month/:day/:title:output_ext"}}, "safe"=>false, "include"=>[".htaccess"], "exclude"=>[".sass-cache", ".jekyll-cache", "gemfiles", "Gemfile", "Gemfile.lock", "node_modules", "vendor/bundle/", "vendor/cache/", "vendor/gems/", "vendor/ruby/"], "keep_files"=>[".git", ".svn"], "encoding"=>"utf-8", "markdown_ext"=>"markdown,mkdown,mkdn,mkd,md", "strict_front_matter"=>false, "show_drafts"=>nil, "limit_posts"=>0, "future"=>false, "unpublished"=>false, "whitelist"=>[], "plugins"=>["jekyll-feed", "jekyll-seo-tag"], "markdown"=>"kramdown", "highlighter"=>"rouge", "lsi"=>false, "excerpt_separator"=>"\n\n", "incremental"=>false, "detach"=>false, "port"=>"4000", "host"=>"127.0.0.1", "baseurl"=>nil, "show_dir_listing"=>false, "permalink"=>"date", "paginate_path"=>"/page:num/", "timezone"=>nil, "quiet"=>false, "verbose"=>false, "defaults"=>[], "liquid"=>{"error_mode"=>"warn", "strict_filters"=>false, "strict_variables"=>false}, "kramdown"=>{"auto_ids"=>true, "toc_levels"=>[1, 2, 3, 4, 5, 6], "entity_output"=>"as_char", "smart_quotes"=>"lsquo,rsquo,ldquo,rdquo", "input"=>"GFM", "hard_wrap"=>false, "guess_lang"=>true, "footnote_nr"=>1, "show_warnings"=>false}, "title"=>"Unusual Vehicles", "author"=>"Raul G.", "email"=>"memoryofatrufestival@gmail.com", "description"=>"Personal blog about model aircraft and small robots\n", "paginate"=>10, "github_username"=>"RCmags", "youtube_username"=>"XXXmags", "youtube_username_display"=>"RCmags", "show_excerpts"=>false, "minima"=>{"date_format"=>"%-d %b %Y"}, "livereload_port"=>35729, "serving"=>true, "watch"=>true, "url"=>"http://localhost:4000"}:ET
1+
I"2{"source"=>"/home/bobby/Documents/websites/site", "destination"=>"/home/bobby/Documents/websites/site/_site", "collections_dir"=>"collections", "cache_dir"=>".jekyll-cache", "plugins_dir"=>"_plugins", "layouts_dir"=>"_layouts", "data_dir"=>"_data", "includes_dir"=>"_includes", "collections"=>{"posts"=>{"output"=>true, "permalink"=>"/:categories/:year/:month/:day/:title:output_ext"}, "projects"=>{"output"=>true}}, "safe"=>false, "include"=>[".htaccess"], "exclude"=>[".sass-cache", ".jekyll-cache", "gemfiles", "Gemfile", "Gemfile.lock", "node_modules", "vendor/bundle/", "vendor/cache/", "vendor/gems/", "vendor/ruby/"], "keep_files"=>[".git", ".svn"], "encoding"=>"utf-8", "markdown_ext"=>"markdown,mkdown,mkdn,mkd,md", "strict_front_matter"=>false, "show_drafts"=>nil, "limit_posts"=>0, "future"=>false, "unpublished"=>false, "whitelist"=>[], "plugins"=>["jekyll-feed", "jekyll-seo-tag"], "markdown"=>"kramdown", "highlighter"=>"rouge", "lsi"=>false, "excerpt_separator"=>"\n\n", "incremental"=>false, "detach"=>false, "port"=>"4000", "host"=>"127.0.0.1", "baseurl"=>nil, "show_dir_listing"=>false, "permalink"=>"date", "paginate_path"=>"/page:num/", "timezone"=>nil, "quiet"=>false, "verbose"=>false, "defaults"=>[], "liquid"=>{"error_mode"=>"warn", "strict_filters"=>false, "strict_variables"=>false}, "kramdown"=>{"auto_ids"=>true, "toc_levels"=>[1, 2, 3, 4, 5, 6], "entity_output"=>"as_char", "smart_quotes"=>"lsquo,rsquo,ldquo,rdquo", "input"=>"GFM", "hard_wrap"=>false, "guess_lang"=>true, "footnote_nr"=>1, "show_warnings"=>false, "syntax_highlighter"=>"rouge", "syntax_highlighter_opts"=>{:default_lang=>"plaintext", :guess_lang=>true}, "coderay"=>{}}, "title"=>"Unusual Vehicles", "author"=>"Raul G.", "email"=>"memoryofatrufestival@gmail.com", "description"=>"Personal blog about model aircraft and small robots\n", "paginate"=>8, "github_username"=>"RCmags", "youtube_username"=>"XXXmags", "youtube_username_display"=>"RCmags", "show_excerpts"=>false, "minima"=>{"date_format"=>"%-d %b %Y"}, "livereload_port"=>35729, "serving"=>true, "watch"=>true, "url"=>"http://localhost:4000"}:ET
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
I"
2-
:EF
2+
:ET

_config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ description: > # this means to ignore newlines until "twitter_username:"
88
plugins:
99
- jekyll-paginate
1010

11-
paginate: 10
11+
paginate: 8
1212
paginate_path: "/page:num/"
1313

1414
# collections
1515
collections_dir: collections
1616

17+
collections:
18+
projects:
19+
output: true
20+
1721
# social links
1822
github_username: RCmags
1923
youtube_username: XXXmags

_includes/pagination.html

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
<!-- Pagination links -->
1+
<!-- Pagination buttons -->
22
<div class="pagination">
33
<!-- Previous button -->
44
{% if paginator.previous_page %}
5-
<a class="button" href="{{ paginator.previous_page_path }}">
5+
<a class="button_link" href="{{ paginator.previous_page_path }}">
66
&#9664;
77
</a>
8+
{% else %}
9+
<span class="button"> &#9664; </span>
810
{% endif %}
911

1012
<!-- pages -->
@@ -14,21 +16,30 @@
1416

1517
<!-- Next button -->
1618
{% if paginator.next_page %}
17-
<a class="button" href="{{ paginator.next_page_path }}">
19+
<a class="button_link" href="{{ paginator.next_page_path }}">
1820
&#9654;
19-
</a>
21+
</a>
22+
{% else %}
23+
<span class="button"> &#9654; </span>
2024
{% endif %}
2125
</div>
2226

23-
<!-- This loops through the paginated posts -->
27+
<!-- Post list -->
2428
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
2529

2630
<ul class="paginator-list">
2731
<div id="container_out">
2832
{% for post in paginator.posts %}
2933
<li>
3034
<div id="container_in">
31-
<a href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a>
35+
<div id="list_in">
36+
<a href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a>
37+
<div>
38+
{% for category in post.categories %}
39+
<small> [{{ category }}] </small>
40+
{% endfor %}
41+
</div>
42+
</div>
3243
<span> {{ post.date | date: date_format }} </span>
3344
</div>
3445
</li>

_layouts/category-list.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: default
3+
---
4+
5+
<!-- category -->
6+
<header class="post-header">
7+
<h1 style ="text-align: center;" class="post-title">{{ page.category | escape }}</h1>
8+
</header>
9+
10+
<!-- post list -->
11+
<div class="archive-group">
12+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
13+
14+
<ul class="paginator-list">
15+
<div id="container_out">
16+
{% for post in site.categories[page.category] %}
17+
<li>
18+
<div id="container_in">
19+
<a href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a>
20+
<span> {{ post.date | date: date_format }} </span>
21+
</div>
22+
</li>
23+
{% endfor %}
24+
</div>
25+
<ul>
26+
</div>
27+

_sass/minima.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ $on-laptop: 800px !default;
5252
"youtube",
5353
"search-lunr",
5454
"pagination",
55-
"image-slider"
55+
"image-slider",
56+
"projects"
5657
;
5758

_sass/pagination.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
flex-direction: row;
1313
justify-content: space-between;
1414
}
15+
16+
#list_in {
17+
display: flex;
18+
flex-direction: column;
19+
}
1520

1621
li {
1722
margin-bottom: 10px;
@@ -59,8 +64,14 @@
5964
font-size: 24px;
6065
border-radius: 5px;
6166
}
67+
68+
.button_link {
69+
@extend .box;
70+
font-size: 24px;
71+
border-radius: 5px;
72+
}
6273

63-
.button:hover {
74+
.button_link:hover {
6475
background: #b3d1ff;
6576
text-decoration: none;
6677
}

_sass/projects.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.project-list {
2+
@extend .paginator-list;
3+
4+
#container_in {
5+
flex-direction: column;
6+
}
7+
8+
#container_out {
9+
width: 100%;
10+
}
11+
12+
#container_title {
13+
display: flex;
14+
flex-direction: row;
15+
justify-content: space-between;
16+
}
17+
18+
span {
19+
width: auto;
20+
text-align: left;
21+
}
22+
23+
h2 {
24+
margin-bottom: 0px;
25+
}
26+
}

about.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ title: About
44
permalink: /about/
55
---
66

7-
87
<!-- Site banner -->
98
<img src="../img/website_banner.jpg" style="width: 100%; margin-bottom: 5px; border-radius: 10px;">
109

collections/_projects/aircraft.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: category-list
3+
category: Aircraft
4+
description: "Model aircraft and other flying devices"
5+
---

0 commit comments

Comments
 (0)