diff --git a/_layouts/post.html b/_layouts/post.html
index 528412b..188c930 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -16,8 +16,23 @@ tail_includes:
+ {% capture author_name %}{{ page.author.name | default: site.social.name }}{% endcapture %}
+ {% assign author_link = nil %}
+
+ {% if page.author.link %}
+ {% assign author_link = page.author.link %}
+ {% elsif author_name == site.social.name %}
+ {% assign author_link = site.social.links[0] %}
+ {% endif %}
+
{{ site.data.locales[lang].post.written_by }}
-
{{ page.author | default: site.social.name }}
+
+ {% if author_link %}
+ {{ author_name }}
+ {% else %}
+ {{ author_name }}
+ {% endif %}
+
diff --git a/_posts/2019-08-08-text-and-typography.md b/_posts/2019-08-08-text-and-typography.md
index 762ad5a..bc1f553 100644
--- a/_posts/2019-08-08-text-and-typography.md
+++ b/_posts/2019-08-08-text-and-typography.md
@@ -1,6 +1,8 @@
---
title: Text and Typography
-author: Cotes Chung
+author:
+ name: Cotes Chung
+ link: https://github.com/cotes2020
date: 2019-08-08 11:33:00 +0800
categories: [Blogging, Demo]
tags: [typography]
diff --git a/_posts/2019-08-08-write-a-new-post.md b/_posts/2019-08-08-write-a-new-post.md
index c750234..9ea249b 100644
--- a/_posts/2019-08-08-write-a-new-post.md
+++ b/_posts/2019-08-08-write-a-new-post.md
@@ -1,6 +1,8 @@
---
title: Writing a New Post
-author: Cotes Chung
+author:
+ name: Cotes Chung
+ link: https://github.com/cotes2020
date: 2019-08-08 14:10:00 +0800
categories: [Blogging, Tutorial]
tags: [writing]
diff --git a/_posts/2019-08-09-getting-started.md b/_posts/2019-08-09-getting-started.md
index 3596dde..59108d2 100644
--- a/_posts/2019-08-09-getting-started.md
+++ b/_posts/2019-08-09-getting-started.md
@@ -1,6 +1,8 @@
---
title: Getting Started
-author: Cotes Chung
+author:
+ name: Cotes Chung
+ link: https://github.com/cotes2020
date: 2019-08-09 20:55:00 +0800
categories: [Blogging, Tutorial]
tags: [getting started]
diff --git a/_posts/2019-08-11-customize-the-favicon.md b/_posts/2019-08-11-customize-the-favicon.md
index d5d70b3..dca8f5c 100644
--- a/_posts/2019-08-11-customize-the-favicon.md
+++ b/_posts/2019-08-11-customize-the-favicon.md
@@ -1,6 +1,8 @@
---
title: Customize the Favicon
-author: Cotes Chung
+author:
+ name: Cotes Chung
+ link: https://github.com/cotes2020
date: 2019-08-11 00:34:00 +0800
categories: [Blogging, Tutorial]
tags: [favicon]
diff --git a/_posts/2021-01-03-enable-google-pv.md b/_posts/2021-01-03-enable-google-pv.md
index de3c3f7..c9883a6 100644
--- a/_posts/2021-01-03-enable-google-pv.md
+++ b/_posts/2021-01-03-enable-google-pv.md
@@ -1,6 +1,8 @@
---
title: Enable Google Page Views
-author: Dinesh Prasanth Moluguwan Krishnamoorthy
+author:
+ name: Dinesh Prasanth Moluguwan Krishnamoorthy
+ link: https://github.com/SilleBille
date: 2021-01-03 18:32:00 -0500
categories: [Blogging, Tutorial]
tags: [google analytics, pageviews]
diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss
index 35eaf7e..2834866 100644
--- a/_sass/addon/commons.scss
+++ b/_sass/addon/commons.scss
@@ -395,8 +395,6 @@ i { // fontawesome icons
word-spacing: 1px;
a {
- @extend %link-underline;
-
&:not(:last-child) {
margin-right: 2px;
}
diff --git a/_sass/layout/post.scss b/_sass/layout/post.scss
index 91562e0..2cb10e5 100644
--- a/_sass/layout/post.scss
+++ b/_sass/layout/post.scss
@@ -22,13 +22,21 @@
padding-right: $pr;
}
+%text-color {
+ color: var(--text-color);
+}
+
h1 + .post-meta {
span + span::before {
@include dot;
}
em {
- color: var(--text-color);
+ @extend %text-color;
+
+ a {
+ @extend %text-color;
+ }
}
}
@@ -45,6 +53,10 @@ h1 + .post-meta {
margin-top: 6rem;
border-bottom: 1px double var(--main-border-color);
font-size: 0.85rem;
+
+ .post-meta a {
+ @extend %link-underline;
+ }
}
.post-tags {
@@ -179,7 +191,7 @@ nav[data-toggle=toc] {
transition: all 0.3s ease-in-out;
h3 {
- color: var(--text-color);
+ @extend %text-color;
}
&:hover {