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
This commit is contained in:
Sergio C. Orozco Torres
2016-06-07 01:03:59 -05:00
parent 1510947bf6
commit 01cfcf0f3b
2 changed files with 13 additions and 5 deletions

View File

@ -27,6 +27,7 @@ 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:
@ -59,6 +60,7 @@ es: &DEFAULT_ES
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: