diff --git a/_config.yml b/_config.yml index f370614..37cb636 100644 --- a/_config.yml +++ b/_config.yml @@ -42,12 +42,14 @@ colors: favicon_safari_mask_icon: "#5ac8fa" ################################# ANALYTICS - +# # set this up with a proper URL if you are using Shynet + analytics: shynet: # MUST insert an url with NO trailing slash! - url: https://shynet.john_doe_website.com/ingress/uuid-universally-unique-identifier + # url: https://shynet.john_doe_website.com/ingress/uuid-universally-unique-identifier + # add tiny pixel to count feed reads, must add `_layouts/feed.xml` file pixel_feed: true @@ -62,6 +64,7 @@ feed: ################################# JEKYLL PLUGINS plugins: + - jekyll-feed - jekyll-seo-tag - jekyll-sitemap - jekyll-optional-front-matter diff --git a/_includes/analytics.html b/_includes/analytics.html index 7f7a100..230b07b 100644 --- a/_includes/analytics.html +++ b/_includes/analytics.html @@ -1,4 +1,4 @@ -{% if jekyll.environment != "local" and site.analytics.shynet %} +{% if jekyll.environment != "local" and site.analytics.shynet.url.size > 0 %} {% comment %} This is to prevent double slashes "//" {% endcomment %} diff --git a/_layouts/feed.xml b/_layouts/feed.xml index 9658900..cfd89dc 100644 --- a/_layouts/feed.xml +++ b/_layouts/feed.xml @@ -64,7 +64,7 @@ {% assign excerpt_only = post.feed.excerpt_only | default: site.feed.excerpt_only %} {% unless excerpt_only %} {% comment %}Add tiny Shynet pixel to count RSS reads{% endcomment %} - {% endif %}]]> + 0 and site.analytics.shynet.pixel_feed %}{% endif %}]]> {% endunless %} {% assign post_author = post.author | default: post.authors[0] | default: site.author %}