Compare commits

...
46 Commits
Author SHA1 Message Date
Michael Rose 5615f4c67f Merge branch 'hotfix/3.2.6' 2016-06-07 11:34:45 -04:00
Michael Rose 469fb46786 Update CHANGELOG and bump version to 3.2.6 2016-06-07 11:34:30 -04:00
Michael Rose f509db2177 Rename undefined_words_per_minute variable to match one set in ui-text.yml
- Remove extra white-space
- Close #317
2016-06-07 11:32:11 -04:00
Michael Rose 6bd7f637f3 Merge branch 'develop' of https://github.com/Scot3004/new into hotfix/3.2.6 2016-06-07 11:29:54 -04:00
Michael Rose a0082b1e1b Update README screenshots 2016-06-07 09:01:55 -04:00
Sergio C. Orozco Torres 01cfcf0f3b Undefined word_per_minutes parameter division by zero
If the parameter words_per_minute at _config.yml is not defined and the template says that must show read_time then will be divide a number by zero, a fix is verify that parameter and show a message when this is empty or zero. already localized for spanish
2016-06-07 01:03:59 -05:00
Michael Rose 763ee0bfff Merge branch 'hotfix/3.2.5' 2016-06-06 22:30:48 -04:00
Michael Rose 1510947bf6 Merge branch 'hotfix/3.2.5' into develop 2016-06-06 22:30:48 -04:00
Michael Rose 1b384c2016 Update CHANGELOG and bump version to 3.2.5 2016-06-06 22:30:18 -04:00
Michael Rose 1b142507c3 Fix link color in hero overlay 2016-06-06 22:28:51 -04:00
Michael Rose 9d27604578 Remove border from archive items' headings 2016-06-06 22:28:33 -04:00
Michael Rose c958701c50 Merge branch 'release/3.2.4' 2016-06-06 21:28:08 -04:00
Michael Rose fba1cb3ffa Merge branch 'release/3.2.4' into develop 2016-06-06 21:28:08 -04:00
Michael Rose e8596c5f62 Bump version to 3.2.4 2016-06-06 21:27:59 -04:00
Michael Rose a8715852bc Update CHANGELOG 2016-06-06 21:27:35 -04:00
Michael Rose ebccf63638 Merge branch 'feature/masthead-alignment' into develop 2016-06-06 21:17:23 -04:00
Michael Rose 4aa0631ac6 Build CSS 2016-06-06 21:17:06 -04:00
Michael Rose e6a5d24bc4 Add subtle border to <h2> elements in main content 2016-06-06 21:16:57 -04:00
Michael Rose b1c6d19acc Neutralize Font Awesome footer icons' color 2016-06-06 21:16:36 -04:00
Michael Rose a3322620ef Lighten font weight 2016-06-06 21:02:11 -04:00
Michael Rose 8cd5be2107 Add border and background color to page footer 2016-06-06 21:01:54 -04:00
Michael Rose 2e2e42d1f0 Move custom footer into <footer> 2016-06-06 15:16:43 -04:00
Michael Rose ad303b9484 Left align hero overlay and archive features to flow better with left aligned layouts 2016-06-06 15:16:24 -04:00
Michael Rose df86cb62c2 Left align masthead and footer 2016-06-06 15:15:20 -04:00
Michael Rose 972e55c938 Merge branch 'feature/css-edits' into develop 2016-06-06 12:16:41 -04:00
Michael Rose db869e8274 Increase font size of archive item titles in list view 2016-06-06 12:11:52 -04:00
Michael Rose f497183b2a Fix alignment of icons used in author profile sidebar links
- Close #341
2016-06-06 12:08:45 -04:00
Michael Rose 1c8bfa3fe6 Merge branch 'feature/spanish-localization' into develop 2016-06-06 12:03:19 -04:00
Sergio C. Orozco Torres dcb880ee9e Typo in locale es_CO and es_ES 2016-06-04 16:29:58 -05:00
Sergio C. Orozco Torres 5bd8ed99d6 Added spanish on ui-text.yml
on ui-text.yml
2016-06-04 04:33:00 -05:00
Michael Rose 4249b87c66 Merge branch 'release/3.2.3' into develop 2016-06-03 15:04:31 -04:00
Michael Rose a7b749650e Merge branch 'release/3.2.3' 2016-06-03 15:04:27 -04:00
Michael Rose 89c252e347 Update CHANGELOG 2016-06-03 15:04:09 -04:00
Michael Rose 400111c58b Merge branch 'feature/discourse-comments' into develop 2016-06-03 12:03:34 -04:00
Michael Rose 5bbf801d8c Remove last blank line 2016-06-03 12:03:19 -04:00
Michael Rose d9ac4a7940 Merge branch 'feature-discourse-comments' of https://github.com/rriemann/minimal-mistakes into feature/discourse-comments 2016-06-03 12:01:08 -04:00
Michael Rose b3c0b79b92 Replace contains "http" with contains "://" 2016-06-03 11:59:19 -04:00
Robert Riemann e186ee3650 take into account an optional basepath 2016-06-03 10:57:52 +02:00
Robert Riemann f6f7d0cd97 javascript to embed comments from discourse forum
The comment system can be changed to embed topics from the Discourse
forum software: http://discourse.org/

More details: https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963
2016-06-03 00:34:14 +02:00
Michael Rose 9b833feb7d Update CHANGELOG 2016-06-01 21:53:35 -04:00
Michael Rose 8b793dde76 Update CHANGELOG 2016-06-01 21:53:03 -04:00
Michael Rose 449051d9c9 Merge branch 'release/3.2.2' into develop 2016-06-01 21:33:54 -04:00
Michael Rose 5bc7f00f91 Merge branch 'release/3.2.2'
# Conflicts:
#	CHANGELOG.md
2016-06-01 21:32:55 -04:00
Michael Rose 34d2bdf049 Update CHANGELOG 2016-06-01 21:31:45 -04:00
Michael Rose 2a05b6e907 Update CHANGELOG 2016-05-31 12:37:17 -04:00
Michael Rose 15f4ac9641 Merge branch 'hotfix/3.2.1' 2016-05-31 12:32:04 -04:00
27 changed files with 176 additions and 65 deletions
+42
View File
@@ -1,3 +1,45 @@
## [3.2.6](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.6)
### Bug Fixes
- Fix error `Liquid Exception: divided by 0 in _includes/archive-single.html, included in _layouts/single.html` caused by null `words_per_minute` in `_config.yml`. [#345](https://github.com/mmistakes/minimal-mistakes/pull/345)
## [3.2.5](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.5)
### Bug Fixes
- Fix link color in hero overlay to be white.
- Remove underlines from archive item titles.
## [3.2.4](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.4)
### Enhancements
- Improve text alignment of masthead, hero overlay, page footer to be flush left and remove awkward white-space gaps. [#342](https://github.com/mmistakes/minimal-mistakes/issues/342)
- Add Spanish localized UI text. [#338](https://github.com/mmistakes/minimal-mistakes/pull/338)
### Bug Fixes
- Fix alignment of icons in author sidebar [#341](https://github.com/mmistakes/minimal-mistakes/issues/341)
### Maintenance
- Add background color to page footer to set it apart from main content. [#342](https://github.com/mmistakes/minimal-mistakes/issues/342)
- Add terms and privacy policy to theme's demo site. [#343](https://github.com/mmistakes/minimal-mistakes/issues/343)
- Update screenshots found in theme documentation.
## [3.2.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.3)
### Enhancement
- 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)
### Enhancement
- 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)
## [3.2.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.1)
### Bug Fixes
+2 -2
View File
@@ -5,11 +5,11 @@ Minimal Mistakes is a flexible two-column Jekyll theme. Perfect for hosting your
[![Minimal Mistakes live preview][2]][1]
[1]: https://mmistakes.github.io/minimal-mistakes/
[2]: https://cloud.githubusercontent.com/assets/1376749/14562643/d83b96c0-02eb-11e6-98d6-473fbfd3bff6.jpg (live preview)
[2]: images/mm-browser-mockups.png (live preview)
The theme includes responsive layouts (`single`, `archive`, and `splash` pages) that look great on mobile and desktop browsers.
![layout examples](https://cloud.githubusercontent.com/assets/1376749/14541626/dac474f4-0258-11e6-83f6-40e752028222.png)
![layout examples](images/mm-layout-examples.png)
## [Installation and Setup](https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/) / [Preview the Theme](https://mmistakes.github.io/minimal-mistakes/)
+3 -1
View File
@@ -18,9 +18,11 @@ teaser : # filename of teaser fallback teaser image placed in
# breadcrumbs : false # true, false (default)
words_per_minute : 200
comments:
provider : # false (default), "disqus", "facebook", "google-plus", custom"
provider : # false (default), "disqus", "discourse", "facebook", "google-plus", custom"
disqus:
shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
discourse:
server : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org
facebook:
# https://developers.facebook.com/docs/plugins/comments
appid :
+34
View File
@@ -27,10 +27,44 @@ en: &DEFAULT_EN
website_label : "Website"
email_label : "Email"
recent_posts : "Recent Posts"
undefined_wpm : "Undefined parameter words_per_minute at _config.yml"
en-US:
<<: *DEFAULT_EN
en-UK:
<<: *DEFAULT_EN
# Spanish
# --------------
es: &DEFAULT_ES
page : "Página"
pagination_previous : "Anterior"
pagination_next : "Siguiente"
breadcrumb_home_label : "Inicio"
breadcrumb_separator : "/"
toc_label : "Contenidos"
ext_link_label : "Enlace"
less_than : "menos de"
minute_read : "minuto de lectura"
minutes_read : "minutos de lectura"
share_on_label : "Compartir"
meta_label :
tags_label : "Etiquetas:"
categories_label : "Categorías:"
date_label : "Actualizado:"
comments_label : "Comentar"
more_label : "Ver más"
related_label : "Podrías ver también"
follow_label : "Seguir:"
feed_label : "Feed"
powered_by : "Powered by"
website_label : "Sitio web"
email_label : "Email"
recent_posts : "Entradas recientes"
undefined_wpm : "Parametro words_per_minute (Palabras por minuto) no definido en _config.yml"
es-ES:
<<: *DEFAULT_ES
es-CO:
<<: *DEFAULT_ES
# Another locale
# --------------
+1 -1
View File
@@ -16,7 +16,7 @@
{% if include.type == "grid" and teaser != blank %}
<div class="archive__item-teaser">
<img src=
{% if teaser contains "http" %}
{% if teaser contains "://" %}
"{{ teaser }}"
{% else %}
"{{ teaser | prepend: "/images/" | prepend: base_path }}"
+1 -1
View File
@@ -7,7 +7,7 @@
<div itemscope itemtype="http://schema.org/Person">
<div class="author__avatar">
{% if author.avatar contains "http" %}
{% if author.avatar contains "://" %}
<img src="{{ author.avatar }}" alt="{{ author.name }}">
{% else %}
<img src="{{ author.avatar | prepend: "/images/" | prepend: base_path }}" class="author__avatar" alt="{{ author.name }}">
@@ -0,0 +1,14 @@
{% if site.comments.discourse.server %}
{% include base_path %}
{% capture canonical %}{{ base_path }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
<script type="text/javascript">
DiscourseEmbed = { discourseUrl: '//{{ site.comments.discourse.server }}/',
discourseEmbedUrl: '{{ canonical }}' };
(function () {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
</script>
<noscript>Please enable JavaScript to view the comments powered by [Discourse](http://forum.beta-europe.org/c/beta/website).</a></noscript>
{% endif %}
@@ -3,6 +3,8 @@
{% case site.comments.provider %}
{% when "disqus" %}
{% include /comments-providers/disqus.html %}
{% when "discourse" %}
{% include /comments-providers/discourse.html %}
{% when "facebook" %}
{% include /comments-providers/facebook.html %}
{% when "google-plus" %}
+2 -2
View File
@@ -10,7 +10,7 @@
{% for f in feature_row %}
{% if f.url contains "http" %}
{% if f.url contains "://" %}
{% capture f_url %}{{ f.url }}{% endcapture %}
{% else %}
{% capture f_url %}{{ f.url | prepend: base_path }}{% endcapture %}
@@ -21,7 +21,7 @@
{% if f.image_path %}
<div class="archive__item-teaser">
<img src=
{% if f.image_path contains "http" %}
{% if f.image_path contains "://" %}
"{{ f.image_path }}"
{% else %}
"{{ f.image_path | prepend: "/images/" | prepend: base_path }}"
+3 -3
View File
@@ -20,7 +20,7 @@
{% for img in gallery %}
{% if img.url %}
<a href=
{% if img.url contains "http" %}
{% if img.url contains "://" %}
"{{ img.url }}"
{% else %}
"{{ img.url | prepend: "/images/" | prepend: base_path }}"
@@ -28,7 +28,7 @@
{% if img.title %}title="{{ img.title }}"{% endif %}
>
<img src=
{% if img.image_path contains "http" %}
{% if img.image_path contains "://" %}
"{{ img.image_path }}"
{% else %}
"{{ img.image_path | prepend: "/images/" | prepend: base_path }}"
@@ -37,7 +37,7 @@
</a>
{% else %}
<img src=
{% if img.image_path contains "http" %}
{% if img.image_path contains "://" %}
"{{ img.image_path }}"
{% else %}
"{{ img.image_path | prepend: "/images/" | prepend: base_path }}"
+2 -4
View File
@@ -8,7 +8,7 @@
<li>
{% if nav.url %}
{% comment %}internal/external URL check{% endcomment %}
{% if nav.url contains "http" %}
{% if nav.url contains "://" %}
{% assign domain = "" %}
{% else %}
{% assign domain = base_path %}
@@ -23,7 +23,7 @@
<ul>
{% for child in nav.children %}
{% comment %}internal/external URL check{% endcomment %}
{% if child.url contains "http" %}
{% if child.url contains "://" %}
{% assign domain = "" %}
{% else %}
{% assign domain = base_path %}
@@ -44,5 +44,3 @@
{% endfor %}
</ul>
</nav>
+3 -3
View File
@@ -1,18 +1,18 @@
{% include base_path %}
{% if page.header.image contains "http" %}
{% if page.header.image contains "://" %}
{% capture img_path %}{{ page.header.image }}{% endcapture %}
{% else %}
{% capture img_path %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endcapture %}
{% endif %}
{% if page.header.cta_url contains "http" %}
{% if page.header.cta_url contains "://" %}
{% capture cta_path %}{{ page.header.cta_url }}{% endcapture %}
{% else %}
{% capture cta_path %}{{ page.header.cta_url | prepend: base_path }}{% endcapture %}
{% endif %}
{% if page.header.overlay_image contains "http" %}
{% if page.header.overlay_image contains "://" %}
{% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %}
{% elsif page.header.overlay_image %}
{% capture overlay_img_path %}{{ page.header.overlay_image | prepend: "/images/" | prepend: base_path }}{% endcapture %}
+4
View File
@@ -4,6 +4,7 @@
{% assign words = page.content | strip_html | number_of_words %}
{% endif %}
{% if site.words_per_minute %}
{% if words < 180 %}
{{ site.data.ui-text[site.locale].less_than }} 1 {{ site.data.ui-text[site.locale].minute_read }}
{% elsif words < 360 %}
@@ -11,3 +12,6 @@
{% else %}
{{ words | divided_by:site.words_per_minute }} {{ site.data.ui-text[site.locale].minutes_read }}
{% endif %}
{% else %}
{{ site.data.ui-text[site.locale].undefined_wpm }}
{% endif %}
+2 -2
View File
@@ -60,7 +60,7 @@
{% if page.header.image %}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
<meta name="twitter:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
{% else %}
<meta name="twitter:card" content="summary">
{% if site.og_image %}
@@ -84,7 +84,7 @@
{% endif %}
{% if page.header.image %}
<meta property="og:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
<meta property="og:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
{% endif %}
{% if page.date %}
+1 -1
View File
@@ -7,7 +7,7 @@
{% for s in page.sidebar %}
{% if s.image %}
<img src=
{% if s.image contains "http" %}
{% if s.image contains "://" %}
"{{ s.image }}"
{% else %}
"{{ s.image | prepend: "/images/" | prepend: base_path }}"
+1 -1
View File
@@ -20,12 +20,12 @@ layout: compress
<div class="page__footer">
<footer>
{% include footer/custom.html %}
{% include footer.html %}
</footer>
</div>
{% include scripts.html %}
{% include footer/custom.html %}
</body>
</html>
+9 -10
View File
@@ -35,7 +35,15 @@
.archive__item-title {
margin-bottom: 0.25em;
font-family: $sans-serif-narrow;
font-size: $type-size-5;
}
// remove border
.page__content {
.archive__item-title {
margin-top: 1em;
border-bottom: none;
}
}
.archive__item-excerpt {
@@ -149,7 +157,6 @@ a:hover {
@include breakpoint($small) {
margin-bottom: 0;
text-align: center;
@include gallery(4 of 12);
.feature__item-teaser {
@@ -158,14 +165,8 @@ a:hover {
}
}
.archive__item-body {
padding-left: 0.5em;
padding-right: 0.5em;
}
&--left {
@include full();
// margin-bottom: 2em;
font-size: 1.25rem;
.archive__item-teaser {
@@ -187,7 +188,6 @@ a:hover {
&--right {
@include full();
// margin-bottom: 2em;
font-size: 1.25rem;
.archive__item-teaser {
@@ -211,7 +211,6 @@ a:hover {
&--center {
@include full();
// margin-bottom: 2em;
font-size: 1.25rem;
.archive__item-teaser {
+14 -9
View File
@@ -3,17 +3,25 @@
========================================================================== */
.page__footer {
@include container;
@include full();
@include clearfix;
margin-top: 3em;
padding: 0 1em 3em;
color: mix(#fff, $gray, 25%);
animation: intro 0.3s both;
animation-delay: 0.45s;
background-color: $lighter-gray;
border-top: 1px solid $light-gray;
footer {
@include container;
@include clearfix;
margin-top: 2em;
padding: 0 1em 2em;
@include breakpoint($x-large) {
max-width: $x-large;
}
}
a {
color: inherit;
@@ -23,21 +31,18 @@
text-decoration: underline;
}
}
.fa {
color: mix(#fff, $gray, 25%);
}
}
.page__footer-copyright {
font-family: $global-font-family;
font-size: $type-size-7;
@include breakpoint($large) {
@include prefix(2.5 of 12);
}
}
.page__footer-follow {
@include breakpoint($large) {
@include prefix(2.5 of 12);
}
ul {
margin: 0;
+2 -7
View File
@@ -14,8 +14,6 @@
@include clearfix;
padding: 1em 1em 1em;
font-family: $sans-serif-narrow;
font-weight: 700;
text-transform: uppercase;
@include breakpoint($x-large) {
max-width: $x-large;
@@ -32,9 +30,6 @@
}
.masthead__menu {
@include breakpoint($large) {
@include prefix(2.5 of 12);
}
ul {
margin: 0;
@@ -47,10 +42,10 @@
.masthead__menu-item {
display: block;
list-style-type: none;
font-size: $type-size-6;
white-space: nowrap;
&--lg {
font-size: $type-size-5;
padding-right: 2em;
font-weight: 700;
}
}
+20 -3
View File
@@ -49,6 +49,12 @@
}
.page__content {
h2 {
padding-bottom: 0.5em;
border-bottom: 1px solid $border-color;
}
p, li, dl {
font-size: 1em;
}
@@ -113,16 +119,23 @@
margin-bottom: 2em;
padding: 3em 0;
@include clearfix;
text-align: center;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
animation: intro 0.3s both;
animation-delay: 0.25s;
a {
color: #fff;
}
.wrapper {
padding-left: 2em;
padding-right: 2em;
padding-left: 1em;
padding-right: 1em;
@include breakpoint($x-large) {
max-width: $x-large;
}
}
.page__title,
@@ -133,6 +146,10 @@
text-shadow: 1px 1px 4px rgba(#000, 0.5);
}
.page__lead {
max-width: $medium;
}
.page__title {
font-size: $type-size-2;
-1
View File
@@ -184,7 +184,6 @@ body:hover .visually-hidden button {
.social-icons {
.fa {
color: #000;
display: initial;
}
.fa-behance,
+2 -2
View File
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "minimal-mistakes",
"version": "2.1.0",
"version": "3.2.6",
"description": "Minimal Mistakes Jekyll theme npm build scripts",
"repository": {
"type": "git",