diff --git a/_includes/layouts/common.liquid b/_includes/layouts/common.liquid index 537445a7..ac5a6f09 100644 --- a/_includes/layouts/common.liquid +++ b/_includes/layouts/common.liquid @@ -1,7 +1,3 @@ ---- -theme: - name: orionrobots ---- {% comment %}{% capture BASE_PATH %}{% if eleventy.env.runMode == "serve" %}{% else %}{{ site.production_url }}{% endif %}{% endcapture %}{% endcomment %} {% capture BASE_PATH %}{{ site.production_url }}{% endcapture %} {% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ theme.name }}{% endcapture %} @@ -25,9 +21,16 @@ theme: - {% if description %} - - {% endif %} + {% capture real_description -%} + {% if description -%} + {{ description }} + {%- else -%} + {{ content | strip_html | strip_newlines | truncatewords: 50 }} + {%- endif -%} + {%- endcapture %} + + + {% if thumbnail %} @@ -38,11 +41,9 @@ theme: {{ title }} | {{ site_title }} - {{ site_tagline }} - {% if description %}{% endif %} - {% capture css %}{% include css/bootstrap-style.css %}{% endcapture %}