diff --git a/README.md b/README.md index b4153be..1536c8b 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,20 @@ This is a plug-and-play Jekyll theme best suited to use on [GitHub Pages](https: |---------------------|----------------------|----------------------| |![Responsiveness](/images/mobile-demo.png) | ![search](/images/search.png) | ![categories](/images/categories.png) | +# Table of Contents + - [Features overview](#features-overview) + - [Using Reverie on GitHub Pages](#using-reverie-on-github-pages) + - [1. Fork Reverie to your User Repository](#1-fork-reverie-to-your-user-repository) + - [2. Customize and view your site](#2-customize-and-view-your-site) + - [3. Publish your first blog post](#3-publish-your-first-blog-post) + - [Using Categories in Reverie](#using-categories-in-reverie) + - [Pagination](#pagination) + - [RSS](#rss) + - [Sitemap](#sitemap) + - [Emailware](#emailware) + - [The name?](#the-name) + - [License](#license) + ## Features overview - Clean and minimal design @@ -39,6 +53,7 @@ This is a plug-and-play Jekyll theme best suited to use on [GitHub Pages](https: - Disqus commenting - Social media icons - Google Analytics integration +- Supports [Google Analytics 4](https://support.google.com/analytics/answer/10089681?hl=en) - Fuzzy search across blog posts - Blog with pagination - Categorize posts out-of-the box diff --git a/_config.yml b/_config.yml index 1a7bbf1..b3adfbf 100644 --- a/_config.yml +++ b/_config.yml @@ -43,6 +43,9 @@ disqus: # Enter your Google Analytics web tracking code (e.g. UA-2110908-2) to activate tracking google_analytics: UA-43339302-11 +# For newer "GA4" analytics, use the following instead of the "UA" entry above +#google_analytics_ga4: G-GABC1DEFG + # Your website URL (e.g. http://amitmerchant1990.github.io or http://www.amitmerchant.com) # Used for Sitemap.xml and your RSS feed url: http://www.amitmerchant.com/reverie diff --git a/_includes/analytics_head.html b/_includes/analytics_head.html new file mode 100644 index 0000000..d077ff8 --- /dev/null +++ b/_includes/analytics_head.html @@ -0,0 +1,9 @@ +{% if site.google_analytics_ga4 %} + + +{% endif %} diff --git a/_includes/meta.html b/_includes/meta.html index b54766f..9b069c5 100644 --- a/_includes/meta.html +++ b/_includes/meta.html @@ -1,26 +1,25 @@ - - - + + + - {% if page.excerpt %} - - {% elsif page.description %} - - {% else %} - - {% endif %} - +{% if page.excerpt %} + +{% elsif page.description %} + +{% else %} + +{% endif %} + - {% if page.title %} - - - {% endif %} +{% if page.title %} + + +{% endif %} - {% if page.image %} - - - {% else %} - - - {% endif %} - +{% if page.image %} + + +{% else %} + + +{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index afac3ec..34a888c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -11,6 +11,7 @@ + {% include analytics_head.html %}