add analytics

This commit is contained in:
Matthew Tran 2023-07-05 01:08:32 -07:00
parent e032a187f0
commit d9c4a3c017
3 changed files with 39 additions and 2 deletions

View File

@ -14,11 +14,17 @@ permalink: /:year/:month/:title/
show_excerpts: true
remote_theme: "mmistakes/minimal-mistakes@4.24.0"
minimal_mistakes_skin: dirt
minimal_mistakes_skin: dark
plugins:
- jekyll-include-cache
- jekyll-feed
analytics:
provider: "google-gtag"
google:
tracking_id: "G-WH7WNE01V5"
anonymize_ip: false # default
author:
name: "Matthew Tran"
avatar: "/assets/img/bio.jpg"

View File

@ -27,7 +27,9 @@
{% include page__meta.html type=include.type %}
{% if include.type == "list" and teaser %}
<div class="archive__item-teaser">
<a href="{{ post.url | relative_url }}" rel="permalink">
<img style="max-height: 15vh; width: auto; height: auto" src="{{ teaser | relative_url }}" alt="">
</a>
</div>
{% endif %}
{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}

View File

@ -0,0 +1,29 @@
/* ==========================================================================
Dark skin, modified slightly
========================================================================== */
/* Colors */
$background-color: #252a34 !default;
$text-color: #eaeaea !default;
$primary-color: #eaeaea !default;
$border-color: mix(#fff, $background-color, 20%) !default;
$code-background-color: mix(#000, $background-color, 15%) !default;
$code-background-color-dark: mix(#000, $background-color, 20%) !default;
$form-background-color: mix(#000, $background-color, 15%) !default;
$footer-background-color: mix(#000, $background-color, 30%) !default;
$link-color: mix($primary-color, $text-color, 40%) !default;
$link-color-hover: mix(#000, $link-color, 25%) !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: mix(#000, $text-color, 20%) !default;
$navicon-link-color-hover: mix(#000, $background-color, 30%) !default;
.author__urls.social-icons i,
.author__urls.social-icons .svg-inline--fa,
.page__footer-follow .social-icons i,
.page__footer-follow .social-icons .svg-inline--fa {
color: inherit;
}
.ais-search-box .ais-search-box--input {
background-color: $form-background-color;
}