From a1250ee75fc46b60e8dd22a7c48bf39d158f804f Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Mon, 24 Aug 2020 12:07:58 +0200 Subject: [PATCH] feat(article): add render-link hook --- assets/scss/partials/layout/article.scss | 3 +-- layouts/_default/_markup/render-link.html | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 layouts/_default/_markup/render-link.html diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss index df76945..4e57e4c 100644 --- a/assets/scss/partials/layout/article.scss +++ b/assets/scss/partials/layout/article.scss @@ -301,8 +301,7 @@ } } - a { - border-bottom: 1px solid var(--accent-color); + a.link { box-shadow: 0px -2px 0px var(--accent-color) inset; transition: all 0.3s ease; diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..843854d --- /dev/null +++ b/layouts/_default/_markup/render-link.html @@ -0,0 +1,3 @@ +{{ .Text | safeHTML }} \ No newline at end of file