Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
partido-interdimensional-pirata
Dossier Desobediencia Cibernética
Commits
e9030bbd
Commit
e9030bbd
authored
Apr 19, 2020
by
rene
Browse files
cambiar links externos
parent
57a6a500
Changes
2
Hide whitespace changes
Inline
Side-by-side
_layouts/default.html
View file @
e9030bbd
...
...
@@ -44,5 +44,11 @@
<footer>
{{ site.i18n.footer.attribution | markdownify }}
</footer>
<script
type=
"text/javascript"
>
document
.
addEventListener
(
'
turbolinks:load
'
,
()
=>
{
document
.
querySelectorAll
(
"
a[href^='http://'], a[href^='https://'], a[href^='//']
"
).
forEach
(
a
=>
a
.
target
=
'
_blank
'
);
});
</script>
</body>
</html>
_sass/custom.scss
View file @
e9030bbd
...
...
@@ -70,3 +70,12 @@ blockquote {
border-left
:
solid
;
p
{
margin
:
0
;
}
}
a
{
&
[
target
=
_blank
]
{
&
:after
{
content
:
url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAV0lEQVR4Xq2QwQ2AAAwC3cmd2Kk7sRP64CEJ9qOX8OPatMc/QKppnEPhTmJh23CLiwAqIw21CybKQ28qQi37WGFYBJcwfJQpP8LlEHKyZMF0IdmF13zlAjZ/6H4wb+mUAAAAAElFTkSuQmCC')
;
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment