From 92884e2b48c192d621c2e32ab6721a523821f202 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 29 Aug 2020 18:41:57 -0300 Subject: [PATCH] =?UTF-8?q?No=20fallar=20con=20valores=20vac=C3=ADos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _includes/share.html | 4 ++-- _layouts/post.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_includes/share.html b/_includes/share.html index 9e97b33..50e59a4 100644 --- a/_includes/share.html +++ b/_includes/share.html @@ -1,9 +1,9 @@ {% capture url %}{{ site.url }}{{ include.url }}{% endcapture %} {% unless include.share.url == '%url' %} - {% assign url = url | cgi_escape %} + {% assign url = url | default: '' | cgi_escape %} {% endunless %} -{% assign title = include.title | cgi_escape %} +{% assign title = include.title | default: '' | cgi_escape %} {% assign description = include.description | default: '' | cgi_escape %}
-

{{ page.title | escape }}

+

{{ page.title | default: '' | escape }}

{%- if page.description -%} -

{{ page.description | escape }}

+

{{ page.description | default: '' | escape }}

{%- endif -%} {%- if page.image.path -%} @@ -29,7 +29,7 @@ layout: default • {%- endfor -%}