Skip to content

Commit

Permalink
Theme support
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoldbird committed Dec 29, 2016
1 parent 119f177 commit 32dc0aa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/config/config.php
Expand Up @@ -17,7 +17,7 @@
'controllersDir' => APP_PATH . '/controllers/',
'modelsDir' => APP_PATH . '/models/',
'migrationsDir' => APP_PATH . '/migrations/',
'viewsDir' => APP_PATH . '/views/',
'viewsDir' => BASE_PATH . '/public/themes/default',
'pluginsDir' => APP_PATH . '/plugins/',
'libraryDir' => APP_PATH . '/library/',
'cacheDir' => BASE_PATH . '/cache/',
Expand Down
15 changes: 15 additions & 0 deletions public/themes/default/index.volt
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cernl/tembo</title>
<link rel="stylesheet" href="/css/theme.css">
</head>
<body>
<div class="container">
{{ content() }}
</div>
</body>
</html>
7 changes: 7 additions & 0 deletions public/themes/default/index/index.volt
@@ -0,0 +1,7 @@
<div class="page-header">
<h1>Welcome to cernl/tembo</h1>
</div>

<p>You're viewing the default theme.</p>
<p>This content is in <code>themes/default/index/index.volt</code></p>

0 comments on commit 32dc0aa

Please sign in to comment.