jekyll-theme-editorial 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/404.html +6 -0
- data/LICENSE.txt +63 -0
- data/README.md +1213 -0
- data/_config.yml +306 -0
- data/_data/categories.yml +38 -0
- data/_data/comments/posts/amet-varius-aliquam/20200511110657-jimbob-hexagonpants.yml +8 -0
- data/_data/comments/posts/amet-varius-aliquam/20200513010934-isabella-roundtoes.yml +15 -0
- data/_data/comments/posts/amet-varius-aliquam/20200514191919-hakira-tusunaba.yaml +8 -0
- data/_data/comments/posts/amet-varius-aliquam/20200515235959-jimbob-hexagonpants.yml +8 -0
- data/_data/features.yml +15 -0
- data/_data/menus.yml +42 -0
- data/_data/scripts.yml +13 -0
- data/_data/social.yml +140 -0
- data/_data/tags.yml +50 -0
- data/_data/taxonomy.yml +87 -0
- data/_includes/404.html +20 -0
- data/_includes/archives_menu.html +61 -0
- data/_includes/article.html +47 -0
- data/_includes/articles.html +42 -0
- data/_includes/author.html +73 -0
- data/_includes/authors.html +21 -0
- data/_includes/authors_byline.html +63 -0
- data/_includes/banner.html +10 -0
- data/_includes/categories.html +15 -0
- data/_includes/comment.html +43 -0
- data/_includes/comment_form.html +43 -0
- data/_includes/comments.html +20 -0
- data/_includes/contact.html +42 -0
- data/_includes/custom_head.html +6 -0
- data/_includes/date_modified.html +6 -0
- data/_includes/disqus_comments.html +19 -0
- data/_includes/feature.html +7 -0
- data/_includes/features.html +10 -0
- data/_includes/footer.html +4 -0
- data/_includes/head.html +20 -0
- data/_includes/item_authors.html +27 -0
- data/_includes/item_date.html +32 -0
- data/_includes/item_image.html +30 -0
- data/_includes/list_item.html +12 -0
- data/_includes/menu.html +110 -0
- data/_includes/mini-posts.html +32 -0
- data/_includes/modal.html +12 -0
- data/_includes/more_button.html +3 -0
- data/_includes/newsletter_signup.html +22 -0
- data/_includes/page_header.html +77 -0
- data/_includes/pages.html +79 -0
- data/_includes/pagination.html +22 -0
- data/_includes/post_header.html +52 -0
- data/_includes/post_nav.html +14 -0
- data/_includes/posts.html +62 -0
- data/_includes/projects.html +90 -0
- data/_includes/responsive_banner.html +20 -0
- data/_includes/scripts.html +22 -0
- data/_includes/search.html +11 -0
- data/_includes/section_header.html +3 -0
- data/_includes/series.html +32 -0
- data/_includes/sidebar.html +11 -0
- data/_includes/signin_button.html +4 -0
- data/_includes/site_header.html +9 -0
- data/_includes/social_media.html +14 -0
- data/_includes/social_media_list.html +14 -0
- data/_includes/submenu.html +25 -0
- data/_includes/tags.html +15 -0
- data/_layouts/archive.html +32 -0
- data/_layouts/author.html +19 -0
- data/_layouts/category.html +23 -0
- data/_layouts/default.html +29 -0
- data/_layouts/home.html +6 -0
- data/_layouts/page.html +16 -0
- data/_layouts/post.html +35 -0
- data/_layouts/project.html +24 -0
- data/_layouts/tag.html +23 -0
- data/_pages/about.md +37 -0
- data/_pages/archives.html +134 -0
- data/_pages/categories.html +94 -0
- data/_pages/elements.html +403 -0
- data/_pages/people.html +26 -0
- data/_pages/posts.html +11 -0
- data/_pages/privacy.md +52 -0
- data/_pages/projects.html +9 -0
- data/_pages/signin.md +31 -0
- data/_pages/tags.html +133 -0
- data/_pages/terms.md +44 -0
- data/_people/augustus.md +27 -0
- data/_people/aurelius.md +29 -0
- data/_people/julia.md +36 -0
- data/_people/petunia.md +26 -0
- data/_posts/2020-01-01-Interdum-aenean.md +47 -0
- data/_posts/2020-01-02-mulla-amet-dolore.md +38 -0
- data/_posts/2020-01-03-tempus-ullamcorper.md +122 -0
- data/_posts/2020-01-04-feugiat-lorem-aenean.md +35 -0
- data/_posts/2020-01-04-sed-etiam-facilis.md +72 -0
- data/_posts/2020-02-01-amet-varius-aliquam.md +27 -0
- data/_posts/2020-02-03-cranky-polar-bears-play-hooky-from-fishing-school.md +35 -0
- data/_posts/2020-02-07-high-septon-or-should-we-all-just-go-marching-along.md +43 -0
- data/_posts/2020-02-14-stupid-computers-and-the-games-they-play-with-our-emotions.md +30 -0
- data/_posts/2020-02-28-look-at-my-great-tatoos-everybody.md +31 -0
- data/_projects/feugiat_valley.md +32 -0
- data/_projects/ipsum_flats.md +42 -0
- data/_projects/lorem_heights.md +36 -0
- data/_projects/tempus_hills.md +37 -0
- data/_samples/page-template.md +48 -0
- data/_samples/people-template.md +51 -0
- data/_samples/post-template.md +38 -0
- data/_samples/project-template.md +47 -0
- data/_sass/base/_page.scss +42 -0
- data/_sass/base/_reset.scss +70 -0
- data/_sass/base/_typography.scss +186 -0
- data/_sass/components/_actions.scss +57 -0
- data/_sass/components/_box.scss +20 -0
- data/_sass/components/_button.scss +79 -0
- data/_sass/components/_contact.scss +41 -0
- data/_sass/components/_features.scss +150 -0
- data/_sass/components/_form.scss +173 -0
- data/_sass/components/_icon.scss +27 -0
- data/_sass/components/_icons.scss +24 -0
- data/_sass/components/_image.scss +68 -0
- data/_sass/components/_list.scss +50 -0
- data/_sass/components/_mini-posts.scss +25 -0
- data/_sass/components/_pagination.scss +64 -0
- data/_sass/components/_posts.scss +173 -0
- data/_sass/components/_row.scss +25 -0
- data/_sass/components/_section.scss +39 -0
- data/_sass/components/_table.scss +75 -0
- data/_sass/layout/_banner.scss +69 -0
- data/_sass/layout/_footer.scss +12 -0
- data/_sass/layout/_header.scss +54 -0
- data/_sass/layout/_main.scss +67 -0
- data/_sass/layout/_menu.scss +92 -0
- data/_sass/layout/_sidebar.scss +217 -0
- data/_sass/layout/_wrapper.scss +7 -0
- data/_sass/libs/_breakpoints.scss +223 -0
- data/_sass/libs/_functions.scss +90 -0
- data/_sass/libs/_html-grid.scss +149 -0
- data/_sass/libs/_mixins.scss +78 -0
- data/_sass/libs/_vars.scss +44 -0
- data/_sass/libs/_vendor.scss +376 -0
- data/_sass/main.scss +61 -0
- data/assets/css/fontawesome-all.min.css +7 -0
- data/assets/css/fonts.css +140 -0
- data/assets/css/github.css +61 -0
- data/assets/css/main.css +2276 -0
- data/assets/css/user.css +640 -0
- data/assets/images/logo.png +0 -0
- data/assets/images/pic01-thumb.jpg +0 -0
- data/assets/images/pic01.jpg +0 -0
- data/assets/images/pic02.jpg +0 -0
- data/assets/images/pic03-thumb.jpg +0 -0
- data/assets/images/pic03.jpg +0 -0
- data/assets/images/pic04.jpg +0 -0
- data/assets/images/pic05-avatar.jpg +0 -0
- data/assets/images/pic05-thumb.jpg +0 -0
- data/assets/images/pic05.jpg +0 -0
- data/assets/images/pic06.jpg +0 -0
- data/assets/images/pic07.jpg +0 -0
- data/assets/images/pic08.jpg +0 -0
- data/assets/images/pic09.jpg +0 -0
- data/assets/images/pic10.jpg +0 -0
- data/assets/images/pic11.jpg +0 -0
- data/assets/images/placeholder.png +0 -0
- data/assets/js/breakpoints.min.js +2 -0
- data/assets/js/browser.min.js +2 -0
- data/assets/js/comments.js +189 -0
- data/assets/js/email-obfuscation.js +54 -0
- data/assets/js/jquery.min.js +2 -0
- data/assets/js/main.js +263 -0
- data/assets/js/util.js +592 -0
- data/assets/webfonts/OpenSans-Bold.eot +0 -0
- data/assets/webfonts/OpenSans-Bold.svg +21062 -0
- data/assets/webfonts/OpenSans-Bold.ttf +0 -0
- data/assets/webfonts/OpenSans-Bold.woff +0 -0
- data/assets/webfonts/OpenSans-BoldItalic.eot +0 -0
- data/assets/webfonts/OpenSans-BoldItalic.svg +21121 -0
- data/assets/webfonts/OpenSans-BoldItalic.ttf +0 -0
- data/assets/webfonts/OpenSans-BoldItalic.woff +0 -0
- data/assets/webfonts/OpenSans-Italic.eot +0 -0
- data/assets/webfonts/OpenSans-Italic.svg +21164 -0
- data/assets/webfonts/OpenSans-Italic.ttf +0 -0
- data/assets/webfonts/OpenSans-Italic.woff +0 -0
- data/assets/webfonts/OpenSans-Light.eot +0 -0
- data/assets/webfonts/OpenSans-Light.svg +21034 -0
- data/assets/webfonts/OpenSans-Light.ttf +0 -0
- data/assets/webfonts/OpenSans-Light.woff +0 -0
- data/assets/webfonts/OpenSans-LightItalic.eot +0 -0
- data/assets/webfonts/OpenSans-LightItalic.svg +21161 -0
- data/assets/webfonts/OpenSans-LightItalic.ttf +0 -0
- data/assets/webfonts/OpenSans-LightItalic.woff +0 -0
- data/assets/webfonts/OpenSans-Regular.eot +0 -0
- data/assets/webfonts/OpenSans-Regular.svg +21064 -0
- data/assets/webfonts/OpenSans-Regular.ttf +0 -0
- data/assets/webfonts/OpenSans-Regular.woff +0 -0
- data/assets/webfonts/OpenSans-SemiBold.eot +0 -0
- data/assets/webfonts/OpenSans-SemiBold.svg +21055 -0
- data/assets/webfonts/OpenSans-SemiBold.ttf +0 -0
- data/assets/webfonts/OpenSans-SemiBold.woff +0 -0
- data/assets/webfonts/OpenSans-SemiBoldItalic.eot +0 -0
- data/assets/webfonts/OpenSans-SemiBoldItalic.svg +21154 -0
- data/assets/webfonts/OpenSans-SemiBoldItalic.ttf +0 -0
- data/assets/webfonts/OpenSans-SemiBoldItalic.woff +0 -0
- data/assets/webfonts/RobotoSlab-Bold.eot +0 -0
- data/assets/webfonts/RobotoSlab-Bold.svg +334 -0
- data/assets/webfonts/RobotoSlab-Bold.ttf +0 -0
- data/assets/webfonts/RobotoSlab-Bold.woff +0 -0
- data/assets/webfonts/RobotoSlab-Bold.woff2 +0 -0
- data/assets/webfonts/RobotoSlab-Regular +0 -0
- data/assets/webfonts/RobotoSlab-Regular.svg +337 -0
- data/assets/webfonts/RobotoSlab-Regular.ttf +0 -0
- data/assets/webfonts/RobotoSlab-Regular.woff +0 -0
- data/assets/webfonts/RobotoSlab-Regular.woff2 +0 -0
- data/assets/webfonts/fa-brands-400.eot +0 -0
- data/assets/webfonts/fa-brands-400.svg +3633 -0
- data/assets/webfonts/fa-brands-400.ttf +0 -0
- data/assets/webfonts/fa-brands-400.woff +0 -0
- data/assets/webfonts/fa-brands-400.woff2 +0 -0
- data/assets/webfonts/fa-regular-400.eot +0 -0
- data/assets/webfonts/fa-regular-400.svg +803 -0
- data/assets/webfonts/fa-regular-400.ttf +0 -0
- data/assets/webfonts/fa-regular-400.woff +0 -0
- data/assets/webfonts/fa-regular-400.woff2 +0 -0
- data/assets/webfonts/fa-solid-900.eot +0 -0
- data/assets/webfonts/fa-solid-900.svg +5000 -0
- data/assets/webfonts/fa-solid-900.ttf +0 -0
- data/assets/webfonts/fa-solid-900.woff +0 -0
- data/assets/webfonts/fa-solid-900.woff2 +0 -0
- data/favicon-apple-touch-114.png +0 -0
- data/favicon-apple-touch-144.png +0 -0
- data/favicon.icns +0 -0
- data/favicon.ico +0 -0
- data/favicon.png +0 -0
- data/index.md +28 -0
- data/robots.txt +8 -0
- data/staticman.yml +109 -0
- metadata +347 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{%-comment-%}
|
|
2
|
+
lists projects as section cards given a projects hash
|
|
3
|
+
|
|
4
|
+
inputs:
|
|
5
|
+
include.date_format optional; override the date format string to use
|
|
6
|
+
include.lead_in optional; override character(s) to precede the date to differentiate it visually
|
|
7
|
+
include.item_date optional; override the date, will otherwise choose in order: item, article, post, project, page,
|
|
8
|
+
include.itemprop optional; override the microdata attribute value
|
|
9
|
+
include.date_class optional; override the class, including microformat classes, to apply to the <time> element
|
|
10
|
+
include.hide_schema optional; whether to hide the microformats/microdata schema hints or not
|
|
11
|
+
dependencies:
|
|
12
|
+
site.date_format the site-wide date_format to use by default
|
|
13
|
+
local:
|
|
14
|
+
dt_format the date format string to use (dt_format to avoid clobbering parent date_format)
|
|
15
|
+
lead_in character(s) to precede the date to differentiate it visually
|
|
16
|
+
item_date the date, will otherwise choose in order: item, article, post, project, page,
|
|
17
|
+
itemprop the microdata attribute value
|
|
18
|
+
date_class the class, including microformats, to apply to the <time> element
|
|
19
|
+
{%-endcomment-%}
|
|
20
|
+
|
|
21
|
+
{%-assign dt_format = include.date_format | default: site.date_format | default: '<span class="dayname">%^A, </span>%b %-d, %Y'-%}
|
|
22
|
+
{%-assign lead_in = include.lead_in-%}
|
|
23
|
+
{%-assign item_date = include.item_date | default: article.date | default: item.date | default: comment.date | default: post.date | default: project.date | default: page.date | date_to_xmlschema-%}
|
|
24
|
+
{%-assign itemprop = include.itemprop | default: 'datePublished'-%}
|
|
25
|
+
{%-assign date_class = include.date_class | default: 'dateline'-%}
|
|
26
|
+
|
|
27
|
+
{%-if include.hide_schema-%}
|
|
28
|
+
<time datetime="{{-item_date-}}" class="{{-date_class-}}">{{ lead_in }}{{ item_date | date: dt_format }}</time>
|
|
29
|
+
{%-else-%}
|
|
30
|
+
{%-unless date_class contains 'dt-modified'-%}{%-assign date_class = date_class | append: ' dt-published' | strip-%}{%-endunless-%}
|
|
31
|
+
<time datetime="{{-item_date-}}" itemprop="{{-itemprop-}}" class="{{-date_class-}}">{{ lead_in }}{{ item_date | date: dt_format }}</time>
|
|
32
|
+
{%-endif-%}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{%-comment-%}
|
|
2
|
+
inputs: none
|
|
3
|
+
dependencies:
|
|
4
|
+
[article, post, project, author, page] - one of these must exist in the parent context to render anything
|
|
5
|
+
site.static_files used to look up the placeholder image and get a list of filenames to check for file existence
|
|
6
|
+
local:
|
|
7
|
+
item the post, project, or page for which to render the image html
|
|
8
|
+
placeholder used as the placeholder image for the article card
|
|
9
|
+
static_file_names used to see if the article image exists
|
|
10
|
+
image the image to render as the article image
|
|
11
|
+
alt_text the alt text to use for the image, for screen readers
|
|
12
|
+
img_title the image title to use for the image
|
|
13
|
+
{%-endcomment-%}
|
|
14
|
+
|
|
15
|
+
{%-assign item = article | default: post | default: project | default: pg | default: page-%}
|
|
16
|
+
{%-assign placeholder = site.static_files | find: 'name', 'placeholder.png'-%}
|
|
17
|
+
{%-assign static_file_names = site.static_files | map: 'name'-%}
|
|
18
|
+
{%-assign image = item.images.thumbnail.file | default: item.images.default.file | default: item.images.banner.file | default: item.thumbnail | default: item.image | default: item.banner | default: placeholder.name-%}
|
|
19
|
+
{%-assign alt_text = item.images.thumbnail.alt_text | default: item.images.default.alt_text | default: item.images.banner.alt_text | default: item.images.alt_text | default: item.alt_text | default: item.banner.alt_text-%}
|
|
20
|
+
{%-assign img_title = item.images.thumbnail.title | default: item.images.default.title | default: item.images.banner.title | default: item.images.title | default: item.title | default: item.banner.title-%}
|
|
21
|
+
|
|
22
|
+
{%-if item != empty %}
|
|
23
|
+
{%-if static_file_names contains image %}
|
|
24
|
+
<img src="{{-item.image_path | default: site.image_path-}}{{-image-}}" itemprop="thumbnail" class="u-photo" title="{{-img_title-}}" alt="{{-alt_text-}}"/>
|
|
25
|
+
{%-elsif image == empty %}
|
|
26
|
+
<img src="{{-item.image_path | default: site.image_path-}}{{-placeholder.name-}}" title="{{-img_title-}}" alt="{{-alt_text-}}"/>
|
|
27
|
+
{%-else %}
|
|
28
|
+
<div class="box"><h3>Missing image</h3>{{-image-}}<br>{{-img_title-}}</div>
|
|
29
|
+
{%-endif %}
|
|
30
|
+
{%-endif %}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{%-assign title_template = include.title_template | default: "Read ':item_title'"-%}
|
|
2
|
+
{%-assign separator = include.separator | default: "- "-%}
|
|
3
|
+
{%-assign list_item = post | default: project | default: pg | default: page-%}
|
|
4
|
+
{%-assign item_authors = post.author | default: project.author | default: pg.author | default: page.author-%}
|
|
5
|
+
<li{%-if include.li_class %} class="{{-include.li_class-}}"{%-endif-%}>
|
|
6
|
+
<a href="{{-list_item.url-}}" title="{{-title_template | replace: ':item_title', list_item.title-}}'">{{-list_item.title-}}</a>
|
|
7
|
+
{%-if site.show.authors and site.show.page_authors and pg or page %}
|
|
8
|
+
{{ separator-}}{%-include item_authors.html authors=item_authors-%}
|
|
9
|
+
{%-elsif site.show.authors and post or project %}
|
|
10
|
+
{{ separator-}}{%-include item_authors.html authors=item_authors-%}
|
|
11
|
+
{%-endif %}
|
|
12
|
+
</li>
|
data/_includes/menu.html
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{%-assign item_limit = include.item_limit | default: 12-%}
|
|
2
|
+
{%-assign peeps = site.collections | find: "label", 'people'-%}
|
|
3
|
+
|
|
4
|
+
{%-if site.menus != nil and site.plugins contains 'jekyll-menus' %}
|
|
5
|
+
{% comment-%} the following version of the menu depends on jekyll-menus {%-endcomment-%}
|
|
6
|
+
<!-- Nav - Menu -->
|
|
7
|
+
<nav id="menu">
|
|
8
|
+
<header class="major">
|
|
9
|
+
<h2>Menu</h2>
|
|
10
|
+
</header>
|
|
11
|
+
<ul>
|
|
12
|
+
{% for item in site.menus.sidebar-%}
|
|
13
|
+
{% if item.identifier == "authors" and site.show.authors != true or peeps.output != true-%}
|
|
14
|
+
{%-continue-%}
|
|
15
|
+
{% endif-%}
|
|
16
|
+
<li class="menu-item-{{-forloop.index-}}{%-if item.url == page.url %} active{%-endif-%}">
|
|
17
|
+
{% if item.children-%}
|
|
18
|
+
{%-assign urls = item.children | map: 'url'-%}
|
|
19
|
+
<span class="opener{%-if item.url == page.url or urls contains page.url %} active{%-endif-%}">
|
|
20
|
+
{%-comment-%}NOTE: a `find_exp` here seems to cause ruby to deadspin, perhaps because of the page_excerpts feature in 4.1.0: https://jekyllrb.com/news/2020/06/24/jekyll-4-1-1-released/{%-endcomment-%}
|
|
21
|
+
{%-assign item_page = site.documents | where_exp: "doc", "doc.url contains item.url"-%}
|
|
22
|
+
{%-if item_page.first.published-%}
|
|
23
|
+
<a href="{{-item.url-}}" title="Go to {{ item.title-}}">{{-item.title-}}</a>
|
|
24
|
+
{%-else-%}
|
|
25
|
+
{{-item.title-}}
|
|
26
|
+
{%-endif-%}
|
|
27
|
+
</span>
|
|
28
|
+
<ul class="sub-menu">
|
|
29
|
+
{% for item in item.children limit: item_limit-%}
|
|
30
|
+
{%-comment-%}
|
|
31
|
+
NOTE: above, can't sort items by date, because Jekyll:Menus:Drops:Items don't have dates, only weights
|
|
32
|
+
NOTE: below, a `find_exp` here seems to cause ruby to deadspin, perhaps because of the page_excerpts feature in 4.1.0: https://jekyllrb.com/news/2020/06/24/jekyll-4-1-1-released/
|
|
33
|
+
{%-endcomment-%}
|
|
34
|
+
{%-assign item_page = site.documents | where_exp: "doc", "doc.url contains item.url"-%}
|
|
35
|
+
{% if item_page.first.published-%}
|
|
36
|
+
<li class="menu-item-{{-forloop.index-}}{%-if item.url == page.url %} active{%-endif-%}">
|
|
37
|
+
<a href="{{-item.url-}}" title="Go to {{ item.title-}}">{{-item.name | default: item.title-}}</a>
|
|
38
|
+
</li>
|
|
39
|
+
{% endif-%}
|
|
40
|
+
{% endfor-%}
|
|
41
|
+
</ul>
|
|
42
|
+
{% else-%}
|
|
43
|
+
<a href="{{-item.url-}}" title="Go to {{ item.title-}}">{{-item.name | default: item.title-}}</a>
|
|
44
|
+
{% endif-%}
|
|
45
|
+
</li>
|
|
46
|
+
{% endfor-%}
|
|
47
|
+
{%-if site.plugins contains 'jekyll-archives' %}{% include archives_menu.html %}{% endif-%}
|
|
48
|
+
</ul>
|
|
49
|
+
</nav> <!-- End Nav - Menu -->
|
|
50
|
+
{%-else-%}
|
|
51
|
+
{%-assign items = site.data.navigation | default: site.data.menus.sidebar-%}
|
|
52
|
+
<!-- Nav - Menu -->
|
|
53
|
+
<nav id="menu">
|
|
54
|
+
<header class="major">
|
|
55
|
+
<h2>Menu</h2>
|
|
56
|
+
</header>
|
|
57
|
+
<ul>
|
|
58
|
+
{% comment-%} TODO: convert this to use `site.data.menus.sidebar` {%-endcomment-%}
|
|
59
|
+
{% for item in items-%}
|
|
60
|
+
{%-assign parent_url = item.url | append: '/'-%}
|
|
61
|
+
{%-if item.identifier == 'posts' and site.posts-%}
|
|
62
|
+
{%-assign menu_items = site.posts-%}
|
|
63
|
+
{% include submenu.html parent_url=parent_url parent_title=item.title-%}
|
|
64
|
+
{%-elsif item.identifier == 'categories' and site.data.categories-%}
|
|
65
|
+
<li{%-if item_url == page.url %} class="active"{%-endif-%}>
|
|
66
|
+
<span class="{%-if site.plugins contains 'jekyll-archives'-%}opener{%-endif-%}{%-if page.url contains item.url %} active{%-endif-%}">
|
|
67
|
+
<a href="{{-item.url-}}">{{-item.title-}}</a>
|
|
68
|
+
</span>
|
|
69
|
+
{%-if site.plugins contains 'jekyll-archives'-%}
|
|
70
|
+
<ul class="sub-menu">
|
|
71
|
+
{% for subitem in site.data.categories-%}
|
|
72
|
+
{%-if site.categories contains subitem.name %}
|
|
73
|
+
{%-assign item_url = subitem.name | slugify | prepend: '/categories/' | append: '/'-%}
|
|
74
|
+
<li{%-if item_url == page.url %} class="active"{%-endif-%}><a href="{{-item_url-}}">{{-subitem.name | default: subitem.title-}}</a></li>
|
|
75
|
+
{%-endif-%}
|
|
76
|
+
{% endfor-%}
|
|
77
|
+
</ul>
|
|
78
|
+
{%-endif-%}
|
|
79
|
+
</li>
|
|
80
|
+
{%-elsif item.identifier == 'tags' and site.data.tags-%}
|
|
81
|
+
<li{%-if item_url == page.url %} class="active"{%-endif-%}>
|
|
82
|
+
<span class="{%-if site.plugins contains 'jekyll-archives'-%}opener{%-endif-%}{%-if page.url contains item.url %} active{%-endif-%}">
|
|
83
|
+
<a href="{{-item.url-}}">{{-item.title-}}</a>
|
|
84
|
+
</span>
|
|
85
|
+
{%-if site.plugins contains 'jekyll-archives'-%}
|
|
86
|
+
<ul class="sub-menu">
|
|
87
|
+
{% for subitem in site.data.tags-%}
|
|
88
|
+
{%-if site.tags contains subitem.name %}
|
|
89
|
+
{%-assign item_url = subitem.name | slugify | prepend: '/tags/' | append: '/'-%}
|
|
90
|
+
<li{%-if item_url == page.url %} class="active"{%-endif-%}><a href="{{-item_url-}}">{{-subitem.name | default: subitem.title-}}</a></li>
|
|
91
|
+
{%-endif-%}
|
|
92
|
+
{% endfor-%}
|
|
93
|
+
</ul>
|
|
94
|
+
{%-endif-%}
|
|
95
|
+
</li>
|
|
96
|
+
{%-elsif item.identifier == 'projects' and site.projects-%}
|
|
97
|
+
{%-assign menu_items = site.projects-%}
|
|
98
|
+
{% include submenu.html parent_url=parent_url parent_title=item.title-%}
|
|
99
|
+
{%-elsif item.identifier == 'authors' and site.people and site.show.authors-%}
|
|
100
|
+
{%-assign menu_items = site.people-%}
|
|
101
|
+
{% include submenu.html parent_url=parent_url parent_title=item.title-%}
|
|
102
|
+
{%-elsif item.identifier == 'archives' and site.plugins contains 'jekyll-archives'-%}
|
|
103
|
+
{% include archives_menu.html %}
|
|
104
|
+
{%-else-%}
|
|
105
|
+
<li{%-if item.url == page.url %} class="active"{%-endif-%}><a href="{{-item.url-}}">{{-item.title-}}</a></li>
|
|
106
|
+
{%-endif-%}
|
|
107
|
+
{% endfor-%}
|
|
108
|
+
</ul>
|
|
109
|
+
</nav> <!-- End Nav - Menu -->
|
|
110
|
+
{%-endif-%}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{%-assign published_projects = site.projects | where: 'published', true -%}
|
|
2
|
+
{%-assign project_menu = site.data.menus.sidebar | find: 'identifier', 'projects' -%}
|
|
3
|
+
{%-if published_projects != empty %}
|
|
4
|
+
<!-- Section - Mini-posts -->
|
|
5
|
+
<section>
|
|
6
|
+
<header class="major">
|
|
7
|
+
<h2><a href="{{-include.mini_posts_url | default: project_menu.url | default: '/projects'-}}" title="See all {{ include.section_title | default: project_menu.title | default: 'projects' | downcase-}}">{{-include.section_title | default: project_menu.title | default: "Projects"-}}</a></h2>
|
|
8
|
+
</header>
|
|
9
|
+
<div class="mini-posts">
|
|
10
|
+
{%-for project in site.projects-%}
|
|
11
|
+
{%-if project.published == true %}
|
|
12
|
+
<article>
|
|
13
|
+
<header>
|
|
14
|
+
<h3><a href="{{-project.url-}}" title="{{-project_menu.title | capitalize }} page for '{{-project.title-}}'">{{-project.title-}}</a></h3>
|
|
15
|
+
</header>
|
|
16
|
+
<figure>
|
|
17
|
+
<a href="{{-project.url-}}" title="{{-project_menu.title | capitalize }} page for '{{-project.title-}}'" class="image">
|
|
18
|
+
{% include item_image.html %}
|
|
19
|
+
</a>
|
|
20
|
+
</figure>
|
|
21
|
+
<p>{{-project.summary | markdownify-}}</p>
|
|
22
|
+
</article>
|
|
23
|
+
{%-endif-%}
|
|
24
|
+
{%-endfor %}
|
|
25
|
+
</div>
|
|
26
|
+
{%-if site.show.more_button %}
|
|
27
|
+
<ul class="actions">
|
|
28
|
+
<li><a href="{{-include.mini_posts_url | default: project_menu.url | default: '/projects'-}}" title="See all {{ include.section_title | project_menu.title | default: 'projects' | downcase-}}" class="button">More</a></li>
|
|
29
|
+
</ul>
|
|
30
|
+
{%-endif %}
|
|
31
|
+
</section> <!-- End Section - Mini-posts -->
|
|
32
|
+
{%-endif %}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<article class="info message modal">
|
|
2
|
+
<header>
|
|
3
|
+
<i class="fas fa-times close js-close-modal"></i>
|
|
4
|
+
<h3 class="header modal-title js-modal-title"></h3>
|
|
5
|
+
</header>
|
|
6
|
+
<div class="js-modal-text"></div>
|
|
7
|
+
</article>
|
|
8
|
+
|
|
9
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:none" >
|
|
10
|
+
<symbol id="icon-loading" viewBox="149.8 37.8 499.818 525"><path d="M557.8 187.8c13.8 0 24.601-10.8 24.601-24.6S571.6 138.6 557.8 138.6s-24.6 10.8-24.6 24.6c0 13.2 10.8 24.6 24.6 24.6zm61.2 90.6c-16.8 0-30.6 13.8-30.6 30.6s13.8 30.6 30.6 30.6 30.6-13.8 30.6-30.6c.6-16.8-13.2-30.6-30.6-30.6zm-61.2 145.2c-20.399 0-36.6 16.2-36.6 36.601 0 20.399 16.2 36.6 36.6 36.6 20.4 0 36.601-16.2 36.601-36.6C595 439.8 578.2 423.6 557.8 423.6zM409 476.4c-24 0-43.2 19.199-43.2 43.199s19.2 43.2 43.2 43.2 43.2-19.2 43.2-43.2S433 476.4 409 476.4zM260.8 411c-27 0-49.2 22.2-49.2 49.2s22.2 49.2 49.2 49.2 49.2-22.2 49.2-49.2-22.2-49.2-49.2-49.2zm-10.2-102c0-27.6-22.8-50.4-50.4-50.4-27.6 0-50.4 22.8-50.4 50.4 0 27.6 22.8 50.4 50.4 50.4 27.6 0 50.4-22.2 50.4-50.4zm10.2-199.8c-30 0-54 24-54 54s24 54 54 54 54-24 54-54-24.6-54-54-54zM409 37.8c-35.4 0-63.6 28.8-63.6 63.6S374.2 165 409 165s63.6-28.8 63.6-63.6-28.2-63.6-63.6-63.6z"/>
|
|
11
|
+
</symbol>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- Newsletter Signup -->
|
|
2
|
+
<section>
|
|
3
|
+
{% assign title = site.newsletter.heading | default: "Newsletter"-%}
|
|
4
|
+
<header class="major">
|
|
5
|
+
<h2>{{-title-}}</h2>
|
|
6
|
+
</header>
|
|
7
|
+
{{ site.newsletter.message | default: "Sign up for our periodic email newsletter! You probably need an online [form handler](https://jekyllrb.com/resources/#forms 'See Jekyll's favorite form handlers here') of some sort for this form to POST to, or it won't work, naturally." | markdownify }}
|
|
8
|
+
|
|
9
|
+
<form method="post" action="{{-include.signup_url | default: '/newsletter_signup'-}}">
|
|
10
|
+
<div class="row gtr-uniform">
|
|
11
|
+
<div class="col-12">
|
|
12
|
+
<input type="email" name="email" id="email" value="" placeholder="Email Address">
|
|
13
|
+
</div>
|
|
14
|
+
<!-- Break -->
|
|
15
|
+
<div class="col-12">
|
|
16
|
+
<ul class="actions">
|
|
17
|
+
<li><input type="submit" value="{{-include.signup_text | default: 'Sign Up'-}}" class="primary"></li>
|
|
18
|
+
</ul>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</form> <!-- End Newsletter Signup -->
|
|
22
|
+
</section>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{%-assign peeps = site.collections | find: "label", 'people'-%}
|
|
2
|
+
{%-assign authors = include.author | default: page.author-%}
|
|
3
|
+
{%-assign page_title = include.page_title | default: page.title-%}
|
|
4
|
+
{%-assign subtitle = include.subtitle | default: page.subtitle-%}
|
|
5
|
+
{%-assign date_format = site.date_format | default: '%^A, %b %-d, %Y'-%}
|
|
6
|
+
{%-assign page_date = include.date | default: page.date-%}
|
|
7
|
+
{%-assign modified_date = include.modified_date | default: page.last_modified_at | default: page.modified_date-%}
|
|
8
|
+
{%-assign exclude_meta = "terms, privacy" | split: ', '-%}
|
|
9
|
+
{%-assign byline_prefix = include.byline_prefix | default: "By" %}
|
|
10
|
+
{%-assign summary_title = include.summary_title | default: "Summary"-%}
|
|
11
|
+
{%-unless exclude_meta contains page.slug %}
|
|
12
|
+
{%-unless site.exclude_dates contains page.collection-%}
|
|
13
|
+
{% if modified_date and page.collection %}{% include date_modified.html date_format='%b %-d, %Y' lead_in='last modified: '-%}{%-endif-%}
|
|
14
|
+
{%-endunless %}
|
|
15
|
+
<div class="page-meta">
|
|
16
|
+
{% if page.handle-%}<!-- Handle --><div class="handle">@{{-page.handle-}}</div>{%-endif %}
|
|
17
|
+
{%-if include.categories != '' and include.categories or page.categories != '' and page.categories %}
|
|
18
|
+
{% include categories.html %}
|
|
19
|
+
{%-endif-%}
|
|
20
|
+
{% unless site.exclude_dates contains page.collection %}
|
|
21
|
+
{% if page_date and page.collection %}
|
|
22
|
+
<!-- Post Date -->
|
|
23
|
+
{% include item_date.html item_date=page_date date_class='dateline align-right' date_format=date_format %}
|
|
24
|
+
{%-endif %}
|
|
25
|
+
{%-endunless %}
|
|
26
|
+
</div>
|
|
27
|
+
{%-endunless %}
|
|
28
|
+
<!-- Page Header -->
|
|
29
|
+
<header class="main tight">
|
|
30
|
+
<h1 class="p-name" itemprop="name headline">
|
|
31
|
+
{%-if page.website != "" and page.website-%}
|
|
32
|
+
<a href="{{-page.website-}}" rel="external" title="Go to {{ page_title-}}'s website: {{ page.website-}}">{{-page_title-}}</a>
|
|
33
|
+
{%-else-%}
|
|
34
|
+
{{-page_title-}}
|
|
35
|
+
{%-endif-%}
|
|
36
|
+
</h1>
|
|
37
|
+
{% if include.subtitle or page.subtitle-%}<p class="subtitle p-subtitle">{{-subtitle-}}</p>{%-endif-%}
|
|
38
|
+
{%-if site.show.authors and authors-%}{%-unless exclude_meta contains page.slug-%}
|
|
39
|
+
<div class="byline">
|
|
40
|
+
{%-if authors %}{{ byline_prefix }}{%-endif-%}
|
|
41
|
+
{%-include authors_byline.html %}
|
|
42
|
+
</div>
|
|
43
|
+
{%-endunless-%}{%-endif %}
|
|
44
|
+
</header>
|
|
45
|
+
{%-if page.summary and site.include_summary contains page.collection %}
|
|
46
|
+
<h2 class="subheader">{{-summary_title-}}</h2>
|
|
47
|
+
{{ page.summary | markdownify }}
|
|
48
|
+
{%-endif-%}
|
|
49
|
+
{%-if include.date %}
|
|
50
|
+
{% include item_date.html item_date=include.date date_class=' ' date_format=date_format %}
|
|
51
|
+
{%-endif-%}
|
|
52
|
+
{%-if page.blurb !='' and page.blurb %}
|
|
53
|
+
<p class="blurb">{{-page.blurb-}}</p>
|
|
54
|
+
{%-endif-%}
|
|
55
|
+
{%-if page.image or page.images %}
|
|
56
|
+
{%-include banner.html %}
|
|
57
|
+
{%-endif-%}
|
|
58
|
+
{%-if page.location or page.company or page.company_url or page.social %}
|
|
59
|
+
<!-- Page Byline -->
|
|
60
|
+
<p class="snug byline">
|
|
61
|
+
{%-if page.location %}
|
|
62
|
+
<span class="p-location">{{-page.location-}}</span>
|
|
63
|
+
{%-endif %}
|
|
64
|
+
{%-if page.company or page.company_url %}
|
|
65
|
+
{%-if page.location-%} | {%-endif %}
|
|
66
|
+
{%-if page.company_url %}
|
|
67
|
+
<a href="{{-page.company_url-}}" class="company" rel="external" title="Go to {{ page.company-}}'s website">{{-page.company-}}</a>
|
|
68
|
+
{%-else %}
|
|
69
|
+
<span class="company">{{-page.company-}}</span>
|
|
70
|
+
{%-endif %}
|
|
71
|
+
{%-endif-%}
|
|
72
|
+
{%-if page.social %}
|
|
73
|
+
{%-if page.location or page.company or page.company_url-%} | {%-else-%}Social: {%-endif-%}
|
|
74
|
+
{% include social_media.html %}
|
|
75
|
+
{%-endif-%}
|
|
76
|
+
</p>
|
|
77
|
+
{%-endif %}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{%-comment-%}
|
|
2
|
+
lists pages as section cards given a pages array
|
|
3
|
+
|
|
4
|
+
inputs: none
|
|
5
|
+
dependencies:
|
|
6
|
+
pages: the pages array to render
|
|
7
|
+
site.static_files: to lookup and make sure a placeholder.png file exists
|
|
8
|
+
site.show.authors: to determine whether to show authors
|
|
9
|
+
site.show.page_authors: to determine whether to show authors
|
|
10
|
+
site.people: to lookup authors in the people array
|
|
11
|
+
site.title: to use as the author, as a last resort
|
|
12
|
+
local:
|
|
13
|
+
published_pages: pages filtered for `published==true`
|
|
14
|
+
placeholder: placeholder.png file to use in case no other page image is available
|
|
15
|
+
auth: the author's handle, used for unpublished authors in place of their name
|
|
16
|
+
author: the looked-up author in site.people
|
|
17
|
+
{%-endcomment-%}
|
|
18
|
+
{%-assign published_pages = pages | where: 'published', true-%}
|
|
19
|
+
|
|
20
|
+
{%-if published_pages != empty %}
|
|
21
|
+
{%-for pg in published_pages %}
|
|
22
|
+
<article itemid="{{-pg.url | absolute_url-}}" class="h-entry page-card row gtr-50 gtr-uniform" itemscope itemtype="http://schema.org/Article">
|
|
23
|
+
{% if image or placeholder.name-%}
|
|
24
|
+
<div class="col-4 col-12-small">
|
|
25
|
+
<figure>
|
|
26
|
+
<a href="{{-pg.url-}}" class="image fit" title="Learn more about '{{-pg.title-}}'">
|
|
27
|
+
{% include item_image.html-%}
|
|
28
|
+
</a>
|
|
29
|
+
</figure>
|
|
30
|
+
<div class="snug smaller categories">{%-include categories.html %}</div>
|
|
31
|
+
</div>
|
|
32
|
+
{%-endif %}
|
|
33
|
+
<div class="col-8 col-12-small">
|
|
34
|
+
{%-assign modified_date = pg.modified_date | default: pg.last_modified_at-%}
|
|
35
|
+
{%-if modified_date-%}
|
|
36
|
+
{% include date_modified.html item_date=modified_date lead_in='last modified: '-%}
|
|
37
|
+
{%-endif %}
|
|
38
|
+
<header class="tight">
|
|
39
|
+
<span class="header-aside">{% include item_date.html item_date=pg.date %}</span>
|
|
40
|
+
<h3><a href="{{-pg.url-}}" itemprop="name" class="u-url p-name" title="Learn more about '{{-pg.title-}}'">{{-pg.title-}}</a></h3>
|
|
41
|
+
<p class="subtitle p-subtitle" itemprop="alternativeHeadline">{{-pg.subtitle-}}</p>
|
|
42
|
+
{%-if site.show.page_authors and site.show.authors and pg.author or pg.location %}
|
|
43
|
+
<p class="byline">
|
|
44
|
+
{%-if site.show.authors %}
|
|
45
|
+
{%-for auth in pg.author-%}
|
|
46
|
+
{%-assign author = site.people | find: 'handle', auth-%}
|
|
47
|
+
{%-if author.published and author.url-%}
|
|
48
|
+
<a href="{{-author.url-}}" rel="author" itemprop="author" class="u-author p-author" title="Read {{ author.name | split: ' ' | first-}}'s bio">{{-author.name-}}</a>
|
|
49
|
+
{%-elsif author.published-%}
|
|
50
|
+
<span itemprop="author" class="p-author">{{-author.name-}}</span>
|
|
51
|
+
{%-else-%}
|
|
52
|
+
<span itemprop="author" class="p-author">{{-auth-}}</span>
|
|
53
|
+
{%-endif-%}
|
|
54
|
+
{%-unless forloop.last %}, {% endunless-%}
|
|
55
|
+
{%-else-%}
|
|
56
|
+
<span itemprop="author" class="p-author">{{-site.title-}}</span>
|
|
57
|
+
{%-endfor-%}
|
|
58
|
+
{%-if pg.location and pg.author or site.title-%}{{-" | "-}}{%-endif-%}
|
|
59
|
+
{%-endif %}
|
|
60
|
+
{%-if pg.location %}
|
|
61
|
+
<span class="p-location" itemprop="location" title="Post location">{{-pg.location-}}</span>
|
|
62
|
+
{%-endif %}
|
|
63
|
+
</p>
|
|
64
|
+
{%-endif-%}
|
|
65
|
+
</header>
|
|
66
|
+
{% if include.summary or pg.summary or pg.excerpt-%}
|
|
67
|
+
<div class="summary p-summary" itemprop="abstract">
|
|
68
|
+
{{ include.summary | default: pg.summary | default: pg.excerpt | markdownify }}
|
|
69
|
+
</div>
|
|
70
|
+
{%-endif %}
|
|
71
|
+
{%-include tags.html %}
|
|
72
|
+
</div>
|
|
73
|
+
</article>
|
|
74
|
+
<hr class="major"/>
|
|
75
|
+
{% endfor %}
|
|
76
|
+
{% else %}
|
|
77
|
+
<h2>Oof!</h2>
|
|
78
|
+
<p>It looks like there aren't any published pages here yet. Might you bug the site owner to create one for your look-see?</p>
|
|
79
|
+
{% endif %}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{% if paginator.total_pages > 1 and site.paginate %}
|
|
2
|
+
<div class="pager">
|
|
3
|
+
<ul class="pagination">
|
|
4
|
+
<li><a href="{{-paginator.previous_page_path-}}" class="previous-page button{%-unless paginator.previous_page %} disabled{%-endunless-%}">« Prev</a></li>
|
|
5
|
+
{%-for page in (1..paginator.total_pages) %}
|
|
6
|
+
{%-if page == paginator.page %}
|
|
7
|
+
<li><div class="current-page page active">{{-paginator.page-}}</div></li>
|
|
8
|
+
{% elsif page == 1 %}
|
|
9
|
+
<li><a href="{{-site.paginate_path | replace: ':num', '' | replace: '//', '/'-}}" class="page">{{-page-}}</a></li>
|
|
10
|
+
{%-elsif page == paginator.previous_page or page == paginator.next_page %}
|
|
11
|
+
<li><a href="{{-site.paginate_path | replace: ':num', page-}}" class="page">{{-page-}}</a></li>
|
|
12
|
+
{%-else %}
|
|
13
|
+
{%-assign skip_pages_max = paginator.total_pages | minus: 3 %}
|
|
14
|
+
{%-if paginator.total_pages > 7 and page == 4 or page == skip_pages_max-%}{%-unless paginator.page < 3 and page == 4-%}{%-unless paginator.page > skip_pages_max and page == skip_pages_max-%}<li>...</li>{%-endunless-%}{%-endunless-%}{%-endif-%}
|
|
15
|
+
{%-if paginator.total_pages > 7 and page > 3 and page <= skip_pages_max-%}{%-continue-%}{%-endif-%}
|
|
16
|
+
<li><a href="{{-site.paginate_path | replace: ':num', page-}}" class="page">{{-page-}}</a></li>
|
|
17
|
+
{%-endif %}
|
|
18
|
+
{%-endfor %}
|
|
19
|
+
<li><a href="{{-paginator.next_page_path-}}" class="next-page button{%-unless paginator.next_page %} disabled{%-endunless-%}">Next »</a></li>
|
|
20
|
+
</ul>
|
|
21
|
+
</div>
|
|
22
|
+
{%-endif %}
|