From 4824f4623d47064ee29c273ad60a7d77f1ca9e0a Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:29:56 +0530 Subject: [PATCH] Mark External link with an SVG icon in profile-mode buttons and Menu --- layouts/partials/header.html | 8 ++++++++ layouts/partials/index_profile.html | 12 +++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a2b09a4a..732f8236 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -131,6 +131,14 @@ {{- .Name -}} {{ .Post -}} + {{- if (findRE "://" .URL) }} + + + + + + {{- end }} {{- end }} diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index 515073e4..fe489427 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -35,7 +35,17 @@
{{- range . }} - {{ .name }} + + {{ .name }} + {{- if (findRE "://" .url) }} + + + + + + {{- end }} + {{- end }}