Compare commits

..
19 Commits
Author SHA1 Message Date
Michael Rose e122808ad6 Merge branch 'release/3.3.3' 2016-07-20 16:10:30 -04:00
Michael Rose 21166c14ee Update CHANGELOG and bump version to 3.3.3 2016-07-20 16:10:16 -04:00
Michael Rose 2d818cc8d1 Fix gallery size bug
-  Improperly evaluated size of gallery arrays as strings and not integers
- Close #402
2016-07-20 16:05:31 -04:00
Michael Rose 9a9cbc01e3 Make footer stick to the bottom of the page
- Use JavaScript to determine height of `.page_footer` to apply padding to `body` avoiding any content overlap
- Absolute position `.page_footer` to bottom of the page
2016-07-20 09:10:37 -04:00
Michael Rose fc0f8f5b1d Set default lang to en 2016-07-15 10:27:30 -04:00
Michael Rose e01b0f464e Merge branch 'hotfix/3.3.2' into develop 2016-07-14 12:01:09 -04:00
Michael Rose 5ed2ded1d7 Merge branch 'hotfix/3.3.2' 2016-07-14 12:01:04 -04:00
Michael Rose 22c289cb32 Update CHANGELOG and bump version to 3.3.2
- Close #396
2016-07-14 12:00:49 -04:00
Matthew Aguirre 97c081eb22 Updated main.min.js 2016-07-14 10:26:14 -04:00
Matthew Aguirre cd79ac9a64 Fixed condition that should be notted. 2016-07-14 10:24:10 -04:00
Matthew Aguirre e5147f8de9 Fixed overlay when 'author__urls-wrapper button' is not present. 2016-07-14 10:13:08 -04:00
Michael Rose 14e72d04b9 Merge branch 'release/3.3.1' into develop 2016-07-11 14:15:38 -04:00
Michael Rose 2a670aaf4d Merge branch 'release/3.3.1' 2016-07-11 14:15:33 -04:00
Michael Rose aa36c026a2 Update CHANGELOG and bump version to 3.3.1 2016-07-11 14:14:42 -04:00
Michael Rose 89a44dc057 Improve link posts in archive listings
- Remove `target="_blank"` anti-pattern
- If link post point title to source article
- Switch star icon to a link to indicate "permalink" and markup semantically with `rel="permalink"`
- Reduce opacity of permalink icon
- Adjust hover styles due to shuffling around <a> element
- Close #276
2016-07-11 13:02:59 -04:00
Michael Rose 6d31ffe4ab Indicate the relationship between component URLs in a paginated series
- Apply rel="prev" and rel="next" to pages that use site.paginator
- Ref ~> https://webmasters.googleblog.com/2011/09/pagination-with-relnext-and-relprev.html
- Close #253
2016-07-11 11:56:09 -04:00
Michael Rose 54a8646901 Enable image popup on < 500px wide screens
- Close #385
2016-07-07 09:53:25 -04:00
Michael Rose cda165d5ea Update gems
- Update github-pages (86), ffi 1.9.13, jekyll-mentions 1.1.3, and rouge 1.11.1
2016-07-07 09:45:59 -04:00
Michael Rose 2317c1eecb Merge branch 'release/3.2.13' into develop 2016-07-01 12:58:56 -04:00
13 changed files with 139 additions and 61 deletions
+38 -5
View File
@@ -1,6 +1,39 @@
## [3.3.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.3.3)
### Enhancements
- Make footer stick to the bottom of the page.
### Bug Fixes
- Fix `gallery` size bug [#402](https://github.com/mmistakes/minimal-mistakes/issues/402)
### Maintenance
- Set default `lang` to `en`.
## [3.3.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.3.2)
### Bug Fixes
- Fix JavaScript that triggers "sticky" sidebar to avoid layout issues on screen sizes < `1024px`. [#396](https://github.com/mmistakes/minimal-mistakes/issues/396)
## [3.3.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.3.1)
### Enhancements
- Enable image popup on < 500px wide screens. [#385](https://github.com/mmistakes/minimal-mistakes/issues/385)
- Indicate the relationship between component URLs in a paginated series by applying `rel="prev"` and `rel="next"` to pages that use `site.paginator`. [#253](https://github.com/mmistakes/minimal-mistakes/issues/253)
- Improve link posts in archive listings. [#276](https://github.com/mmistakes/minimal-mistakes/issues/276)
### Maintenance
- Update gems: `github-pages` (86), `ffi` 1.9.13, `jekyll-mentions` 1.1.3, and `rouge` 1.11.1
- Fix note about custom sidebar content appearing below author profile. [#388](https://github.com/mmistakes/minimal-mistakes/issues/388)
## [3.2.13](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.13) ## [3.2.13](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.13)
### Enhancement ### Enhancements
- Add English default UI text for Canada, Great Britain, and Australia. [#377](https://github.com/mmistakes/minimal-mistakes/issues/377) - Add English default UI text for Canada, Great Britain, and Australia. [#377](https://github.com/mmistakes/minimal-mistakes/issues/377)
- Switch default locale from `en-US` to `en`. - Switch default locale from `en-US` to `en`.
@@ -100,13 +133,13 @@
## [3.2.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.3) ## [3.2.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.3)
### Enhancement ### Enhancements
- Add [Discourse](https://www.discourse.org/) as a commenting provider. [#335](https://github.com/mmistakes/minimal-mistakes/pull/335) - Add [Discourse](https://www.discourse.org/) as a commenting provider. [#335](https://github.com/mmistakes/minimal-mistakes/pull/335)
## [3.2.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.2) ## [3.2.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.2)
### Enhancement ### Enhancements
- Add support for image captions in Magnific Popup overlays via the [`gallery`](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#gallery) helper. [#334](https://github.com/mmistakes/minimal-mistakes/issues/334) - Add support for image captions in Magnific Popup overlays via the [`gallery`](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#gallery) helper. [#334](https://github.com/mmistakes/minimal-mistakes/issues/334)
@@ -140,7 +173,7 @@
## [3.1.7](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.7) ## [3.1.7](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.7)
### Enhancement ### Enhancements
- Add translation key for "Recent Posts" used in home page `index.html`. [#316](https://github.com/mmistakes/minimal-mistakes/pull/316) - Add translation key for "Recent Posts" used in home page `index.html`. [#316](https://github.com/mmistakes/minimal-mistakes/pull/316)
@@ -183,7 +216,7 @@
## [3.1.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.2) ## [3.1.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.2)
### Enhancement ### Enhancements
- Explain how to use `nav_list` helper in [documentation](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list). - Explain how to use `nav_list` helper in [documentation](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list).
- Reduce left/right padding on smaller screens to increase width of main content column. - Reduce left/right padding on smaller screens to increase width of main content column.
+7 -7
View File
@@ -18,17 +18,17 @@ GEM
execjs (2.7.0) execjs (2.7.0)
faraday (0.9.2) faraday (0.9.2)
multipart-post (>= 1.2, < 3) multipart-post (>= 1.2, < 3)
ffi (1.9.10) ffi (1.9.13)
ffi (1.9.10-x64-mingw32) ffi (1.9.13-x64-mingw32)
gemoji (2.1.0) gemoji (2.1.0)
github-pages (84) github-pages (86)
github-pages-health-check (= 1.1.0) github-pages-health-check (= 1.1.0)
jekyll (= 3.1.6) jekyll (= 3.1.6)
jekyll-coffeescript (= 1.0.1) jekyll-coffeescript (= 1.0.1)
jekyll-feed (= 0.5.1) jekyll-feed (= 0.5.1)
jekyll-gist (= 1.4.0) jekyll-gist (= 1.4.0)
jekyll-github-metadata (= 2.0.2) jekyll-github-metadata (= 2.0.2)
jekyll-mentions (= 1.1.2) jekyll-mentions (= 1.1.3)
jekyll-paginate (= 1.1.0) jekyll-paginate (= 1.1.0)
jekyll-redirect-from (= 0.10.0) jekyll-redirect-from (= 0.10.0)
jekyll-sass-converter (= 1.3.0) jekyll-sass-converter (= 1.3.0)
@@ -39,7 +39,7 @@ GEM
liquid (= 3.0.6) liquid (= 3.0.6)
listen (= 3.0.6) listen (= 3.0.6)
mercenary (~> 0.3) mercenary (~> 0.3)
rouge (= 1.10.1) rouge (= 1.11.1)
terminal-table (~> 1.4) terminal-table (~> 1.4)
github-pages-health-check (1.1.0) github-pages-health-check (1.1.0)
addressable (~> 2.3) addressable (~> 2.3)
@@ -68,7 +68,7 @@ GEM
jekyll-github-metadata (2.0.2) jekyll-github-metadata (2.0.2)
jekyll (~> 3.1) jekyll (~> 3.1)
octokit (~> 4.0) octokit (~> 4.0)
jekyll-mentions (1.1.2) jekyll-mentions (1.1.3)
html-pipeline (~> 2.3) html-pipeline (~> 2.3)
jekyll (~> 3.0) jekyll (~> 3.0)
jekyll-paginate (1.1.0) jekyll-paginate (1.1.0)
@@ -109,7 +109,7 @@ GEM
rb-fsevent (0.9.7) rb-fsevent (0.9.7)
rb-inotify (0.9.7) rb-inotify (0.9.7)
ffi (>= 0.5.0) ffi (>= 0.5.0)
rouge (1.10.1) rouge (1.11.1)
safe_yaml (1.0.4) safe_yaml (1.0.4)
sass (3.4.22) sass (3.4.22)
sawyer (0.7.0) sawyer (0.7.0)
+29 -23
View File
@@ -6,29 +6,35 @@
{% capture teaser %}{{ site.teaser }}{% endcapture %} {% capture teaser %}{{ site.teaser }}{% endcapture %}
{% endif %} {% endif %}
{% if post.id %}
{% assign title = post.title | markdownify | remove: "<p>" | remove: "</p>" %}
{% else %}
{% assign title = post.title %}
{% endif %}
<div class="{{ include.type | default: "list" }}__item"> <div class="{{ include.type | default: "list" }}__item">
{% if post.link %} <article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
<a href="{{ post.link }}" target="_blank"> {% if include.type == "grid" and teaser != blank %}
{% else %} <div class="archive__item-teaser">
<a href="{{ base_path }}{{ post.url }}"> <img src=
{% endif %} {% if teaser contains "://" %}
<article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork"> "{{ teaser }}"
{% if include.type == "grid" and teaser != blank %} {% else %}
<div class="archive__item-teaser"> "{{ teaser | prepend: "/images/" | prepend: base_path }}"
<img src= {% endif %}
{% if teaser contains "://" %} alt="">
"{{ teaser }}" </div>
{% else %} {% endif %}
"{{ teaser | prepend: "/images/" | prepend: base_path }}" <h2 class="archive__item-title" itemprop="headline">
{% endif %} {% if post.link %}
alt=""> <a href="{{ post.link }}">{{ title }}</a> <a href="{{ base_path }}{{ post.url }}" rel="permalink"><i class="fa fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
</div> {% else %}
<a href="{{ base_path }}{{ post.url }}" rel="permalink">{{ title }}</a>
{% endif %} {% endif %}
<h2 class="archive__item-title" itemprop="headline">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}{% if post.link %}<i class="fa fa-star" aria-hidden="true"></i>{% endif %}</h2> </h2>
{% if post.read_time %} {% if post.read_time %}
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p> <p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
{% endif %} {% endif %}
{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %} {% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
</article> </article>
</a>
</div> </div>
+2 -4
View File
@@ -6,11 +6,9 @@
{% assign gallery = page.gallery %} {% assign gallery = page.gallery %}
{% endif %} {% endif %}
{% capture gallery_size %}{{ gallery | size }}{% endcapture %} {% if gallery.size == 2 %}
{% if gallery_size == '2' %}
{% assign gallery_layout = 'half' %} {% assign gallery_layout = 'half' %}
{% elsif gallery_size >= '3' %} {% elsif gallery.size >= 3 %}
{% assign gallery_layout = 'third' %} {% assign gallery_layout = 'third' %}
{% else %} {% else %}
{% assign gallery_layout = '' %} {% assign gallery_layout = '' %}
+7 -6
View File
@@ -92,12 +92,13 @@
{% if page.date %} {% if page.date %}
<meta property="og:type" content="article"> <meta property="og:type" content="article">
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}"> <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
{% if page.next.url %} {% endif %}
<link rel="next" href="{{ page.next.url | prepend: seo_url | replace: "/index.html", "/" }}" title="{{ page.next.title | escape }}">
{% endif %} {% if paginator.previous_page %}
{% if page.previous.url %} <link rel="prev" href="{{ paginator.previous_page_path | prepend: seo_url }}">
<link rel="prev" href="{{ page.previous.url | prepend: seo_url | replace: "/index.html", "/" }}" title="{{ page.previous.title | escape }}"> {% endif %}
{% endif %} {% if paginator.next_page %}
<link rel="next" href="{{ paginator.next_page_path | prepend: seo_url }}">
{% endif %} {% endif %}
{% if site.og_image %} {% if site.og_image %}
+1 -1
View File
@@ -5,7 +5,7 @@ layout: compress
{% include base_path %} {% include base_path %}
<!doctype html> <!doctype html>
<html lang="{{ site.locale | slice: 0,2 }}" class="no-js"> <html lang="{{ site.locale | slice: 0,2 | default: "en" }}" class="no-js">
<head> <head>
{% include head.html %} {% include head.html %}
{% include head/custom.html %} {% include head/custom.html %}
+5 -1
View File
@@ -35,6 +35,10 @@
.archive__item-title { .archive__item-title {
margin-bottom: 0.25em; margin-bottom: 0.25em;
font-family: $sans-serif-narrow; font-family: $sans-serif-narrow;
a + a {
opacity: 0.5;
}
} }
// remove border // remove border
@@ -63,7 +67,7 @@
} }
} }
a:hover { .archive__item:hover {
.archive__item-teaser { .archive__item-teaser {
box-shadow: 0 0 10px rgba(#000, 0.25); box-shadow: 0 0 10px rgba(#000, 0.25);
} }
+6
View File
@@ -2,6 +2,12 @@
BASE ELEMENTS BASE ELEMENTS
========================================================================== */ ========================================================================== */
html {
/* sticky footer fix */
position: relative;
min-height: 100%;
}
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
+7
View File
@@ -5,6 +5,13 @@
.page__footer { .page__footer {
@include full(); @include full();
@include clearfix; @include clearfix;
/* sticky footer fix start */
position: absolute;
bottom: 0;
width: 100%;
clear: both;
height: auto;
/* sticky footer fix end */
margin-top: 3em; margin-top: 3em;
color: mix(#fff, $gray, 25%); color: mix(#fff, $gray, 25%);
animation: intro 0.3s both; animation: intro 0.3s both;
+1 -1
View File
File diff suppressed because one or more lines are too long
+30 -7
View File
@@ -4,6 +4,24 @@
$(document).ready(function(){ $(document).ready(function(){
// Sticky footer
var bumpIt = function() {
$('body').css('margin-bottom', $('.page__footer').outerHeight(true));
},
didResize = false;
bumpIt();
$(window).resize(function() {
didResize = true;
});
setInterval(function() {
if(didResize) {
didResize = false;
bumpIt();
}
}, 250);
// FitVids init // FitVids init
$("#main").fitVids(); $("#main").fitVids();
@@ -11,7 +29,12 @@ $(document).ready(function(){
$(".sticky").Stickyfill(); $(".sticky").Stickyfill();
var stickySideBar = function(){ var stickySideBar = function(){
if (!$(".author__urls-wrapper button").is(":visible")) { var show = $(".author__urls-wrapper button").length === 0 ? $(window).width() > 1024 : !$(".author__urls-wrapper button").is(":visible");
// console.log("has button: " + $(".author__urls-wrapper button").length === 0);
// console.log("Window Width: " + windowWidth);
// console.log("show: " + show);
//old code was if($(window).width() > 1024)
if (show) {
// fix // fix
Stickyfill.rebuild(); Stickyfill.rebuild();
Stickyfill.init(); Stickyfill.init();
@@ -44,12 +67,12 @@ $(document).ready(function(){
// Magnific-Popup options // Magnific-Popup options
$(".image-popup").magnificPopup({ $(".image-popup").magnificPopup({
disableOn: function() { // disableOn: function() {
if( $(window).width() < 500 ) { // if( $(window).width() < 500 ) {
return false; // return false;
} // }
return true; // return true;
}, // },
type: 'image', type: 'image',
tLoading: 'Loading image #%curr%...', tLoading: 'Loading image #%curr%...',
gallery: { gallery: {
+5 -5
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "minimal-mistakes", "name": "minimal-mistakes",
"version": "3.2.13", "version": "3.3.3",
"description": "Minimal Mistakes Jekyll theme npm build scripts", "description": "Minimal Mistakes Jekyll theme npm build scripts",
"repository": { "repository": {
"type": "git", "type": "git",