mirror of
https://github.com/flextype/flextype.git
synced 2025-08-10 23:24:04 +02:00
content folder is removed and pages folder is added instead
This commit is contained in:
@@ -80,7 +80,7 @@ class Pages
|
||||
if ($this->rawilum['filesystem']->exists($template_path)) {
|
||||
include $template_path;
|
||||
} else {
|
||||
throw new RuntimeException("Template does not exist.");
|
||||
throw new RuntimeException("Template {$template_name} does not exist.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -15,8 +15,8 @@ define('ROOT_DIR', str_replace(DIRECTORY_SEPARATOR, '/', getcwd()));
|
||||
// Define the path to the site directory (without trailing slash).
|
||||
define('SITE_PATH', ROOT_DIR . '/site-katerinasitnikova');
|
||||
|
||||
// Define the path to the content directory (without trailing slash).
|
||||
define('CONTENT_PATH', SITE_PATH . '/content');
|
||||
// Define the path to the pages directory (without trailing slash).
|
||||
define('PAGES_PATH', SITE_PATH . '/pages');
|
||||
|
||||
// Define the path to the themes directory (without trailing slash).
|
||||
define('THEMES_PATH', SITE_PATH . '/themes');
|
||||
|
7
site/pages/404/index.md
Executable file
7
site/pages/404/index.md
Executable file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: Error 404
|
||||
robots: noindex,nofollow
|
||||
---
|
||||
|
||||
## Error 404
|
||||
We're sorry but the page you are looking for doesn't appear to exist!
|
15
site/pages/contact/index.md
Executable file
15
site/pages/contact/index.md
Executable file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
title: Contact
|
||||
description: Rawilum is a simple and light-weighted Content Management System
|
||||
---
|
||||
|
||||
## Stay in touch
|
||||
|
||||
[Rawilum official site](http://Rawilum.org/)
|
||||
[Rawilum forum](http://forum.Rawilum.org/)
|
||||
[Rawilum on Github](https://github.com/Rawilum/Rawilum)
|
||||
[Rawilum Gitter chat room](https://gitter.im/Rawilum/Rawilum)
|
||||
|
||||
## Follow us on Twitter
|
||||
|
||||
Follow Rawilum on Twitter [@Rawilum_cms](https://twitter.com/Rawilum_cms)
|
7
site/pages/home/index.md
Executable file
7
site/pages/home/index.md
Executable file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: Главная страница
|
||||
description: страница
|
||||
template: home
|
||||
---
|
||||
|
||||
home
|
Reference in New Issue
Block a user