Skip to content

Commit 14cf39c

Browse files
Merge pull request #1 from amitmerchant1990/master
Update from source
2 parents 695b83c + 777220d commit 14cf39c

File tree

5 files changed

+50
-23
lines changed

5 files changed

+50
-23
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ This is a plug-and-play Jekyll theme best suited to use on [GitHub Pages](https:
2323
|---------------------|----------------------|----------------------|
2424
|![Responsiveness](/images/mobile-demo.png) | ![search](/images/search.png) | ![categories](/images/categories.png) |
2525

26+
# Table of Contents
27+
- [Features overview](#features-overview)
28+
- [Using Reverie on GitHub Pages](#using-reverie-on-github-pages)
29+
- [1. Fork Reverie to your User Repository](#1-fork-reverie-to-your-user-repository)
30+
- [2. Customize and view your site](#2-customize-and-view-your-site)
31+
- [3. Publish your first blog post](#3-publish-your-first-blog-post)
32+
- [Using Categories in Reverie](#using-categories-in-reverie)
33+
- [Pagination](#pagination)
34+
- [RSS](#rss)
35+
- [Sitemap](#sitemap)
36+
- [Emailware](#emailware)
37+
- [The name?](#the-name)
38+
- [License](#license)
39+
2640
## Features overview
2741

2842
- Clean and minimal design
@@ -39,6 +53,7 @@ This is a plug-and-play Jekyll theme best suited to use on [GitHub Pages](https:
3953
- Disqus commenting
4054
- Social media icons
4155
- Google Analytics integration
56+
- Supports [Google Analytics 4](https://support.google.com/analytics/answer/10089681?hl=en)
4257
- Fuzzy search across blog posts
4358
- Blog with pagination
4459
- Categorize posts out-of-the box

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ disqus:
4343
# Enter your Google Analytics web tracking code (e.g. UA-2110908-2) to activate tracking
4444
google_analytics: UA-43339302-11
4545

46+
# For newer "GA4" analytics, use the following instead of the "UA" entry above
47+
#google_analytics_ga4: G-GABC1DEFG
48+
4649
# Your website URL (e.g. http://amitmerchant1990.github.io or http://www.amitmerchant.com)
4750
# Used for Sitemap.xml and your RSS feed
4851
url: http://www.amitmerchant.com/reverie

_includes/analytics_head.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% if site.google_analytics_ga4 %}
2+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics_ga4 }}"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
gtag('config', '{{ site.google_analytics_ga4 }}');
8+
</script>
9+
{% endif %}

_includes/meta.html

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
2-
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
3-
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
1+
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
2+
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
3+
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
44

5-
{% if page.excerpt %}
6-
<meta property="og:description" content="{{ page.excerpt| strip_html }}" />
7-
{% elsif page.description %}
8-
<meta property="og:description" content="{{ page.description }}" />
9-
{% else %}
10-
<meta property="og:description" content="{{ site.description }}" />
11-
{% endif %}
12-
<meta name="author" content="{{ site.name }}" />
5+
{% if page.excerpt %}
6+
<meta property="og:description" content="{{ page.excerpt| strip_html }}" />
7+
{% elsif page.description %}
8+
<meta property="og:description" content="{{ page.description }}" />
9+
{% else %}
10+
<meta property="og:description" content="{{ site.description }}" />
11+
{% endif %}
12+
<meta name="author" content="{{ site.name }}" />
1313

14-
{% if page.title %}
15-
<meta property="og:title" content="{{ page.title }}" />
16-
<meta property="twitter:title" content="{{ page.title }}" />
17-
{% endif %}
14+
{% if page.title %}
15+
<meta property="og:title" content="{{ page.title }}" />
16+
<meta property="twitter:title" content="{{ page.title }}" />
17+
{% endif %}
1818

19-
{% if page.image %}
20-
<meta property="og:image" content="{{ site.url }}{{ page.image }}"/>
21-
<meta property="twitter:image" content="{{ site.url }}{{ page.image }}"/>
22-
{% else %}
23-
<meta property="og:image" content="{{ site.url }}{{ site.avatar }}"/>
24-
<meta property="twitter:image" content="{{ site.url }}{{ site.avatar }}"/>
25-
{% endif %}
26-
<meta property="og:site_name" content="Amit Merchant - Software Engineer"/>
19+
{% if page.image %}
20+
<meta property="og:image" content="{{ site.url }}{{ page.image }}"/>
21+
<meta property="twitter:image" content="{{ site.url }}{{ page.image }}"/>
22+
{% else %}
23+
<meta property="og:image" content="{{ site.url }}{{ site.avatar }}"/>
24+
<meta property="twitter:image" content="{{ site.url }}{{ site.avatar }}"/>
25+
{% endif %}

_layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
<meta name="theme-color" content="#000000">
1313
<link rel="icon" type="image/png" sizes="32x32" href="{{ site.baseurl }}/images/favicon-32x32.png">
14+
{% include analytics_head.html %}
1415
</head>
1516

1617
<body>

0 commit comments

Comments
 (0)