add links list style

This commit is contained in:
isUnknown 2024-09-04 14:48:50 +02:00
parent 100fd301ee
commit 0d60b9289f
4 changed files with 45 additions and 6 deletions

6
site/snippets/a.php Normal file
View file

@ -0,0 +1,6 @@
<?php
$target = str_contains($url, $site->url()) ? '' : ' target="_blank"';
$title = isset($title) ? $title : '';
$text = isset($text) ? $text : '';
?>
<a href="<?= $url ?>"<?= $target ?>><?= $text ?></a>