From 4c9617b45a6665219c1a08fc27e9607cf8c2aedb Mon Sep 17 00:00:00 2001 From: foo-dogsquared Date: Sun, 30 Sep 2018 18:07:50 +0800 Subject: [PATCH] Add Google Analytics --- _includes/analytics.html | Bin 0 -> 652 bytes _layouts/default.html | 3 +++ _layouts/home.html | 3 --- _layouts/post.html | 4 ---- _sass/_custom.scss | 14 ++++++++++---- assets/main/social-icons.svg | 8 ++++---- 6 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 _includes/analytics.html diff --git a/_includes/analytics.html b/_includes/analytics.html new file mode 100644 index 0000000000000000000000000000000000000000..66fe9c58f0f7eaa59bbd77669b2a3e38e2423c01 GIT binary patch literal 652 zcma)(PfNo<5XIkF@H?!%Bn6XF#Xs1n2tqGjJ&A`HYZ@_$G$|oizqY~BO$M-C%V)~OU`N#l`b@4HExB>_?^@#$zibbQf99d z(qAg4W2qN)wwl+dxMCY!)A|1wydCnhChfF9yH^f_alLb6u*Jt0&epc6Rr}er(X-2hU@cwkz>)D2V{sH}2 BXYl|4 literal 0 HcmV?d00001 diff --git a/_layouts/default.html b/_layouts/default.html index 58e141b..a456e98 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -15,6 +15,9 @@ {%- include footer.html -%} + {%- if jekyll.environment == 'production' -%} + {%- include analytics.html -%} + {%- endif -%} diff --git a/_layouts/home.html b/_layouts/home.html index e94ee83..98d5c9c 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -23,9 +23,6 @@ layout: default {% for post in paginator.posts %}

{{ post.title }}

- {% if post.alt_title %} -

{{ post.alt_title }}

- {% endif %}

{{ page.title | escape }}{% if page.subtitle %}: {{ page.subtitle | escape }}{% endif %}

- {% if page.alt_title %} -

{{ page.alt_title | escape }}

- {% endif %} - {%- include post_meta.html -%}
diff --git a/_sass/_custom.scss b/_sass/_custom.scss index ee7139d..b494cef 100644 --- a/_sass/_custom.scss +++ b/_sass/_custom.scss @@ -13,7 +13,7 @@ a:visited { text-decoration: none; &::after { color: $grey-color; - content: ' #'; + content: ' →'; } } } @@ -113,10 +113,12 @@ table:not(.rouge-table) { .previous-post { text-align: left; + max-width: 45%; } .next-post { text-align: right; + max-width: 45%; } @include media-query($on-laptop) { @@ -184,15 +186,19 @@ h2.post-alt-title { } .post-content { - > h1:not(:first-child){ + > h1:not(:first-of-type){ margin-top: $spacing-unit * 1.65; } - h2:not(:first-child) { + h2:first-of-type { + margin-top: $spacing-unit * 1.5; + } + + h2:not(:first-of-type) { margin-top: $spacing-unit * 1.4; } - h3:not(:first-child) { + h3:not(:first-of-type) { margin-top: $spacing-unit * 1.15; } diff --git a/assets/main/social-icons.svg b/assets/main/social-icons.svg index f095185..20b77e0 100644 --- a/assets/main/social-icons.svg +++ b/assets/main/social-icons.svg @@ -1,13 +1,13 @@ - + - + - + - dev.to icon +