A good theme for a personal page. Includes: * Header with avatar, short bio and social links * simple, blog and modular templates * multilang support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
500 B

<?php namespace Grav\Theme;
use Grav\Common\Theme;
class Personal extends Theme
{
public static function getSubscribedEvents()
{
return [
'onThemeInitialized' => ['onThemeInitialized', 0]
];
}
public function onThemeInitialized()
{
$this->enable([
'onTwigSiteVariables' => ['onTwigSiteVariables', 0]
]);
}
public function onTwigSiteVariables()
{
$this->grav['twig']->twig_vars['theme_config'] = $this->grav['config']->get('themes.personal');
}
}