1
0

Temporarily disabled smart links

This commit is contained in:
Richard Dern 2024-05-09 21:52:57 +02:00
parent 89d8a897c4
commit f1a7dadc9b

View File

@ -22,7 +22,7 @@ public function __construct(
$this->slug = Str::slug($term);
$this->path = sprintf('/termes/%s', $this->slug);
$this->bundle = new Bundle($this->path, $source->getDisk());
$this->link = new Link($this->path, $term, $source);
//$this->link = new Link($this->path, $term, $source);
$this->bundle->load();
@ -46,7 +46,7 @@ public function __construct(
public function render()
{
return (string) $this->link->toHtmlElement();
return sprintf('<a href="%s">%s</a>', $this->path, $this->term);
}
public static function register(string $term, string $subCategory, Bundle $source)