Skip to content

Commit

Permalink
Add webpage + add panelbear analytics (#176)
Browse files Browse the repository at this point in the history
* Add webpage to academic pages list

* adding panelbear analytics
  • Loading branch information
AbstractGeek authored Jan 7, 2021
1 parent e2353bc commit 3cdd0f6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Feel free to add your own page(s) by sending a PR.
<a href="https://liamcli.com/" target="_blank">★</a>
<a href="https://yoonholee.com/" target="_blank">★</a>
<a href="https://zrqiao.github.io/" target="_blank">★</a>
<a href="https://abstractgeek.github.io/" target="_blank">★</a>
</td>
</tr>
<tr>
Expand Down
14 changes: 8 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ contact_note: >
You can even add a little note about which of these is the best way to reach you.
google_analytics: UA-XXXXXXXXX # out your google-analytics code
panelbear_analytics: XXXXXXXXX # panelbear analytics site ID

# -----------------------------------------------------------------------------
# Blog
Expand Down Expand Up @@ -152,12 +153,13 @@ scholar:
# Optional Features
# -----------------------------------------------------------------------------

enable_google_analytics: false
enable_mansory: true
enable_math: true
enable_tooltips: false
enable_darkmode: true
show_social_icons: false
enable_google_analytics: false
enable_panelbear_analytics: false
enable_mansory: true
enable_math: true
enable_tooltips: false
enable_darkmode: true
show_social_icons: false

# -----------------------------------------------------------------------------
# Library versions
Expand Down
9 changes: 9 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,12 @@
gtag('config', '{{ site.google_analytics }}');
</script>
{% endif %}

{% if site.enable_panelbear_analytics %}
<!-- Panelbear Analytics - We respect your privacy -->
<script async src="https://cdn.panelbear.com/analytics.js?site={{site.panelbear_analytics}}"></script>
<script>
window.panelbear = window.panelbear || function() { (window.panelbear.q = window.panelbear.q || []).push(arguments); };
panelbear('config', { site: '{{site.panelbear_analytics}}' });
</script>
{% endif %}

0 comments on commit 3cdd0f6

Please sign in to comment.