jekyll-theme-editorial 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35a176b8f2ff001b1a27a292dd19b85037aa5a04af8200b9f6d2e3773f3ae0aa
4
- data.tar.gz: 072a4dbd98ac269aac446f68c4eecbffffc79e51aef15c184d921069c3742d1a
3
+ metadata.gz: 723032f0b04256a4ae75e2a54d43243e034b03fd8f5dd0c0eb658627d23a64cc
4
+ data.tar.gz: c6c57efc31b84092e942225095f8ec37468ceb4975a9a37490292005ee7e4b07
5
5
  SHA512:
6
- metadata.gz: bfd768be320f4bd7d986ce7f50f097b0cb06a6f4ffba2f285b31f2fc6ac1e841dfeda6e98956f58c2d1ecec17e26869944aa4d355b4e7aace5c0a0f51a7a6f06
7
- data.tar.gz: 07e6be2cf3736bc4eea152defe10c39d6983e20083d125b20b0c0297ec1f4c940fabd93275e75aeb877b9729fdd0141ec9f0b888ad41a5cd5012b6379c2f32cf
6
+ metadata.gz: d43c437efa287ea3c593d290952eba986c3133454bd1891c094042e565fac3801bd4ae1c492393b41673f1870620ba961ae424d5769df07c1be126f1ace9559e
7
+ data.tar.gz: caae30eff44c04d927640a4c230d485d9d2fbd062dffd9f629f7f5793c497bd2a86407e0b921382625dc65e81c253339a3d1e9d9a02bf398dd36e346907b3fe2
data/README.md CHANGED
@@ -85,7 +85,7 @@ layout: home
85
85
  ---
86
86
 
87
87
  ```
88
- To replicate the basic theme home page, replace this file with the following:
88
+ To replicate Editorial's theme home page, replace this file with the following:
89
89
 
90
90
  ```markdown
91
91
  ---
@@ -93,11 +93,11 @@ layout: home
93
93
  body_class: home
94
94
  title: "Hi, I’m Editorial<br /> by HTML5 UP & Middle Bear"
95
95
  subtitle: My overridden site.tagline
96
- description: "Aenean ornare velit lacus, ac varius enim ullamcorper eu. Proin aliquam facilisis ante interdum congue. Integer mollis, nisl amet convallis, porttitor magna ullamcorper, amet egestas mauris. Ut magna finibus nisi nec lacinia. Nam maximus erat id euismod egestas. Pellentesque sapien ac quam. Lorem ipsum dolor sit nullam."
96
+ description: "Check out the Github repo for the Editorial theme, or take a look at the code for this demo site, <a href='https://github.com/jekyll-theme-editorial/jekyll-theme-editorial.github.io/'>jekyll-theme-editorial.github.io</a>."
97
97
  banner:
98
- url: "/about"
99
- link_title: "Read About Editorial"
100
- button_text: "Learn More"
98
+ url: "https://github.com/middlebear/jekyll-theme-editorial"
99
+ link_title: "Visit the Editorial theme Github repo"
100
+ button_text: "Github Repo"
101
101
  images:
102
102
  banner:
103
103
  file: "pic10.jpg"
@@ -106,7 +106,7 @@ images:
106
106
  # NOTE: features are set in `/_data/features.yml`
107
107
  ---
108
108
 
109
- <!-- Responsive Banner -->
109
+ <!-- Banner -->
110
110
  {%-include responsive_banner.html-%}
111
111
 
112
112
  <!-- Section - Features -->
@@ -114,12 +114,11 @@ images:
114
114
 
115
115
  <!-- Section - Articles -->
116
116
  {%-include articles.html section_title="Neat Articles"-%}
117
-
118
117
  ```
119
118
 
120
- This adds three includes (`responsive_banner.html`, `features.html`, and `articles.html`) to the home page. The added yaml front matter is mainly there to configure the banner, although the `title` and `subtitle` keys can be used by the jekyll-seo-tag, for instance.
119
+ This adds three includes (`responsive_banner.html`, `features.html`, and `articles.html`) to the home page. The added yaml front matter is mainly there to configure the banner, although the `title` and `subtitle` keys can be used by the `jekyll-seo-tag` plugin, for instance.
121
120
 
122
- This index page is the root page of your site by default, and uses the special `home` layout from the theme. The `home` layout is generally only used by this index page, so that your homepage can have a unique feel and design. If you wish to change this layout, copy the file `_layouts/home.html` from the theme gem (or copy/download it from the Github repository for the theme gem) to your site's `~/my-jekyll-site/_layouts/home.html` file.
121
+ This index page is the root page of your site by default, and uses the special `home` layout from the Editorial theme. The `home` layout is generally only used by this site index page, so that your homepage can have a unique feel and design. If you wish to change this layout, copy the file `_layouts/home.html` from the theme gem (or copy/download it from the Github repository for the theme gem) to your site's `~/my-jekyll-site/_layouts/home.html` file.
123
122
 
124
123
  #### Aside: Finding the theme gem
125
124
 
@@ -170,6 +169,10 @@ scripts: # these scripts entries can be mov
170
169
  - file: comments.js
171
170
  ```
172
171
 
172
+ The Editorial theme convention is to keep image, script, and styling assets (as well as fonts) in separate subdirectories of the `/assets` directory, as defined by the three keys, `image_path`, `script_path`, and `style_path` above. You could set these to any paths you'd like (even setting them all to just `/assets/`), but remember that you'll need to move default assets from the theme gem into those folders, if you do make such changes.
173
+
174
+ The `scripts` key is an (ordered) array of script includes for every page in the site (placed at the end of the <abbr>HTML</abbr> `<head>` tag). `jquery.min.js` is of course the [jQuery](https://jquery.com/) library. The next 4 files provide basic interactivity and originates from the Editorial template by HTML5 UP. `email-obfuscation.js` provides utility functions to obfuscate and de-obfuscate email addresses for some light protection against email scraping and spam. `comments.js` provides interactivity for ([staticman](https://staticman.net/)-based) static comments (like form positioning and async response notification). These latter features will be documented separately.
175
+
173
176
  #### Change the site title/subtitle
174
177
 
175
178
  The title and subtitle of the site is configured by the site's `_config.yml` file, since this is usually a one-time configuration at the start of creating your site. Find this line in `_config.yml`:
@@ -178,7 +181,7 @@ The title and subtitle of the site is configured by the site's `_config.yml` fil
178
181
  title: Your awesome title
179
182
  ```
180
183
 
181
- and change it as you wish. Notice that the subtitle doesn't appear anywhere in this file. That's because it's inherited from the Editorial theme's configuration file, when the value is absent in your site's config file. Add the following line (typically, you'd place this right under the `title` key to group these together), changing the value as you desire:
184
+ and change it as you wish. Notice that the subtitle doesn't appear anywhere in this file (*if you're on Jekyll 4.0+*). That's because it's inherited from the Editorial theme's configuration file, when the value is absent in your site's config file. Add the following line (typically, you'd place this right under the `title` key to group these together), changing the value as you desire:
182
185
 
183
186
  ```yaml
184
187
  subtitle: by me and Middlebear
@@ -210,7 +213,10 @@ Features are simple components composed of an icon, a title, and some descriptiv
210
213
  icon: solid fa-gift
211
214
  ```
212
215
 
213
- Note that the `name` and `description` keys can incorporate html (but not Liquid filters/tags). The `icon` key is the class name(s) for the desired [Font Awesome](https://fontawesome.com/icons?d=gallery&m=free) icon. The free Font Awesome icons are divided into `regular`, `solid`, and `brand` variants. The `regular` icons need only a single class value (e.g., `fa-address-book`), but `solid` (e.g., `solid fa-address-book`) and `brand` (e.g., `brand fa-500px`) variants require adding `solid` or `brand` respectively to the class names for the `icon` key.
216
+ Note that the `name` and `description` keys can incorporate <abbr title="HyperText Markup Language">HTML</abbr> (but not Liquid filters/tags).
217
+
218
+ #### Using Font Awesome icon names
219
+ The `icon` key is the class name(s) for the desired [Font Awesome](https://fontawesome.com/icons?d=gallery&m=free) icon. The free Font Awesome icons are divided into `regular`, `solid`, and `brand` variants. The `regular` icons need only a single class value (e.g., `fa-address-book`), but `solid` (e.g., `solid fa-address-book`) and `brand` (e.g., `brand fa-500px`) variants require adding `solid` or `brand` respectively to the class names for the `icon` key.
214
220
 
215
221
  Now refresh the home page again, and you should see the 4 features you added show up in the Features section.
216
222
 
@@ -252,7 +258,7 @@ sidebar:
252
258
  identifier: signin
253
259
  ```
254
260
 
255
- Note that, for compatibility, this is the same basic format employed by the [jekyll-menus plugin](https://github.com/forestryio/jekyll-menus) plugin. However, the Editorial theme's basic menu system doesn't use the `weight` key for ordering entries as `jeyll-menus` does.
261
+ Note that, for compatibility, this is the same basic format (and file name) employed by the [jekyll-menus plugin](https://github.com/forestryio/jekyll-menus) plugin. However, the Editorial theme's basic menu system doesn't use the `weight` key for ordering entries as `jeyll-menus` does.
256
262
 
257
263
  Refresh the page, and you should now see the menu items populated under the "Menu" header. Since most of these pages don't yet exist at this point, they'll show the "404 Not Found" message.
258
264
 
@@ -406,9 +412,12 @@ Refreshing the page after saving this file should reveal a new set of social ico
406
412
 
407
413
  The introductory comments (text after `# `) provide configuration info for social icons. This list is used not only for the social icons in the site header, but also as templates for social links for people, posts, and pages elsewhere.
408
414
 
415
+ ### What about minima's `twitter_username` and `github_username`?
416
+ Jekyll's default theme, minima, defines two social media keys in the default `_config.yml` file: `twitter_username` and `github_username`. These two keys are not used by the Editorial theme, so at this point, you can keep them for flexibility or remove them to keep your site config file trim.
417
+
409
418
  ### Add the Elements page
410
419
 
411
- To view the site styling elements on a single page, save the following content into `_pages/elements.html`:
420
+ To view the site styling elements on a single page, save the following <abbr>HTML</abbr> content into `_pages/elements.html`:
412
421
 
413
422
  ```html
414
423
  ---
@@ -815,11 +824,11 @@ print 'It took ' + i + ' iterations to sort the deck.';
815
824
  </div>
816
825
  </div>
817
826
  ```
818
- To view the elements file in your browser, click the "Elements" link in the sidebar menu (`http://localhost:4000/elements`).
827
+ This <abrr>HTML</abbr> comes from the underlying Editorial template from HTML5 UP, and demonstrates the built-in styles available. To view the elements file in your browser, click the "Elements" link in the sidebar menu (`http://localhost:4000/elements`).
819
828
 
820
829
  ### Add site defaults to make posts render properly
821
830
 
822
- Because of a slight mismatch between HTML5 UP's CSS in the original Editorial HTML template and the default body classes assigned by Jekyll, we need to adjust some sitewide defaults to make posts render correctly. Although these preferences are set in the theme gem's `_config.yml` file, Jekyll doesn't use those defaults as "default defaults", so they must be replicated in your own site's configuration.
831
+ Because of a slight mismatch between HTML5 UP's <abbr title="Cascading Style Sheets">CSS</abbr> in the original Editorial <abbr>HTML</abbr> template and the default body classes assigned by Jekyll, we need to adjust some sitewide defaults to make posts render correctly. Although these preferences are set in the theme gem's `_config.yml` file, Jekyll doesn't use those defaults as "default defaults", so they must be replicated in your own site's configuration.
823
832
 
824
833
  With that in mind, add the following `defaults` key to you Jekyll site's `_config.yml` file:
825
834
 
@@ -848,15 +857,15 @@ defaults:
848
857
  comments: false
849
858
  published: true
850
859
  ```
851
- The only key of interest right now is `body_class` under the second entry's `values` key. This is set to `post` and will override jekyll's default body class of `posts`, giving us `<body class="post">` instead of `<body class="posts">` in the html of our post pages.
860
+ The only key of interest right now is `body_class` under the second entry's `values` key. This is set to `post` and will override jekyll's default body class of `posts`, giving us `<body class="post">` instead of `<body class="posts">` in the <abbr>HTML</abbr> of our post pages.
852
861
 
853
- Restart the Jekyll server and navigate your browser to the "Welcome to Jekyll!" post (should have a URL along the lines of `http://localhost:4000/jekyll/update/20yy/mm/dd/welcome-to-jekyll.html`) to see it properly styled.
862
+ Restart the Jekyll server and navigate your browser to the "Welcome to Jekyll!" post (should have a <abbr title="Uniform Resource Locator">URL</abbr> along the lines of `http://localhost:4000/jekyll/update/20yy/mm/dd/welcome-to-jekyll.html`) to see it properly styled.
854
863
 
855
864
  Notice also that the sidebar menu now lists the "Welcome to Jekyll!" post automatically under the "Recent Posts" menu item.
856
865
 
857
866
  #### Add the posts index page, and the pages collection
858
867
 
859
- To view a listing of posts once we have more than one, let's add a posts index page viewable at the relative URL `/posts/` in the browser. We employ a permalink and Jekyll's collections feature to achieve this desired routing. Create the page `~/my-jekyll-site/_pages/posts.html` (creating the `_pages` folder along the way if necessary):
868
+ To view a listing of posts once we have more than one, let's add a posts index page viewable at the relative <abbr>URL</abbr> `/posts/` in the browser. We employ a permalink and Jekyll's collections feature to achieve this desired routing. Create the page `~/my-jekyll-site/_pages/posts.html` (creating the `_pages` folder along the way if necessary):
860
869
 
861
870
  ```html
862
871
  ---
@@ -871,6 +880,7 @@ permalink: /posts/ # trailing slash makes it an `index.html` file ins
871
880
  {% include posts.html %}
872
881
  {% include pagination.html %}
873
882
  ```
883
+ This page is fairly straightforward. The page header is already included by the layout (`page` by default, set below in `_config.yml`) automatically, so we only need to include an intro paragraph and the posts list, sandwiched by pagination at the top and bottom of the page. We won't see pagination in action until later, when we discuss it specifically.
874
884
 
875
885
  We also need to tell Jekyll to output collection pages, so add the `collections` key to `_config.yml`:
876
886
 
@@ -1121,11 +1131,11 @@ For the `authors` key under the `show` key in `_config.yml`, replace `false` wit
1121
1131
  show: # series of switches to customize what appears on the site
1122
1132
  authors: true # single author blogs may want to disable showing the same author everywhere
1123
1133
  ```
1124
- Restart the Jekyll server and click on the "People" link (which now has 3 sub-items too!) in the sidebar menu. Oops... you'll see an unstyled HTML listing page. We'll fix that next. In the meantime, you should be able to click on the three people listed to see their author pages. Why 3 and not 4? Because one of them is not yet published.
1134
+ Restart the Jekyll server and click on the "People" link (which now has 3 sub-items too!) in the sidebar menu. Oops... you'll see an unstyled <abbr>HTML</abbr> listing page. We'll fix that next. In the meantime, you should be able to click on the three people listed to see their author pages. Why 3 and not 4? Because one of them is not yet published.
1125
1135
 
1126
1136
  ### Add the Authors index page
1127
1137
 
1128
- To provide a nice list of authors, we'll take advantage of the theme's `author.html` include, which provides a standard block list format for an author. We iterate through our `site.people` and generate this include for each published author. We set the pages `permalink` in the front matter to `/people/` so that it overrides the ugly HTML index page we saw earlier. Incidentally, if `site.show.authors` is set to `false`, then we'll just show a "404 Not Found" page instead.
1138
+ To provide a nice list of authors, we'll take advantage of the theme's `author.html` include, which provides a standard block list format for an author. We iterate through our `site.people` and generate this include for each published author. We set the pages `permalink` in the front matter to `/people/` so that it overrides the ugly <abbr>HTML</abbr> index page we saw earlier. Incidentally, if `site.show.authors` is set to `false`, then we'll just show a "404 Not Found" page instead.
1129
1139
 
1130
1140
 
1131
1141
  ```liquid
@@ -1239,7 +1249,7 @@ Then, after you save the `_config.yml` file, restart, and refresh the browser, y
1239
1249
 
1240
1250
  ### Add the Projects index page
1241
1251
 
1242
- Similar to what we did with authors, we'll use the theme's `projects.html` include to list out standard project blocks for the projects index page. We set the page's `permalink` in the front matter to `/projects/` so that it overrides the ugly default HTML index page. If there are no published projects, we'll just show a little message stating as much. Save this file as `_pages/projects.html` (not to be confused with `_includes/projects.html` which is provided by the Editorial theme gem).
1252
+ Similar to what we did with authors, we'll use the theme's `projects.html` include to list out standard project blocks for the projects index page. We set the page's `permalink` in the front matter to `/projects/` so that it overrides the ugly default <abbr>HTML</abbr> index page. If there are no published projects, we'll just show a little message stating as much. Save this file as `_pages/projects.html` (not to be confused with `_includes/projects.html` which is provided by the Editorial theme gem).
1243
1253
 
1244
1254
  ```liquid
1245
1255
  ---
@@ -1328,7 +1338,13 @@ location: "San Francisco, CA"
1328
1338
  website: https://jekyllrb.com/docs/home
1329
1339
  description: Let's make sure Google and company know enough about this page that it will pop up higher in search results
1330
1340
  ```
1331
- Refresh our blog post page, and you should see the page title is now linked (visually indicated with a superscripted link icon), a subtitle under it, and the location listed in the byline. The description field is purely for <abbr title="Search Engine Optimization">SEO</abbr> purposes, and can only be seen by viewing the source of the page (in the HTML HEAD section).
1341
+ Refresh our blog post page, and you should see the page title is now linked (visually indicated with a superscripted link icon), a subtitle under it, and the location listed in the byline. The description field is purely for <abbr title="Search Engine Optimization">SEO</abbr> purposes, and can only be seen by viewing the source of the page (in the <abbr>HTML</abbr> `<head>` section).
1342
+
1343
+ #### The `last_modified_at` date and the `canonical_url`
1344
+
1345
+ Note that we can also add an extra date on top of the explicitly set `date` field in the front matter, and Jekyll's implicitly-set post date from the file name (YYYY-MM-DD-filename.ext). When you update a post, you don't necessarily want to change its original post date, or implicitly change its (canonical) <abbr>URL</abbr> along with it.
1346
+
1347
+ This is a good place to note that the `canonical_url` value is only used if the `jekyll-seo-tag` plugin is active, and it only changes the canonical <abbr>URL</abbr> `<link>` value in the <abbr>HTML</abbr> `<head>`, not the actual <abbr>URL</abbr> of the page (you'd still do this via the `permalink` key). Its use is for when the content of the page appears at multiple <abbr>URL</abbr>s, to denote the most original, or canonical, version of the page. Some site builders may want to explicitly display a link to the canonical version of the page, but the Editorial theme doesn't currently do this automatically for you when there is a `canonical_url` value present.
1332
1348
 
1333
1349
  #### Adding a post to a series
1334
1350
 
@@ -1337,7 +1353,7 @@ Sometimes you want to group a few posts together as a series of posts in a way t
1337
1353
  ```yaml
1338
1354
  series: "build-a-blog"
1339
1355
  ```
1340
- Now refresh the blog post page in your browser and you should see a new series sidebar appear on the right. Note that you don't have to "slugify" the series name. This sames series name just happens to be that way.
1356
+ Now refresh the blog post page in your browser and you should see a new series sidebar appear on the right. Note that you don't have to "slugify" the series name. This sample series name just happens to be that way, to show that series names are unslugified and capitalized on display. This is useful if you have multiple series with the same name, but don't want them all grouped together, by making the names unique using only dashes and capitalization to create the illusion of multiple series with the same name.
1341
1357
 
1342
1358
  ### Adding a post image
1343
1359
 
@@ -1354,7 +1370,7 @@ Save the changes and then refresh our blog post page to see a nice, and possibly
1354
1370
 
1355
1371
  #### Adding alt text, title, and caption
1356
1372
 
1357
- Because HTML images have some textual metadata often attached to them, the Editorial theme introduces these extra fields for the common image metadata in the post's front matter:
1373
+ Because <abbr>HTML</abbr> images have some textual metadata often attached to them, the Editorial theme introduces these extra fields for the common image metadata in the post's front matter:
1358
1374
 
1359
1375
  ```yaml
1360
1376
  alt_text: "The Jekyll logo, featuring stylized script and a test tube filled with red, bubbling liquid"
@@ -1418,7 +1434,7 @@ You'll notice that you can customize the metadata for each image along with the
1418
1434
 
1419
1435
  #### Missing image
1420
1436
 
1421
- Note that if you happen to misspell the name of your image in the front matter config, you'll get a helpful "Missing image" message with the file name and image title in a box instead of the image that Jekyll couldn't find during build.
1437
+ Note that if you happen to misspell the name of your image in the front matter config, you'll get a helpful "Missing image" message on the rendered page with the file name and image title in a box instead of a broken/missing image that Jekyll couldn't find during build.
1422
1438
 
1423
1439
  ### Multiple posts and post navigation
1424
1440
 
@@ -1499,7 +1515,7 @@ If you want to link to your Github Pages site instead, you could, for instance,
1499
1515
 
1500
1516
 
1501
1517
  ##### Font Awesome Icons
1502
- The `icon` entry is the Font Awesome icon to be used, expressed as CSS class(es). It's likely Font Awesome already has an existing brand icon for the social media site, in which case, keep the `brands` value in this class list. You should always keep the `icon` class in the `icon` entry, so the resultant icon is rendered consistently.
1518
+ The `icon` entry is the Font Awesome icon to be used, expressed as <abbr>CSS</abbr> class(es). It's likely Font Awesome already has an existing brand icon for the social media site, in which case, keep the `brands` value in this class list. You should always keep the `icon` class in the `icon` entry, so the resultant icon is rendered consistently.
1503
1519
 
1504
1520
  You can also add new entries, like for a fictitious WhatsIt App:
1505
1521
 
@@ -1560,7 +1576,7 @@ TODO
1560
1576
  TODO
1561
1577
 
1562
1578
  ### Banner
1563
- One neat little trick buried in the CSS is the selective removal of `<br>` line breaks from the `h1` header of the `#banner` secion of a page. That's most prominently used on the sample home page, where there is a line break between "Editorial" and "by", which forces a particular spacing on large screens, where the header is beside the image, but gets removed on small (vertically-oriented) screens, where the header is below the image.
1579
+ One neat little trick buried in the <abbr>CSS</abbr> is the selective removal of `<br>` line breaks from the `h1` header of the `#banner` secion of a page. That's most prominently used on the sample home page, where there is a line break between "Editorial" and "by", which forces a particular spacing on large screens, where the header is beside the image, but gets removed on small (vertically-oriented) screens, where the header is below the image.
1564
1580
 
1565
1581
  ### Navigation
1566
1582
  The site navigation menu will auto-generate based on the contents of the `menus.yml` data file and the pages, posts, and projects you add to the site. By default, the menu will list the last 10 items for each type. It will also have links to each category page, a link to the tag index page, about, privacy, and terms.
@@ -1609,7 +1625,7 @@ Bug reports and pull requests are welcome on [GitHub](https://github.com/middleb
1609
1625
  The Editorial Jekyll theme is available as open source under the terms of the [CC BY 3.0 License](https://creativecommons.org/licenses/by/3.0/).
1610
1626
 
1611
1627
  ### [HTML5 UP](https://html5up.net) Credits
1612
- * HTML template: [AJ](mailto:"AJ" <aj@lkn.io>) | [🐦](https://twitter.com/ajlkn)<br> Free for personal and commercial use under the [CCA 3.0 license](https://html5up.net/license).
1628
+ * <abbr>HTML</abbr> template: [AJ](mailto:"AJ" <aj@lkn.io>) | [🐦](https://twitter.com/ajlkn)<br> Free for personal and commercial use under the [CCA 3.0 license](https://html5up.net/license).
1613
1629
  * Demo Images: [Unsplash](unsplash.com)
1614
1630
  * Icons: [Font Awesome](fontawesome.io)
1615
1631
  * Other: [jQuery](jquery.com), [Responsive Tools](https://github.com/ajlkn/responsive-tools)
@@ -28,8 +28,10 @@ date_format: # optional; set the way dates are
28
28
  ###################
29
29
  # Build settings
30
30
  ###################
31
- theme: jekyll-theme-editorial # this theme! =)
32
- permalink: /:collection/:title:output_ext # NOTE: changing this default hasn't been tested
31
+ theme: jekyll-theme-editorial # this theme! =)
32
+ remote_theme: middlebear/jekyll-theme-editorial # only needed on github pages, which automatically compiles jekyll for you
33
+ # remote_theme: middlebear/jekyll-theme-editorial@0.1.0 # to lock to a given version - https://github.com/benbalter/jekyll-remote-theme
34
+ permalink: /:collection/:title:output_ext # NOTE: changing this default hasn't been tested
33
35
  # lsi: true # provides related posts functionality using classifier-reborn - unsupported by github pages
34
36
 
35
37
 
@@ -96,7 +98,7 @@ analytics:
96
98
  goatcounter: # goatcounter for personal websites is free
97
99
  code: # required if using goatcounter for stats; leave blank otherwise
98
100
  allow_local: false # set `true` to test analytics locally, otherwise stats won't be sent from localhost to goatcounter
99
- staticman_url: # https://{{bridge_app_name}}.herokuapp.com/v2/entry/{{github-username}}/{{blog-repo}}/{{branch}}/comments
101
+ staticman_url: # the URL for the staticman API bridge endpoint: https://{{bridge_app_name}}.herokuapp.com/v2/entry/{{github-username}}/{{blog-repo}}/{{branch}}/comments
100
102
  search: # site search parameters; NOTE: untested for now
101
103
  url: # default: "/search"; where the search form POSTs to
102
104
  form_method: # default: "post"; typically "post" or "get"--how the search form gets submitted
@@ -210,14 +212,6 @@ feed:
210
212
  jekyll-mentions: /people
211
213
 
212
214
 
213
- ###################
214
- # Remote Theme - https://github.com/benbalter/jekyll-remote-theme
215
- # only needed on github pages, which automatically compiles jekyll for you
216
- ###################
217
- remote_theme: middlebear/jekyll-theme-editorial
218
- # remote_theme: middlebear/jekyll-theme-editorial@0.1.0 # to lock to a given version
219
-
220
-
221
215
  ###################
222
216
  # Jekyll Paginate - https://jekyllrb.com/docs/pagination/
223
217
  ###################
@@ -16,10 +16,10 @@ sidebar:
16
16
  title: Recent Posts
17
17
  identifier: posts
18
18
  weight: 20
19
- # - url: /archives
20
- # title: Archives
21
- # identifier: archives
22
- # weight: 21
19
+ - url: /archives
20
+ title: Archives
21
+ identifier: archives
22
+ weight: 21
23
23
  - url: /categories
24
24
  title: Categories
25
25
  identifier: categories
@@ -1,6 +1,6 @@
1
1
  {%-assign archived = site.jekyll-archives.enabled-%}
2
2
  {%-if archived contains 'year' or archived contains 'month' or archived contains 'day'-%}
3
- {%-assign archives_menu = site.data.navigation | find: "identifier", "archives"-%}
3
+ {%-assign archives_menu = site.data.navigation | where: "identifier", "archives" | first-%}
4
4
  {%-assign posts_by_year = site.posts | group_by_exp: "post", "post.date | date: '%Y'"-%}
5
5
  {%-assign years = posts_by_year | map: 'name'-%}
6
6
  {%-assign firsts = "1,21,31" | split: ','-%}
@@ -15,28 +15,29 @@
15
15
  {% elsif site.email and site.show.email_address-%}
16
16
  <li class="icon solid fa-envelope"><a href="mailto:{{-site.email-}}" class="u-email" title="{{-email_title-}}">{{-site.email-}}</a></li>
17
17
  {%-endif-%}
18
- {% if site.contact.phone-%}
18
+ {% if site.contact.phone != blank-%}
19
19
  <li class="icon solid fa-phone p-tel">{{-site.contact.phone-}}</li>
20
20
  {%-endif-%}
21
- {% if site.contact.address-%}
21
+ {% unless site.contact.address.line1 == blank and site.contact.address.line2 == blank and site.contact.address.line3 == blank and site.contact.address.city == blank and site.contact.address.state == blank and site.contact.address.zipcode == blank-%}
22
22
  <li class="icon solid fa-home p-adr h-adr">
23
23
  <address>
24
- {% if site.contact.address.line1-%}
24
+ {% if site.contact.address.line1 != blank-%}
25
25
  <span class="p-street-address">{{ site.contact.address.line1 }}</span><br />
26
26
  {%-endif-%}
27
- {% if site.contact.address.line2 or site.contact.address.line3-%}
27
+ {% unless site.contact.address.line2 == blank and site.contact.address.line3 == blank-%}
28
28
  <span class="p-extended-address">
29
29
  {{-site.contact.address.line2 }}
30
- {%-if site.contact.address.line3-%}{{ site.contact.address.line3 | prepend: "<br />" }}{%-endif-%}
30
+ {%-if site.contact.address.line2 != blank and site.contact.address.line3 != blank-%}<br />{%-endif-%}
31
+ {{ site.contact.address.line3-}}
31
32
  </span><br />
32
- {%-endif-%}
33
- {% if site.contact.address.city or site.contact.address.state or site.contact.address.zipcode-%}
33
+ {%-endunless-%}
34
+ {% unless site.contact.address.city == blank and site.contact.address.state == blank and site.contact.address.zipcode == blank-%}
34
35
  <span class="p-locality">{{ site.contact.address.city }}</span>
35
36
  <span class="p-region">{{ site.contact.address.state }}</span>
36
37
  <span class="p-postal-code">{{-site.contact.address.zipcode-}}</span><br />
37
- {%-endif %}
38
+ {%-endunless %}
38
39
  </address>
39
40
  </li>
40
- {% endif-%}
41
+ {% endunless-%}
41
42
  </ul>
42
43
  </section> <!-- End Section - Contact -->
@@ -2,5 +2,5 @@
2
2
  Placeholder to allow defining custom head, including analytics; in principle, you can add anything here, e.g. favicons:
3
3
 
4
4
  1. Head over to https://realfavicongenerator.net/ to add your own favicons.
5
- 2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet.
5
+ 2. Customize default _includes/custom_head.html in your source directory and insert the given code snippet.
6
6
  {% endcomment %}
@@ -15,7 +15,7 @@ local:
15
15
 
16
16
  <ul class="inline csv authors">
17
17
  {%-for auth in authors-%}
18
- {%-assign author = site.people | find: 'handle', auth-%}
18
+ {%-assign author = site.people | where: 'handle', auth | first-%}
19
19
  {%-if author.published-%}
20
20
  <li>{{-author.name-}}</li>
21
21
  {%-elsif auth-%}
@@ -1,5 +1,5 @@
1
1
  {%-assign item_limit = include.item_limit | default: 12-%}
2
- {%-assign peeps = site.collections | find: "label", 'people'-%}
2
+ {%-assign peeps = site.collections | where: "label", 'people' | first-%}
3
3
 
4
4
  {%-if site.menus != nil and site.plugins contains 'jekyll-menus' %}
5
5
  {% comment-%} the following version of the menu depends on jekyll-menus {%-endcomment-%}
@@ -1,5 +1,5 @@
1
1
  {%-assign published_projects = site.projects | where: 'published', true-%}
2
- {%-assign project_menu = site.data.menus.sidebar | find: 'identifier', 'projects'-%}
2
+ {%-assign project_menu = site.data.menus.sidebar | where: 'identifier', 'projects' | first-%}
3
3
  {%-if published_projects != empty %}
4
4
  <!-- Section - Mini-posts -->
5
5
  <section>
@@ -1,4 +1,4 @@
1
- {%-assign peeps = site.collections | find: "label", 'people'-%}
1
+ {%-assign peeps = site.collections | where: "label", 'people' | first-%}
2
2
  {%-assign authors = include.author | default: page.author-%}
3
3
  {%-assign page_title = include.page_title | default: page.title-%}
4
4
  {%-assign subtitle = include.subtitle | default: page.subtitle-%}
@@ -43,7 +43,7 @@ local:
43
43
  <p class="byline">
44
44
  {%-if site.show.authors %}
45
45
  {%-for auth in pg.author-%}
46
- {%-assign author = site.people | find: 'handle', auth-%}
46
+ {%-assign author = site.people | where: 'handle', auth | first-%}
47
47
  {%-if author.published and author.url-%}
48
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
49
  {%-elsif author.published-%}
@@ -13,8 +13,8 @@ layout: default
13
13
 
14
14
  {% assign formatted_date = page.date | date: date_format %}
15
15
  {% assign title = formatted_date | append: ' Archives' %}
16
- {%-assign projects = site.projects | where_exp: 'project', 'project.date == formatted_date and project.published == true'-%}
17
- {%-assign pages = site.pages | where_exp: 'pg', 'pg.date == formatted_date and pg.published == true'-%}
16
+ {%-assign projects = site.projects | where_exp: "project", "project.date == formatted_date" | where: "published", "true"-%}
17
+ {%-assign pages = site.pages | where_exp: "pg", "pg.date == formatted_date" | where: "published", "true"-%}
18
18
 
19
19
  <section>
20
20
  {% include page_header.html page_title=title %}
@@ -3,8 +3,9 @@ layout: default
3
3
  ---
4
4
 
5
5
  {%-assign title = page.title | default: page.category | capitalize | prepend: 'Filed under "' | append: '"'-%}
6
- {%-assign projects = site.projects | where_exp: 'project', 'project.categories contains page.title and project.published == true'-%}
7
- {%-assign pages = site.pages | where_exp: 'pg', 'pg.categories contains page.title and pg.published == true'-%}
6
+ {%-assign projects = site.projects | where_exp: "project", "project.categories contains page.title" | where: "published", "true"-%}
7
+ {%-assign pages = site.pages | where_exp: "pg", "pg.categories contains page.title" | where: "published", "true"-%}
8
+
8
9
 
9
10
  <section>
10
11
  {% include page_header.html page_title=title %}
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  layout: default
3
+ excerpt: "" # NOTE: this empty excerpt fixes liquid "'if' tag was never closed included" error: https://jekyllrb.com/docs/troubleshooting/#excerpts
3
4
  ---
4
5
 
5
6
  {%-assign title = page.title | default: page.tag | prepend: 'Tagged "' | append: '"'-%}
6
- {%-assign projects = site.projects | where_exp: 'project', 'project.tags contains page.title and project.published == true'-%}
7
- {%-assign pages = site.pages | where_exp: 'pg', 'pg.tags contains page.title and pg.published == true'-%}
7
+ {%-assign projects = site.projects | where_exp: "project", "project.tags contains page.title" | where: "published", "true"-%}
8
+ {%-assign pages = site.pages | where_exp: "pg", "pg.tags contains page.title" | where: "published", "true"-%}
8
9
 
9
10
  <section>
10
11
  {% include page_header.html page_title=title %}
@@ -38,8 +38,8 @@ excerpt: "" # NOTE: this empty excerpt fixes liquid "'if' tag was
38
38
  {%-for year in posts_by_year %}
39
39
  {%-assign year_url = site.jekyll-archives.permalinks.year | replace: ':year', year.name-%}
40
40
  {%-comment-%}
41
- {%-assign year_projects = projects_by_year | find: 'name', year.name-%}
42
- {%-assign year_pages = pages_by_year | find: 'name', year.name-%}
41
+ {%-assign year_projects = projects_by_year | where: 'name', year.name | first-%}
42
+ {%-assign year_pages = pages_by_year | where: 'name', year.name | first-%}
43
43
  {%-endcomment-%}
44
44
  <h2{%-if is_year_archive %} class="tight"{%-endif-%}>
45
45
  {% if archives_available and archived contains 'year'-%}
@@ -59,8 +59,8 @@ excerpt: "" # NOTE: this empty excerpt fixes liquid "'if' tag was
59
59
  {%-assign month_name = month.name | date: '%m'-%}
60
60
  {%-assign month_url = site.jekyll-archives.permalinks.month | replace: ':year', year.name | replace: ':month', month_name-%}
61
61
  {%-comment-%}
62
- {%-assign month_projects = projects_by_month | find: 'name', month.name-%}
63
- {%-assign month_pages = pages_by_month | find: 'name', month.name-%}
62
+ {%-assign month_projects = projects_by_month | where: 'name', month.name | first-%}
63
+ {%-assign month_pages = pages_by_month | where: 'name', month.name | first-%}
64
64
  {%-endcomment-%}
65
65
  <h3 class="tight">
66
66
  {% if archives_available and archived contains 'month'-%}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-editorial
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Middle Bear
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-06 00:00:00.000000000 Z
11
+ date: 2020-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll