mirror of
https://github.com/trwnh/hugo-theme-paradox.git
synced 2024-11-24 10:21:21 +00:00
move external link indicator to partial
This commit is contained in:
parent
b49da022f8
commit
063110718a
|
@ -26,20 +26,4 @@ a:hover {
|
||||||
|
|
||||||
@media (prefers-reduced-motion) {
|
@media (prefers-reduced-motion) {
|
||||||
a:link {transition: none}
|
a:link {transition: none}
|
||||||
}
|
|
||||||
|
|
||||||
/* mark external links */
|
|
||||||
|
|
||||||
a[href^="http"]:after {
|
|
||||||
content: "🡕";
|
|
||||||
}
|
|
||||||
|
|
||||||
a[href^="{{.Site.BaseURL}}"]:after
|
|
||||||
{
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
a[href^="http://localhost"]:after
|
|
||||||
{
|
|
||||||
display: none !important;
|
|
||||||
}
|
}
|
|
@ -5,12 +5,12 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||||
{{ $screen := resources.Get "styles/screen.scss" | resources.ExecuteAsTemplate "style.screen.scss" . | toCSS | minify | fingerprint }}
|
{{ $screen := resources.Get "styles/screen.scss" | toCSS | minify | fingerprint }}
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="{{ $screen.Permalink }}"
|
href="{{ $screen.Permalink }}"
|
||||||
integrity="{{ $screen.Data.Integrity }}"
|
integrity="{{ $screen.Data.Integrity }}"
|
||||||
media="screen" />
|
media="screen" />
|
||||||
{{ $print := resources.Get "styles/print.scss" | resources.ExecuteAsTemplate "style.print.scss" . | toCSS | minify | fingerprint }}
|
{{ $print := resources.Get "styles/print.scss" | toCSS | minify | fingerprint }}
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="{{ $print.Permalink }}"
|
href="{{ $print.Permalink }}"
|
||||||
integrity="{{ $print.Data.Integrity }}"
|
integrity="{{ $print.Data.Integrity }}"
|
||||||
|
@ -20,6 +20,7 @@
|
||||||
src="{{ $script.Permalink }}"
|
src="{{ $script.Permalink }}"
|
||||||
integrity="{{ $script.Data.Integrity }}">
|
integrity="{{ $script.Data.Integrity }}">
|
||||||
</script>
|
</script>
|
||||||
|
{{ partial "external-links.html" . }}
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css" integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY=" crossorigin="anonymous">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css" integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY=" crossorigin="anonymous">
|
||||||
{{ partial "seo.html" . }}
|
{{ partial "seo.html" . }}
|
||||||
{{ block "head" . }}
|
{{ block "head" . }}
|
||||||
|
|
15
layouts/partials/external-links.html
Normal file
15
layouts/partials/external-links.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<style>
|
||||||
|
a[href^="http"]:after {
|
||||||
|
content: "🡕";
|
||||||
|
}
|
||||||
|
|
||||||
|
a[href^="{{.Site.BaseURL}}"]:after
|
||||||
|
{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[href^="http://localhost"]:after
|
||||||
|
{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in a new issue