Open article link in a new tab
Fixes T34
This commit is contained in:
parent
5d051c1b0e
commit
432b8d307a
2 changed files with 7 additions and 5 deletions
10
index.php
10
index.php
|
@ -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>
|
||||
|
|
|
@ -68,6 +68,8 @@ var main = function () { // main function; called below
|
|||
});
|
||||
|
||||
|
||||
$('.articletext a').attr('target', '_blank');
|
||||
|
||||
};
|
||||
|
||||
$(document).ready(main); // run if document is loaded
|
||||
|
|
Reference in a new issue