diff options
| -rw-r--r-- | assets/css/style.css | 5 | ||||
| -rw-r--r-- | layouts/partials/header.html | 2 | ||||
| -rw-r--r-- | static/img/external-link.svg | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/assets/css/style.css b/assets/css/style.css index 94d37fe..ad58ae4 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -54,6 +54,11 @@ a { color: inherit; } +a[href*="//"]:not([href*="mysite.com"]):after { + content: url(/img/external-link.svg); + padding-left: 2px; +} + ol, ul { margin: 8px; } diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 0a5998a..9aff9bd 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1 +1 @@ -<div><a href="{{ $.Site.BaseURL }}">{{ .Site.Params.Name }}</a></div> +<div><a href="{{ $.Site.BaseURL | relURL }}">{{ .Site.Params.Name }}</a></div> diff --git a/static/img/external-link.svg b/static/img/external-link.svg new file mode 100644 index 0000000..766ff8c --- /dev/null +++ b/static/img/external-link.svg @@ -0,0 +1,3 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 10 10" fill="white"> + <path d="M0 0v8h8v-2h-1v1h-6v-6h1v-1h-2zm4 0l1.5 1.5-2.5 2.5 1 1 2.5-2.5 1.5 1.5v-4h-4z" /> +</svg> |
