From 48f7e1f1ffa3b29a495eea43e9c044337077262e Mon Sep 17 00:00:00 2001
From: Daniel <dhaavi@users.noreply.github.com>
Date: Thu, 21 Apr 2022 12:32:32 +0200
Subject: [PATCH] Remove white spaces and fix comment type

---
 _includes/head_ogp.html | 76 +++++++++++++++++++----------------------
 1 file changed, 36 insertions(+), 40 deletions(-)

diff --git a/_includes/head_ogp.html b/_includes/head_ogp.html
index 8a682f2..560ccac 100644
--- a/_includes/head_ogp.html
+++ b/_includes/head_ogp.html
@@ -2,66 +2,62 @@
 <meta property="og:url" content="{{ site.url }}{{ page.url }}">
 <meta property="og:type" content="website">
 <meta property="og:title" content="{{ page.title }}">
-
-<!-- 
-    Todo: Daniel said leave a comment here and this 
-    need also need more clarification for how/what 
-    should be displayed here
- -->
-<!-- <meta property="og:description" content="
-  {% if page.summary != null %}
+{% comment %}
+TODO: Daniel said leave a comment here and this 
+need also need more clarification for how/what 
+should be displayed here
+<meta property="og:description" content="
+  {%- if page.summary != null -%}
     {{ page.summary | truncatewords: 18 }}
-  {% else %}
+  {%- else -%}
     {{ site.description }}
-  {% endif %}
-"> -->
-
+  {%- endif -%}
+">
+{% endcomment %}
 <meta property="og:image" content="
-  {% if page.category == "podcast" %}
-    {% if page.custom_thumbnail_name %}
+  {%- if page.category == "podcast" -%}
+    {%- if page.custom_thumbnail_name -%}
         {{ site.url }}{{ site.img_url }}thumbnails/podcast/{{ page.custom_thumbnail_name }}.png
-    {% else %}
+    {%- else -%}
         {{ site.url }}{{ site.img_url }}thumbnails/podcast/placeholder.png
-    {% endif %}
-  {% elsif page.category == "video" %}
+    {%- endif -%}
+  {%- elsif page.category == "video" -%}
     {{ site.url }}{{ site.img_url }}thumbnails/video/{{ page.custom_thumbnail_name }}.png
-  {% elsif page.category == "blog" %}
+  {%- elsif page.category == "blog" -%}
     {{ site.url }}{{ site.img_url }}thumbnails/blog/{{ page.custom_thumbnail_name }}.png
-  {% else %}
+  {%- else -%}
     {{ site.url }}{{ site.img_url }}ogp/default.png
-  {% endif %}
+  {%- endif -%}
 ">
 
 <!-- Twitter -->
 <meta name="twitter:title" content="{{ page.title }}">
-
-<!-- 
-    Todo: Daniel said leave a comment here and this 
-    need also need more clarification for how/what 
-    should be displayed here
- -->
-<!-- <meta name="twitter:description" content="
-{% if page.summary != null %}
+{% comment %}
+TODO: Daniel said leave a comment here and this 
+need also need more clarification for how/what 
+should be displayed here
+<meta name="twitter:description" content="
+{%- if page.summary != null -%}
   {{ page.summary | truncatewords: 18 }}
-{% else %}
+{%- else -%}
   {{ site.description }}
-{% endif %}
-"> -->
-
+{%- endif -%}
+">
+{% endcomment %}
 <meta name="twitter:site" content="{{ site.twitter_username }}">
 <meta name="twitter:card" content="{{ site.twitter_card_type }}">
 <meta name="twitter:image" content="
-{% if page.category == "podcast" %}
-  {% if page.custom_thumbnail_name %}
+{%- if page.category == "podcast" -%}
+  {%- if page.custom_thumbnail_name -%}
     {{ site.url }}{{ site.img_url }}thumbnails/podcast/{{ page.custom_thumbnail_name }}.png
-  {% else %}
+  {%- else -%}
     {{ site.url }}{{ site.img_url }}thumbnails/podcast/placeholder.png
-  {% endif %}
-{% elsif page.category == "video" %}
+  {%- endif -%}
+{%- elsif page.category == "video" -%}
   {{ site.url }}{{ site.img_url }}thumbnails/video/{{ page.custom_thumbnail_name }}.png
-{% elsif page.category == "blog" %}
+{%- elsif page.category == "blog" -%}
   {{ site.url }}{{ site.img_url }}thumbnails/blog/{{ page.custom_thumbnail_name }}.png
-{% else %}
+{%- else -%}
   {{ site.url }}{{ site.img_url }}ogp/default.png
-{% endif %}
+{%- endif -%}
 ">
\ No newline at end of file