{%- assign pagedescriptionlength = page.description | split: ' ' -%} {%- if pagedescriptionlength.size > 5 -%} {%- assign pagedescriptionlength = page.description | split: ' ' -%} {%- assign pagedescription = page.description -%} {%- endif -%} {% assign favicon = site.favicon %} {%- assign seo_description = pagedescription | default: page.content | markdownify | strip_html | truncatewords: 50 | default: page.excerpt | default: site.description -%} {%- if seo_description -%} {%- assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once -%} {%- endif -%} {%- if page.date -%} {%- assign og_type = "article" -%} {%- else -%} {%- assign og_type = "website" -%} {%- endif -%} {%- assign title = page.title | split: ' ' -%} {%- assign newtitle = '' %} {% for operation in title %} {%- if forloop.first -%} {% assign word = operation | capitalize %} {% assign newtitle = newtitle | append : word %} {% assign newtitle = newtitle | append : " " %} {%- else -%} {% assign word = operation %} {%- if forloop.last -%} {% assign newtitle = newtitle | append : word %} {%- else -%} {% assign newtitle = newtitle | append : word %} {% assign newtitle = newtitle | append : " " %} {%- endif -%} {%- endif -%} {% endfor %} {%- assign description = description | split: ' ' -%} {% assign pagedescription = '' %} {% for operation in description %} {%- if forloop.first -%} {% assign word = operation | capitalize %} {% assign pagedescription = pagedescription | append : word %} {% assign pagedescription = pagedescription | append : " " %} {%- else -%} {% assign word = operation %} {%- if forloop.last -%} {% assign pagedescription = pagedescription | append : word %} {%- else -%} {% assign pagedescription = pagedescription | append : word %} {% assign pagedescription = pagedescription | append : " " %} {%- endif -%} {%- endif -%} {% endfor %} {%- assign title = newtitle -%} {%- assign description = pagedescription-%} {{title}} {% include adsense/adsense.html %} {%- if page.layout == "blog-1" -%} {%- endif -%} {%- include google-analytics.html -%} {% if jekyll.environment == 'production' and site.monumetricId %} {% endif %} {% if jekyll.environment == 'development' and site.monumetricId %} {% endif %} {{ seo_description }}