Commit graph

49 commits

Author SHA1 Message Date
Michael Rose
c6f10529a4
Refactor page meta (#2641)
* Rename include

* Add grid view test pages

* Rename `.post__meta-sep` and use CSS to add line break

* Improve collection grid archive

* Improve page grid archive

* Enable `grid`

* Don't show date icon if there is no `date` value

* Add blank line at EOF

* Add space

* Wrap date and reading time in named `span` elements
2020-08-30 20:52:12 -04:00
Lim Jing Heng
f15e02ea58
Show date of posts (#2526)
* add date to read-time.html

* add option for show_date, dynamic icon style

* change read-time to post__meta

* cleanup post__metal.html

* cleanup post__meta include variables

* put date before read time

* remove space in include variable

* allow customisation of post__meta separator

* add some documentation

* oops fix typo derp

* add post date image

* change page meta separator customisation to CSS
2020-08-04 10:39:01 -04:00
Lars Olesen
875dbdefb8
Move page date to own file (#2544) 2020-06-02 22:22:56 -04:00
iBug ♦
f331584125 Use %-d instead of %d (#2359) 2020-01-07 12:38:08 -05:00
Eloi Perdereau
af528d49ce Fix schema.org dates to ISO-8601 (#2339)
* Fix schema.org dates to ISO-8601

* Revert date_to_xmlschema in <time> tag
2019-12-19 11:35:35 -05:00
Michael Rose
b5b8c45530 Fix missing fallback title for table of contents 2019-06-27 19:00:23 -04:00
Justin Rummel
82e9aee6a8 Change remaining schema.org markup to https (#1978) 2018-11-27 09:07:51 -05:00
Mike Mylonakis
319a74621b Prevent current post from showing in the "You may also enjoy" (related (#1976)
posts) section
2018-11-25 20:54:44 -05:00
Michael Rose
3b77428c49 Allow heading levels 1-6 in table of contents
Adjust minimum and maximum levels to allow all headings and fix CSS to style indentation and nested lists properly in jekyll-toc and Kramdown generated table of contents.

Fixes #1782
2018-08-15 09:34:45 -04:00
Michael Rose
f0f5dded48 Add toc_sticky to stick table of contents
"Stick" table of contents to top of the page by adding:

```
toc: true
toc_sticky: true
```

to a post or page's YAML Front Matter.
Note: only supported with `single` layout.
2018-05-31 10:22:02 -04:00
Michael Rose
2463b55c4c Add id to page title 2018-03-20 12:38:54 -04:00
Michael Rose
588a044986 Convert EOL sequence to LF 2018-03-06 16:12:46 -05:00
Michael Rose
3e922ddf58
Upgrade Font Awesome to version 5 (#1446)
Upgrade Font Awesome to version 5 (SVG with JavaScript)

Close #1396
2018-01-04 14:27:27 -05:00
Maaz Syed Adeeb
1b3cc608bb Remove comments in dev environment (#1363) 2017-11-27 12:12:22 -05:00
Michael Rose
866fb17d9e Toggle table of contents via front matter (#1310)
* Add jekyll-toc include
* Reduce whitespace generated by comments
* Add table of contents include to `single` layout
* Replace `toc` include with jekyll-toc enabled YAML Front Matter
* Update README
* Update table of contents documentation
  - Revise `toc` helper include to mention that it will be deprecated in the next major version.
  - Add documentation to `single` layout explaining how to enable table of contents on those pages.
* Update CHANGELOG and history
* Update LICENSE

Close #1222
2017-10-20 14:54:06 -04:00
Michael Rose
93c4fbc4b9 Color "skins" (#1242)
* Add YIQ Color Contrast mixin
* Remove text underline from `.btn` links
* Move YIQ variables
* Simplify button classes using YIQ color contrast mixin
  - DRY up button CSS using Sass list and YIQ color contrast mixin.
  - Move `color` and `background-color` to new `btn--primary` class instead of assinging on the default class. Removes the need to override them.
* Add `.btn--primary` to buttons that just had `.btn`
* Apply changes to `/docs`
* Add `.btn--primary` class
* Update CHANGELOG and history
* Add sample form
* Abstract colors away into Sass variables for easier themeing
* Add "dark" skin
* Replace hardcoded color with SCSS variable
* Invert Font Awesome icons' colors in author sidebar and footer
* Add Sass changes to `/docs`
* Use primary button type instead of inverse
* Add missing `!default` on `$muted-text-color`
* Add `contrast` and `sunrise` skin colors
* Add `dirt` skin color
* Add `air` skin color option
* Add `mint` skin color
* Add `btn--primary` class to Submit Comment button
* Set skin to `default`
* Document skin color options
* Add note about skin SCSS import

Close #1208
2017-09-12 12:01:43 -04:00
Michael Rose
2080469952 Show 4 latest posts when site.related_posts is nil
`site.related_posts` should return an array of latest posts when no related ones are found due to `lsi` being disabled (GitHub Page's doesn't support it).

This works around that bug by showing the 4 latest posts to populate the "You May Also Enjoy" module when enabled with `related: true`.

Fixes #554
Related: #978 #1022
2017-09-05 13:02:37 -04:00
Sebastian Wiesner
cf4f8277c1 Replace modified with last_modified_at (#930)
Fixes #929
2017-04-04 09:12:32 -04:00
Nicolas Cavigneaux
958b399741 Remove buggy conditional around related posts header (#901)
This removes a buggy conditional that checks if `related_label` is
available in translations before displaying the header for related
posts but this header already handle missing translation by using a
default string.

With this fix the header is displayed even if the translation for this
label isn't available.

Fix #900
2017-03-16 10:21:13 -04:00
Justin Too
65a6654582 Add page hero video for vimeo/youtube using embedresponsively.com code (#788) 2017-01-24 09:29:34 -05:00
Michael Rose
c3c0fc3f51 Replace base_path with absolute_url filter where possible 2016-10-06 15:40:30 -04:00
Vincent Chu
0d6816e770 Fix Liquid syntax error for offending parentheses
Liquid Warning: Liquid syntax error (line 3): Expected dotdot but found id in "(page.header.overlay_color or page.header.overlay_image) or page.header.image" in /_layouts/single.html
Liquid Warning: Liquid syntax error (line 1): Expected dotdot but found id in "(page.header.overlay_color or page.header.overlay_image) or page.header.image" in /_layouts/archive.html
Liquid Warning: Liquid syntax error (line 3): Expected dotdot but found id in "(page.header.overlay_color or page.header.overlay_image) or page.header.image" in /_layouts/splash.html
2016-08-25 13:20:38 -04:00
Michael Rose
cc0b266541 Add en default text to site.locale strings
- Close #407
2016-07-29 12:16:53 -04:00
Michael Rose
55efbd1782 Make page.title conditional in <h1>
- Fix #312
2016-05-16 09:42:16 -04:00
Michael Rose
a473d9467d Disable breadcrumbs on paginated home pages 2016-04-14 14:36:48 -04:00
Michael Rose
8115e439b2 Remove site.share conditional 2016-04-07 20:45:24 -04:00
Michael Rose
add3811ba7 Remove site.read_time condition 2016-04-07 16:25:50 -04:00
Michael Rose
1e53e7fca2 Allow breadcrumbs to be enabled with non-Jekyll Archives plugin 2016-04-07 16:05:17 -04:00
Michael Rose
803096d9fa Add icons to page meta labels (tags, categories, and date) 2016-04-03 21:35:53 -04:00
Michael Rose
85fb0d0283 Style tweaks to pagination, right sidebar, and background color 2016-03-29 23:13:00 -04:00
Michael Rose
cae92a8770 Add header overlay sample posts 2016-03-23 21:50:22 -04:00
Michael Rose
3663ba897a Create includes for greater layout flexibility 2016-03-23 12:56:23 -04:00
Michael Rose
f029ce6e25 Add reading time to archive layout and include icon 2016-03-22 22:28:12 -04:00
Michael Rose
bf4bf6ed82 Add optional reading time to single _layout 2016-03-21 21:42:55 -04:00
Michael Rose
d5ce1b2226 Simplify styling 2016-03-19 21:50:18 -04:00
Michael Rose
109f4ffb44 DRY up archive include
- Combine grid and list view into one include
2016-03-19 20:58:17 -04:00
Michael Rose
eb2f3d052a Create grid styling for related posts module
- Add default teaser image
- Disable image watch gulp task
2016-03-18 15:07:02 -04:00
Michael Rose
266f87d5ab Customizable comments label 2016-03-17 22:55:13 -04:00
Michael Rose
5d9e0af805 More style cleanup and housekeeping 2016-03-11 15:55:06 -05:00
Michael Rose
4427cf4c8e Add page taxonomy links for tags and categories
- Customizable text via _data file
- Enable/disable links by setting archive page filenames in _config.yml
2016-03-10 21:53:28 -05:00
Michael Rose
f63b8fe294 Add file extensions back to non-helper _includes 2016-03-10 21:13:01 -05:00
Michael Rose
8d046af7a9 Continue to refine styles and layouts 2016-03-10 13:06:59 -05:00
Michael Rose
caefcce729 Cleanup SCSS 2016-03-10 11:13:54 -05:00
Michael Rose
feb504592c Remove locale hash to shorten Liquid variable names 2016-03-09 20:49:17 -05:00
Michael Rose
ea8fb6fe33 Add support for localizing UI text with a _data file 2016-03-09 16:33:27 -05:00
Michael Rose
455067a000 Add option to disable social sharing globally 2016-03-07 11:48:25 -05:00
Michael Rose
9164c5053d Add more analytics and commenting options 2016-03-07 11:29:35 -05:00
Michael Rose
3bd495f1d4 Remove extensions from _includes to simplify naming 2016-03-07 10:27:07 -05:00
Michael Rose
0665dccffb Rename post.html _layout to single 2016-03-06 21:11:27 -05:00
Renamed from _layouts/post.html (Browse further)