Skip to content

Commit de0d583

Browse files
authored
Merge pull request #24 from qwerdee/prevent-tag-duplication
Prevent same tags being repeated multiple times
2 parents 86cd168 + 018c539 commit de0d583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MetaTags.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public function __construct(Page $page)
5757
$this->data = A::merge($this->data, $templates[$page->template()->name()]);
5858
}
5959

60+
$this->addTagsFromTemplate();
61+
6062
static::$instances[$page->id()] = $this;
6163
}
6264

@@ -74,8 +76,6 @@ public static function instance($page)
7476

7577
public function render($groups = null)
7678
{
77-
$this->addTagsFromTemplate();
78-
7979
return $this->tags->render($groups);
8080
}
8181

0 commit comments

Comments
 (0)