diff --git a/content/page/sample.md b/content/page/sample.md index 8a8b4e8..4ba1c88 100644 --- a/content/page/sample.md +++ b/content/page/sample.md @@ -2,7 +2,7 @@ title: "Sample" date: 2021-11-01T13:18:45+01:00 -author: "Mostafa" +author: "Mostafa Mirmousavi" categories: [] tags: [] diff --git a/themes/mostafa-hugo-theme/assets/sass/_articles.scss b/themes/mostafa-hugo-theme/assets/sass/_articles.scss index 1076b31..4c9c081 100644 --- a/themes/mostafa-hugo-theme/assets/sass/_articles.scss +++ b/themes/mostafa-hugo-theme/assets/sass/_articles.scss @@ -274,6 +274,25 @@ article { } } + .author { + margin-top: 10px; + .link { + display: inline-block; + border: 1px solid #4c4c4c; + color: #7a7a7a; + border-radius: 4px; + font-family: $article-footer-font; + font-size: 0.7em; + padding: 2px 5px; + text-decoration: none; + + &:hover { + color: $header-text-color; + border-color: #7a7a7a; + } + } + } + } .footer { diff --git a/themes/mostafa-hugo-theme/layouts/partials/default-content.html b/themes/mostafa-hugo-theme/layouts/partials/default-content.html index 7fa7762..8c4cde2 100644 --- a/themes/mostafa-hugo-theme/layouts/partials/default-content.html +++ b/themes/mostafa-hugo-theme/layouts/partials/default-content.html @@ -75,4 +75,14 @@