diff --git a/src/_includes/sidenote.liquid b/src/_includes/sidenote.liquid
index b22315a..ddda7df 100644
--- a/src/_includes/sidenote.liquid
+++ b/src/_includes/sidenote.liquid
@@ -1,3 +1,3 @@
-{% assign sn_slug = sidenote | strip | strip_html | slice: 0, 50 | downcase | replace: '.', '' |replace: ' ', '-' %}{% capture snid %}sn-{{ sn_slug}}{% endcapture %}
+{% assign sn_slug = sidenote | strip | strip_html | strip_newlines | slice: 0, 50 | downcase | remove: '"' | remove: "'" | remove: ' ' | remove: '.' | remove: '-' | remove: '_' %}{% capture snid %}sn-{{ sn_slug}}{% endcapture %}
-{{ sidenote }}
\ No newline at end of file
+{{ sidenote | strip_newlines }}
\ No newline at end of file
diff --git a/src/_layouts/post.liquid b/src/_layouts/post.liquid
index 079e233..0401e39 100644
--- a/src/_layouts/post.liquid
+++ b/src/_layouts/post.liquid
@@ -29,6 +29,12 @@
+ {% if page.data.header_image %}
+
+ {% endif %}
+
{{ page.content }}