6 changed files with 32 additions and 18 deletions
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
<?php |
||||
|
||||
namespace App\Service; |
||||
|
||||
class MetadataRetrievalException extends \Exception |
||||
{ |
||||
public function __construct(string $message = "Failed to retrieve metadata", int $code = 0, ?\Throwable $previous = null) |
||||
{ |
||||
parent::__construct($message, $code, $previous); |
||||
} |
||||
} |
||||
@ -1,7 +1,8 @@
@@ -1,7 +1,8 @@
|
||||
<div {{ attributes }}> |
||||
{% set is_author_profile = is_author_profile|default(false) %} |
||||
{% for item in list %} |
||||
{% if item.slug is not empty and item.title is not empty %} |
||||
<twig:Molecules:Card :article="item"></twig:Molecules:Card> |
||||
<twig:Molecules:Card :article="item" :is_author_profile="is_author_profile"></twig:Molecules:Card> |
||||
{% endif %} |
||||
{% endfor %} |
||||
</div> |
||||
|
||||
Loading…
Reference in new issue