jekyll-theme-editorial 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. checksums.yaml +7 -0
  2. data/404.html +6 -0
  3. data/LICENSE.txt +63 -0
  4. data/README.md +1213 -0
  5. data/_config.yml +306 -0
  6. data/_data/categories.yml +38 -0
  7. data/_data/comments/posts/amet-varius-aliquam/20200511110657-jimbob-hexagonpants.yml +8 -0
  8. data/_data/comments/posts/amet-varius-aliquam/20200513010934-isabella-roundtoes.yml +15 -0
  9. data/_data/comments/posts/amet-varius-aliquam/20200514191919-hakira-tusunaba.yaml +8 -0
  10. data/_data/comments/posts/amet-varius-aliquam/20200515235959-jimbob-hexagonpants.yml +8 -0
  11. data/_data/features.yml +15 -0
  12. data/_data/menus.yml +42 -0
  13. data/_data/scripts.yml +13 -0
  14. data/_data/social.yml +140 -0
  15. data/_data/tags.yml +50 -0
  16. data/_data/taxonomy.yml +87 -0
  17. data/_includes/404.html +20 -0
  18. data/_includes/archives_menu.html +61 -0
  19. data/_includes/article.html +47 -0
  20. data/_includes/articles.html +42 -0
  21. data/_includes/author.html +73 -0
  22. data/_includes/authors.html +21 -0
  23. data/_includes/authors_byline.html +63 -0
  24. data/_includes/banner.html +10 -0
  25. data/_includes/categories.html +15 -0
  26. data/_includes/comment.html +43 -0
  27. data/_includes/comment_form.html +43 -0
  28. data/_includes/comments.html +20 -0
  29. data/_includes/contact.html +42 -0
  30. data/_includes/custom_head.html +6 -0
  31. data/_includes/date_modified.html +6 -0
  32. data/_includes/disqus_comments.html +19 -0
  33. data/_includes/feature.html +7 -0
  34. data/_includes/features.html +10 -0
  35. data/_includes/footer.html +4 -0
  36. data/_includes/head.html +20 -0
  37. data/_includes/item_authors.html +27 -0
  38. data/_includes/item_date.html +32 -0
  39. data/_includes/item_image.html +30 -0
  40. data/_includes/list_item.html +12 -0
  41. data/_includes/menu.html +110 -0
  42. data/_includes/mini-posts.html +32 -0
  43. data/_includes/modal.html +12 -0
  44. data/_includes/more_button.html +3 -0
  45. data/_includes/newsletter_signup.html +22 -0
  46. data/_includes/page_header.html +77 -0
  47. data/_includes/pages.html +79 -0
  48. data/_includes/pagination.html +22 -0
  49. data/_includes/post_header.html +52 -0
  50. data/_includes/post_nav.html +14 -0
  51. data/_includes/posts.html +62 -0
  52. data/_includes/projects.html +90 -0
  53. data/_includes/responsive_banner.html +20 -0
  54. data/_includes/scripts.html +22 -0
  55. data/_includes/search.html +11 -0
  56. data/_includes/section_header.html +3 -0
  57. data/_includes/series.html +32 -0
  58. data/_includes/sidebar.html +11 -0
  59. data/_includes/signin_button.html +4 -0
  60. data/_includes/site_header.html +9 -0
  61. data/_includes/social_media.html +14 -0
  62. data/_includes/social_media_list.html +14 -0
  63. data/_includes/submenu.html +25 -0
  64. data/_includes/tags.html +15 -0
  65. data/_layouts/archive.html +32 -0
  66. data/_layouts/author.html +19 -0
  67. data/_layouts/category.html +23 -0
  68. data/_layouts/default.html +29 -0
  69. data/_layouts/home.html +6 -0
  70. data/_layouts/page.html +16 -0
  71. data/_layouts/post.html +35 -0
  72. data/_layouts/project.html +24 -0
  73. data/_layouts/tag.html +23 -0
  74. data/_pages/about.md +37 -0
  75. data/_pages/archives.html +134 -0
  76. data/_pages/categories.html +94 -0
  77. data/_pages/elements.html +403 -0
  78. data/_pages/people.html +26 -0
  79. data/_pages/posts.html +11 -0
  80. data/_pages/privacy.md +52 -0
  81. data/_pages/projects.html +9 -0
  82. data/_pages/signin.md +31 -0
  83. data/_pages/tags.html +133 -0
  84. data/_pages/terms.md +44 -0
  85. data/_people/augustus.md +27 -0
  86. data/_people/aurelius.md +29 -0
  87. data/_people/julia.md +36 -0
  88. data/_people/petunia.md +26 -0
  89. data/_posts/2020-01-01-Interdum-aenean.md +47 -0
  90. data/_posts/2020-01-02-mulla-amet-dolore.md +38 -0
  91. data/_posts/2020-01-03-tempus-ullamcorper.md +122 -0
  92. data/_posts/2020-01-04-feugiat-lorem-aenean.md +35 -0
  93. data/_posts/2020-01-04-sed-etiam-facilis.md +72 -0
  94. data/_posts/2020-02-01-amet-varius-aliquam.md +27 -0
  95. data/_posts/2020-02-03-cranky-polar-bears-play-hooky-from-fishing-school.md +35 -0
  96. data/_posts/2020-02-07-high-septon-or-should-we-all-just-go-marching-along.md +43 -0
  97. data/_posts/2020-02-14-stupid-computers-and-the-games-they-play-with-our-emotions.md +30 -0
  98. data/_posts/2020-02-28-look-at-my-great-tatoos-everybody.md +31 -0
  99. data/_projects/feugiat_valley.md +32 -0
  100. data/_projects/ipsum_flats.md +42 -0
  101. data/_projects/lorem_heights.md +36 -0
  102. data/_projects/tempus_hills.md +37 -0
  103. data/_samples/page-template.md +48 -0
  104. data/_samples/people-template.md +51 -0
  105. data/_samples/post-template.md +38 -0
  106. data/_samples/project-template.md +47 -0
  107. data/_sass/base/_page.scss +42 -0
  108. data/_sass/base/_reset.scss +70 -0
  109. data/_sass/base/_typography.scss +186 -0
  110. data/_sass/components/_actions.scss +57 -0
  111. data/_sass/components/_box.scss +20 -0
  112. data/_sass/components/_button.scss +79 -0
  113. data/_sass/components/_contact.scss +41 -0
  114. data/_sass/components/_features.scss +150 -0
  115. data/_sass/components/_form.scss +173 -0
  116. data/_sass/components/_icon.scss +27 -0
  117. data/_sass/components/_icons.scss +24 -0
  118. data/_sass/components/_image.scss +68 -0
  119. data/_sass/components/_list.scss +50 -0
  120. data/_sass/components/_mini-posts.scss +25 -0
  121. data/_sass/components/_pagination.scss +64 -0
  122. data/_sass/components/_posts.scss +173 -0
  123. data/_sass/components/_row.scss +25 -0
  124. data/_sass/components/_section.scss +39 -0
  125. data/_sass/components/_table.scss +75 -0
  126. data/_sass/layout/_banner.scss +69 -0
  127. data/_sass/layout/_footer.scss +12 -0
  128. data/_sass/layout/_header.scss +54 -0
  129. data/_sass/layout/_main.scss +67 -0
  130. data/_sass/layout/_menu.scss +92 -0
  131. data/_sass/layout/_sidebar.scss +217 -0
  132. data/_sass/layout/_wrapper.scss +7 -0
  133. data/_sass/libs/_breakpoints.scss +223 -0
  134. data/_sass/libs/_functions.scss +90 -0
  135. data/_sass/libs/_html-grid.scss +149 -0
  136. data/_sass/libs/_mixins.scss +78 -0
  137. data/_sass/libs/_vars.scss +44 -0
  138. data/_sass/libs/_vendor.scss +376 -0
  139. data/_sass/main.scss +61 -0
  140. data/assets/css/fontawesome-all.min.css +7 -0
  141. data/assets/css/fonts.css +140 -0
  142. data/assets/css/github.css +61 -0
  143. data/assets/css/main.css +2276 -0
  144. data/assets/css/user.css +640 -0
  145. data/assets/images/logo.png +0 -0
  146. data/assets/images/pic01-thumb.jpg +0 -0
  147. data/assets/images/pic01.jpg +0 -0
  148. data/assets/images/pic02.jpg +0 -0
  149. data/assets/images/pic03-thumb.jpg +0 -0
  150. data/assets/images/pic03.jpg +0 -0
  151. data/assets/images/pic04.jpg +0 -0
  152. data/assets/images/pic05-avatar.jpg +0 -0
  153. data/assets/images/pic05-thumb.jpg +0 -0
  154. data/assets/images/pic05.jpg +0 -0
  155. data/assets/images/pic06.jpg +0 -0
  156. data/assets/images/pic07.jpg +0 -0
  157. data/assets/images/pic08.jpg +0 -0
  158. data/assets/images/pic09.jpg +0 -0
  159. data/assets/images/pic10.jpg +0 -0
  160. data/assets/images/pic11.jpg +0 -0
  161. data/assets/images/placeholder.png +0 -0
  162. data/assets/js/breakpoints.min.js +2 -0
  163. data/assets/js/browser.min.js +2 -0
  164. data/assets/js/comments.js +189 -0
  165. data/assets/js/email-obfuscation.js +54 -0
  166. data/assets/js/jquery.min.js +2 -0
  167. data/assets/js/main.js +263 -0
  168. data/assets/js/util.js +592 -0
  169. data/assets/webfonts/OpenSans-Bold.eot +0 -0
  170. data/assets/webfonts/OpenSans-Bold.svg +21062 -0
  171. data/assets/webfonts/OpenSans-Bold.ttf +0 -0
  172. data/assets/webfonts/OpenSans-Bold.woff +0 -0
  173. data/assets/webfonts/OpenSans-BoldItalic.eot +0 -0
  174. data/assets/webfonts/OpenSans-BoldItalic.svg +21121 -0
  175. data/assets/webfonts/OpenSans-BoldItalic.ttf +0 -0
  176. data/assets/webfonts/OpenSans-BoldItalic.woff +0 -0
  177. data/assets/webfonts/OpenSans-Italic.eot +0 -0
  178. data/assets/webfonts/OpenSans-Italic.svg +21164 -0
  179. data/assets/webfonts/OpenSans-Italic.ttf +0 -0
  180. data/assets/webfonts/OpenSans-Italic.woff +0 -0
  181. data/assets/webfonts/OpenSans-Light.eot +0 -0
  182. data/assets/webfonts/OpenSans-Light.svg +21034 -0
  183. data/assets/webfonts/OpenSans-Light.ttf +0 -0
  184. data/assets/webfonts/OpenSans-Light.woff +0 -0
  185. data/assets/webfonts/OpenSans-LightItalic.eot +0 -0
  186. data/assets/webfonts/OpenSans-LightItalic.svg +21161 -0
  187. data/assets/webfonts/OpenSans-LightItalic.ttf +0 -0
  188. data/assets/webfonts/OpenSans-LightItalic.woff +0 -0
  189. data/assets/webfonts/OpenSans-Regular.eot +0 -0
  190. data/assets/webfonts/OpenSans-Regular.svg +21064 -0
  191. data/assets/webfonts/OpenSans-Regular.ttf +0 -0
  192. data/assets/webfonts/OpenSans-Regular.woff +0 -0
  193. data/assets/webfonts/OpenSans-SemiBold.eot +0 -0
  194. data/assets/webfonts/OpenSans-SemiBold.svg +21055 -0
  195. data/assets/webfonts/OpenSans-SemiBold.ttf +0 -0
  196. data/assets/webfonts/OpenSans-SemiBold.woff +0 -0
  197. data/assets/webfonts/OpenSans-SemiBoldItalic.eot +0 -0
  198. data/assets/webfonts/OpenSans-SemiBoldItalic.svg +21154 -0
  199. data/assets/webfonts/OpenSans-SemiBoldItalic.ttf +0 -0
  200. data/assets/webfonts/OpenSans-SemiBoldItalic.woff +0 -0
  201. data/assets/webfonts/RobotoSlab-Bold.eot +0 -0
  202. data/assets/webfonts/RobotoSlab-Bold.svg +334 -0
  203. data/assets/webfonts/RobotoSlab-Bold.ttf +0 -0
  204. data/assets/webfonts/RobotoSlab-Bold.woff +0 -0
  205. data/assets/webfonts/RobotoSlab-Bold.woff2 +0 -0
  206. data/assets/webfonts/RobotoSlab-Regular +0 -0
  207. data/assets/webfonts/RobotoSlab-Regular.svg +337 -0
  208. data/assets/webfonts/RobotoSlab-Regular.ttf +0 -0
  209. data/assets/webfonts/RobotoSlab-Regular.woff +0 -0
  210. data/assets/webfonts/RobotoSlab-Regular.woff2 +0 -0
  211. data/assets/webfonts/fa-brands-400.eot +0 -0
  212. data/assets/webfonts/fa-brands-400.svg +3633 -0
  213. data/assets/webfonts/fa-brands-400.ttf +0 -0
  214. data/assets/webfonts/fa-brands-400.woff +0 -0
  215. data/assets/webfonts/fa-brands-400.woff2 +0 -0
  216. data/assets/webfonts/fa-regular-400.eot +0 -0
  217. data/assets/webfonts/fa-regular-400.svg +803 -0
  218. data/assets/webfonts/fa-regular-400.ttf +0 -0
  219. data/assets/webfonts/fa-regular-400.woff +0 -0
  220. data/assets/webfonts/fa-regular-400.woff2 +0 -0
  221. data/assets/webfonts/fa-solid-900.eot +0 -0
  222. data/assets/webfonts/fa-solid-900.svg +5000 -0
  223. data/assets/webfonts/fa-solid-900.ttf +0 -0
  224. data/assets/webfonts/fa-solid-900.woff +0 -0
  225. data/assets/webfonts/fa-solid-900.woff2 +0 -0
  226. data/favicon-apple-touch-114.png +0 -0
  227. data/favicon-apple-touch-144.png +0 -0
  228. data/favicon.icns +0 -0
  229. data/favicon.ico +0 -0
  230. data/favicon.png +0 -0
  231. data/index.md +28 -0
  232. data/robots.txt +8 -0
  233. data/staticman.yml +109 -0
  234. metadata +347 -0
data/_data/scripts.yml ADDED
@@ -0,0 +1,13 @@
1
+ # Scripts to be included before the closing `<\body>` tag of the default layout
2
+ # you can customize the script type & path; only set these if needed
3
+ # the default `type` is 'text/javascript'
4
+ # the default `path` is '/assets/js/'
5
+ - file: jquery.min.js
6
+ type: # default: 'text/javascript'
7
+ path: # default: '/assets/js/'
8
+ - file: browser.min.js
9
+ - file: breakpoints.min.js
10
+ - file: util.js
11
+ - file: main.js
12
+ - file: email-obfuscation.js
13
+ - file: comments.js
data/_data/social.yml ADDED
@@ -0,0 +1,140 @@
1
+ # Social: use at most 7; remove or comment out the handle for the others
2
+ # Reorder these here to suit your desired order on the page
3
+ # Capitalize labels to suit your preferences
4
+ # URL patterns here should be correct, but be sure to test them
5
+ # Icons are `icon brands` + the fontawsome class names to be used
6
+ github:
7
+ label: Github
8
+ handle: middlebear
9
+ pattern: https://github.com/%s
10
+ icon: icon brands fa-github
11
+ gravatar:
12
+ label: Gravatar
13
+ handle: middlebear2
14
+ pattern: https://gravatar.com/%s
15
+ icon: icon brands fa-google fa-rotate-270
16
+ rubygems:
17
+ label: RubyGems
18
+ handle: middlebear
19
+ pattern: https://rubygems.org/profiles/%s
20
+ icon: icon fa-gem
21
+ twitter:
22
+ label: Middlebear Twitter
23
+ handle: middlebear2
24
+ pattern: https://twitter.com/%s
25
+ icon: icon brands fa-twitter
26
+ twitter2:
27
+ label: Jekyll Twitter
28
+ handle: jekyllrb
29
+ pattern: https://twitter.com/%s
30
+ icon: icon brands fa-twitter
31
+ medium:
32
+ label: Medium
33
+ handle: jekyll
34
+ pattern: https://medium.com/@%s
35
+ icon: icon brands fa-medium-m
36
+ facebook:
37
+ label: Facebook
38
+ handle: # jekyll
39
+ pattern: https://www.facebook.com/%s
40
+ icon: icon brands fa-facebook-f
41
+ linkedin:
42
+ label: LinkedIn
43
+ handle: # jekyll
44
+ pattern: https://www.linkedin.com/in/%s
45
+ icon: icon brands fa-linkedin
46
+ instagram:
47
+ label: Instagram
48
+ handle: jekyll
49
+ pattern: https://www.instagram.com/%s
50
+ icon: icon brands fa-instagram
51
+ snapchat:
52
+ label: Snapchat
53
+ handle: # jekyll
54
+ pattern: https://www.snapchat.com/add/%s
55
+ icon: icon brands fa-snapchat-ghost
56
+ gitlab:
57
+ label: Gitlab
58
+ handle: # jekyll
59
+ pattern: https://gitlab.com/%s
60
+ icon: icon brands fa-gitlab
61
+ keybase:
62
+ label: Keybase
63
+ handle: # jekyll
64
+ pattern: https://keybase.io/%s
65
+ icon: icon brands fa-keybase
66
+ 500px:
67
+ label: 500px
68
+ handle: # jekyll
69
+ pattern: https://500px.com/%s
70
+ icon: icon brands fa-500px
71
+ flickr:
72
+ label: Flickr
73
+ handle: # jekyll
74
+ pattern: https://www.flickr.com/photos/%s
75
+ icon: icon brands fa-flickr
76
+ pinterest:
77
+ label: Pinterest
78
+ handle: # jekyll
79
+ pattern: https://www.pinterest.com/%s/
80
+ icon: icon brands fa-pinterest
81
+ dribbble:
82
+ label: Dribbble
83
+ handle: # jekyll
84
+ pattern: https://dribbble.com/%s/collections
85
+ icon: icon brands fa-dribbble
86
+ behance:
87
+ label: Behance
88
+ handle: # jekyll
89
+ pattern: https://www.behance.net/%s
90
+ icon: icon brands fa-behance
91
+ youtube:
92
+ label: Youtube
93
+ handle: # jekyll
94
+ pattern: https://www.youtube.com/user/%s
95
+ icon: icon brands fa-youtube
96
+ vimeo:
97
+ label: Vimeo
98
+ handle: # jekyll
99
+ pattern: https://vimeo.com/%s
100
+ icon: icon brands fa-vimeo-v
101
+ angelist:
102
+ label: Angelist
103
+ handle: # jekyll
104
+ pattern: https://angel.co/u/%s
105
+ icon: icon brands fa-angelist
106
+ etsy:
107
+ label: Etsy
108
+ handle: # jekyll
109
+ pattern: https://www.etsy.com/shop/%s
110
+ icon: icon brands fa-etsy
111
+ goodreads:
112
+ label: Goodreads
113
+ handle: # jekyll
114
+ pattern: https://www.goodreads.com/%s
115
+ icon: icon brands fa-goodreads-g
116
+ tiktok:
117
+ label: Tiktok
118
+ handle: # jekyll
119
+ pattern: https://www.tiktok.com/@%s
120
+ icon: icon brands fa-tiktok
121
+ tumblr:
122
+ label: Tumblr
123
+ handle: # jekyll
124
+ pattern: https://%s.tumblr.com/
125
+ icon: icon brands fa-tumblr
126
+ reddit:
127
+ label: Reddit
128
+ handle: # jekyll
129
+ pattern: https://www.reddit.com/u/%s
130
+ icon: icon brands fa-reddit-alien
131
+ soundcloud:
132
+ label: Soundcloud
133
+ handle: # jekyll
134
+ pattern: https://soundcloud.com/%s
135
+ icon: icon brands fa-soundcloud
136
+ slack:
137
+ label: Slack
138
+ handle: # jekyll
139
+ pattern: https://%s.slack.com/
140
+ icon: icon brands fa-slack
data/_data/tags.yml ADDED
@@ -0,0 +1,50 @@
1
+ # these tags will show up as menu subitems under the main tag page
2
+ # unfortunately, that means each new tag needs to also be included here
3
+ # remove all items below to remove submenu items from the sidebar
4
+ # descriptions: not yet shown anywhere, but would be useful on the main tags page
5
+ - name: nulla
6
+ description:
7
+ - name: amet
8
+ description:
9
+ - name: lolligag
10
+ description:
11
+ - name: whizbang
12
+ description:
13
+ - name: tempus
14
+ description:
15
+ - name: sed
16
+ description:
17
+ - name: aenean
18
+ description:
19
+ - name: whifflepuff
20
+ description:
21
+ - name: ping pong
22
+ description:
23
+ - name: wompus
24
+ description:
25
+ - name: polar bears
26
+ description:
27
+ - name: ullamcorper
28
+ description:
29
+ - name: tempus
30
+ description:
31
+ - name: facilis
32
+ description:
33
+ - name: fuzzy wuzzy
34
+ description:
35
+ - name: goofyfoot
36
+ description:
37
+ - name: tiddlywinks
38
+ description:
39
+ - name: delicious tiremarks
40
+ description:
41
+ - name: pigglywiggly
42
+ description:
43
+ - name: ding-a-ling
44
+ description:
45
+ - name: oompaloompa
46
+ description:
47
+ - name: meta
48
+ description:
49
+ - name: terms
50
+ description:
@@ -0,0 +1,87 @@
1
+ # a reference list of categories and tags for organization & classification
2
+ # update & use it to be consistent in picking categories & tags for your posts
3
+ # the first level are categories; limit this to a small number (3-9 is ideal)
4
+ # subsequent levels are tags, some nested; limit the nesting to 2 levels; any
5
+ # more levels of nesting and tags get too fine-grained; prefer 1st-level tags
6
+ # this is an example for a news site; replace it or tailor it to your needs
7
+ - news
8
+ - world
9
+ - u.s.
10
+ - local
11
+ - opinion
12
+ - op-ed
13
+ - editorials
14
+ - letters
15
+ - reviews
16
+ - "video opinion"
17
+ - magazine
18
+ - multimedia
19
+ - politics
20
+ - elections
21
+ - ethics
22
+ - federal
23
+ - international relations
24
+ - law
25
+ - policy
26
+ - business
27
+ - economics
28
+ - entrepreneurship
29
+ - finance
30
+ - industry
31
+ - management
32
+ - markets
33
+ - society
34
+ - civics
35
+ - community
36
+ - education
37
+ - jobs
38
+ - history
39
+ - philosophy
40
+ - religion
41
+ - science
42
+ - biology
43
+ - energy
44
+ - environment
45
+ - medicine
46
+ - math
47
+ - physics
48
+ - space
49
+ - statistics
50
+ - technology
51
+ - automobiles
52
+ - internet
53
+ - products
54
+ - gadgets
55
+ - services
56
+ - software
57
+ - culture
58
+ - entertainment
59
+ - movies
60
+ - television
61
+ - sports
62
+ - celebrities
63
+ - events
64
+ - style
65
+ - architecture
66
+ - design
67
+ - fashion
68
+ - home
69
+ - the media
70
+ - arts
71
+ - art & design
72
+ - books
73
+ - dance
74
+ - music
75
+ - photography
76
+ - theater
77
+ - video arts
78
+ - living
79
+ - food
80
+ - health
81
+ - money
82
+ - obituaries
83
+ - real estate
84
+ - travel
85
+ - classifieds
86
+ - tools & services
87
+ - weddings & celebrations
@@ -0,0 +1,20 @@
1
+ <style type="text/css" media="screen">
2
+ .container {
3
+ margin: 10px auto;
4
+ max-width: 600px;
5
+ text-align: center;
6
+ }
7
+ h1 {
8
+ margin: 30px 0;
9
+ font-size: 4em;
10
+ line-height: 1;
11
+ letter-spacing: -1px;
12
+ }
13
+ </style>
14
+
15
+ <div class="container">
16
+ <h1>404</h1>
17
+
18
+ <p><strong>Page not found :(</strong></p>
19
+ <p>The requested page could not be found.</p>
20
+ </div>
@@ -0,0 +1,61 @@
1
+ {%-assign archived = site.jekyll-archives.enabled-%}
2
+ {%-if archived contains 'year' or archived contains 'month' or archived contains 'day'-%}
3
+ {%-assign archives_menu = site.data.navigation | find: "identifier", "archives"-%}
4
+ {%-assign posts_by_year = site.posts | group_by_exp: "post", "post.date | date: '%Y'"-%}
5
+ {%-assign years = posts_by_year | map: 'name'-%}
6
+ {%-assign firsts = "1,21,31" | split: ','-%}
7
+ {%-assign seconds = "2,22" | split: ','-%}
8
+ {%-assign thirds = "3,23" | split: ','-%}
9
+ <li{%-if page.url contains archives_menu.url %} class="active"{%-endif-%}>
10
+ <span class="opener">
11
+ {%-if archives_menu-%}
12
+ <a href="{{-archives_menu.url-}}" class="{%-if page.url contains archives_menu.url-%}active {% endif-%}">{{-archives_menu.title | default: 'Archives'-}}</a>
13
+ {%-else-%}
14
+ {{-archives_menu.title | default: 'Archives'-}}
15
+ {%-endif-%}
16
+ </span>
17
+ {%-if archived contains 'year' or archived contains 'month' or archived contains 'day'-%}
18
+ <ul class="sub-menu">
19
+ {%-for year in posts_by_year %}
20
+ {%-assign year_url = site.jekyll-archives.permalinks.year | replace: ':year', year.name-%}
21
+ <li{%-if page.url == year_url %} class="active"{%-endif-%}>
22
+ {%-if archived contains 'year' %}
23
+ <a href="{{-year_url-}}">{{-year.name-}}</a>
24
+ {%-else-%}
25
+ <span>{{-year.name-}}</span>
26
+ {%-endif %}
27
+ {%-if archived contains 'month' or archived contains 'day'-%}
28
+ {%-assign posts_by_month = year.items | sort: 'date' | group_by_exp: "post", "post.date | date: '%B'"-%}
29
+ <ul class="sub-menu">
30
+ {%-for month in posts_by_month %}
31
+ {%-assign month_name = month.name | date: '%m'-%}
32
+ {%-assign month_url = site.jekyll-archives.permalinks.month | replace: ':year', year.name | replace: ':month', month_name-%}
33
+ <li{%-if page.url contains month_url %} class="active"{%-endif-%}>
34
+ {%-if archived contains 'month' %}
35
+ <a href="{{-month_url-}}">{{-month.name }} {{ year.name-}}</a>
36
+ {%-else-%}
37
+ <span>{{-month.name }} {{ year.name-}}</span>
38
+ {%-endif %}
39
+ {%-if archived contains 'day'-%}
40
+ {%-assign posts_by_day = month.items | sort: 'date' | group_by_exp: "post", "post.date | date: '%-d'"-%}
41
+ <ul class="sub-menu">
42
+ {%-for day in posts_by_day %}
43
+ {%-if firsts contains day.name-%}{%-assign suffix='st'-%}{%-elsif seconds contains day.name-%}{%-assign suffix='nd'-%}{%-elsif thirds contains day.name-%}{%-assign suffix='rd'-%}{%-else-%}{%-assign suffix='th'-%}{%-endif-%}
44
+ {%-assign day_name = day.name | plus: 0-%}
45
+ {%-capture day_url-%}{{-month_url-}}/{%-if day_name < 10-%}0{%-endif-%}{{-day.name-}}{%-endcapture-%}
46
+ <li{%-if page.url contains day_url %} class="active"{%-endif-%}>
47
+ <a href="{{-day_url-}}">{{-month.name | date: '%b' }} {{ day.name-}}<sup>{{-suffix-}}</sup></a>
48
+ </li>
49
+ {%-endfor %}
50
+ </ul>
51
+ {%-endif %}
52
+ </li>
53
+ {%-endfor %}
54
+ </ul>
55
+ {%-endif %}
56
+ </li>
57
+ {%-endfor %}
58
+ </ul>
59
+ {%-endif %}
60
+ </li>
61
+ {%-endif %}
@@ -0,0 +1,47 @@
1
+ {%-comment-%}
2
+ inputs:
3
+ item_type [post, project, page, author] - the type of item to render
4
+ dependencies:
5
+ site.show.authors to determine whether to show authors or not
6
+ article the item of item_type for which to render
7
+ local:
8
+ image the image to render as the article image
9
+ alt_text the alt text to use for the image, for screen readers
10
+ img_title the image title to use for the image
11
+ NOTE: liquid append-remove trick (`-@$remove@me`) inspired by https://vsoch.github.io/2019/jekyll-lists/
12
+ {%-endcomment-%}
13
+
14
+ {%-assign item_type = include.item_type | default: 'post'-%}
15
+
16
+ <!-- Article - {{ article.title }} -->
17
+ <article class="{{-item_type-}}-card">
18
+ <figure>
19
+ <a href="{{-article.url-}}" class="image" title="Read '{{-article.title-}}'">
20
+ {% include item_image.html-%}
21
+ </a>
22
+ </figure>
23
+ {%-assign modified_date = item.modified_date | default: item.last_modified_at-%}
24
+ {%-if modified_date-%}
25
+ {% include date_modified.html item_date=modified_date lead_in='last modified: '-%}
26
+ {%-endif %}
27
+ <div class="article-meta">
28
+ {% include item_date.html date_class='dateline float-right' %}
29
+ {% include categories.html list_class='smaller' %}
30
+ </div>
31
+ <header>
32
+ <h3><a href="{{-article.url-}}" title="Read '{{-article.title-}}'">{{-article.title-}}</a></h3>
33
+ </header>
34
+ {%-if site.show.authors %}
35
+ {%-include item_authors.html %}
36
+ {%-endif %}
37
+ <div>{{-article.excerpt-}}</div>
38
+ {%-if item.series %}
39
+ <div class="snug series" title="This {{ item.type | append: '-@$remove@me' | remove: 's-@$remove@me' }} is part of a series">{{ item.series | replace: '-',' ' | capitalize-}}</div>
40
+ {%-endif %}
41
+ <div class="tags">{%-include tags.html %}</div>
42
+ {%-if site.show.more_button %}
43
+ <ul class="actions">
44
+ <li><a href="{{-article.url-}}" title="Read '{{-article.title-}}'" class="button">More</a></li>
45
+ </ul>
46
+ {%-endif %}
47
+ </article>
@@ -0,0 +1,42 @@
1
+ {%-comment-%}
2
+ inputs:
3
+ section_title the H2 header for this <section>
4
+ dependencies:
5
+ site.posts posts to be formatted as article cards
6
+ site.related_posts related posts can be used in place of site.posts
7
+ site.related_posts_limit site-wide number of related posts to show
8
+ site.static_files used to look up the placeholder image and get a list of filenames to check for file existence
9
+ page.handle author pages have handles that limit rendered posts to only the author's
10
+ local:
11
+ articles posts, projects, pages, or people to be formatted as article cards
12
+ list_limit the number of article cards to show
13
+ placeholder used by article.html as the placeholder image for article cards
14
+ static_file_names used by article.html to see if the article image exists
15
+ {%-endcomment-%}
16
+
17
+ {%-assign article_type= include.article_type | default: 'posts'-%}
18
+ {%-assign list_limit = include.list_limit | default: site.related_posts_limit | default: 6-%}
19
+
20
+ {%-case article_type-%}
21
+ {%-when 'posts'-%} {%-assign articles = site.posts | where: 'author', page.handle | default: site.posts-%}
22
+ {%-when 'related_posts'-%} {%-assign articles = site.related_posts | where: 'author', page.handle | default: site.related_posts-%}
23
+ {%-when 'projects'-%} {%-assign articles = site.projects | where: 'author', page.handle | default: site.projects-%}
24
+ {%-when 'authors'-%} {%-assign articles = site.people | where: 'author', page.handle | default: site.posts-%}
25
+ {%-when 'people'-%} {%-assign articles = site.people | where: 'author', page.handle | default: site.posts-%}
26
+ {%-when 'pages'-%} {%-assign articles = site.pages | where: 'author', page.handle | default: site.pages-%}
27
+ {%-else-%} {%-assign articles = site.posts | where: 'author', page.handle | default: site.projects | default: site.people | default: site.pages-%}
28
+ {%-endcase-%}
29
+
30
+ <!-- Articles -->
31
+ <section>
32
+ <header class="major">
33
+ <h2>{{-include.section_title | default: "Articles"-}}</h2>
34
+ </header>
35
+ <div class="{{-article_type }} posts">
36
+ {%-for article in articles limit:list_limit-%}
37
+ {%-unless article.published == false-%}
38
+ {% include article.html %}
39
+ {%-endunless-%}
40
+ {%-endfor-%}
41
+ </div>
42
+ </section>