Commit e9030bbd authored by rene's avatar rene
Browse files

cambiar links externos

parent 57a6a500
......@@ -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>
......@@ -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');
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment