diff --git a/README.md b/README.md index fcff917..0e59eec 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ A função `site_tools_academic_icon(name)` retorna o SVG inline do ícone solic | Nome | Plataforma | Cor | |------|------------|-----| +| `home` | Página pessoal | sem fill (definir via CSS) | | `lattes` | Plataforma Lattes (CNPq) | `#005195` | | `orcid` | ORCID | `#a6ce39` | | `mathscinet` | MathSciNet (AMS) | `#0f4f96` | diff --git a/src/TwigExtension/AcademicIconsExtension.php b/src/TwigExtension/AcademicIconsExtension.php index c3f6dbf..960edbc 100644 --- a/src/TwigExtension/AcademicIconsExtension.php +++ b/src/TwigExtension/AcademicIconsExtension.php @@ -43,6 +43,7 @@ class AcademicIconsExtension extends AbstractExtension { */ public function renderIcon(string $name): MarkupInterface { return Markup::create(match ($name) { + 'home' => $this->iconHome(), 'lattes' => $this->iconLattes(), 'orcid' => $this->iconOrcid(), 'mathscinet' => $this->iconMathSciNet(), @@ -50,6 +51,17 @@ class AcademicIconsExtension extends AbstractExtension { }); } + /** + * Ícone de página pessoal (casinha). + */ + protected function iconHome(): string { + return <<<'SVG' + +SVG; + } + /** * Ícone da Plataforma Lattes (CNPq). *