Open article link in a new tab

Fixes T34
This commit is contained in:
Marcel Kapfer (mmk2410) 2016-04-25 18:47:02 +02:00
parent 5d051c1b0e
commit 432b8d307a
2 changed files with 7 additions and 5 deletions

View file

@ -294,11 +294,11 @@ if ($config["design"]["drawer"] == "on") {
?>
<section class="card" id="intro">
<div class="articletext">
<?php // generate the html text from the markdown file
$intro = Parsedown::instance()
->setBreaksEnabled(true)// with linebreaks
->text($file);
echo $intro; // PRINTS THE SH****
<?php // generate the html text from the markdown file
$intro = Parsedown::instance()
->setBreaksEnabled(true)// with linebreaks
->text($file);
echo $intro; // PRINTS THE SH****
?>
</div>
</section>

View file

@ -68,6 +68,8 @@ var main = function () { // main function; called below
});
$('.articletext a').attr('target', '_blank');
};
$(document).ready(main); // run if document is loaded