menzilmekan-backend/themes/demo
mrNikto9 896ecdcfe0 first commit 2024-07-13 15:57:07 +05:00
..
assets first commit 2024-07-13 15:57:07 +05:00
content/ajax first commit 2024-07-13 15:57:07 +05:00
layouts first commit 2024-07-13 15:57:07 +05:00
pages first commit 2024-07-13 15:57:07 +05:00
partials first commit 2024-07-13 15:57:07 +05:00
seeds first commit 2024-07-13 15:57:07 +05:00
.gitignore first commit 2024-07-13 15:57:07 +05:00
README.md first commit 2024-07-13 15:57:07 +05:00
composer.json first commit 2024-07-13 15:57:07 +05:00
mix-manifest.json first commit 2024-07-13 15:57:07 +05:00
package.json first commit 2024-07-13 15:57:07 +05:00
theme.yaml first commit 2024-07-13 15:57:07 +05:00
webpack.config.js first commit 2024-07-13 15:57:07 +05:00
webpack.mix.js first commit 2024-07-13 15:57:07 +05:00

README.md

Demo Theme

October CMS demo theme that demonstrates the basic core functionality and utilizes the accompanying demo plugin. It is a great theme to copy when building a site from scratch.

The theme acts as a reference implementation for default component markup when distributing plugins.

Have fun!

Combining CSS and JavaScript

This theme doesn't combine assets for performance reasons. To combine the stylesheets, replace the following lines in the default layout. When combining with this theme, we recommend enabling the config enableAssetDeepHashing in the file config/cms.php.

Uncombined stylesheets:

<link href="{{ 'assets/css/vendor.css'|theme }}" rel="stylesheet">
<link href="{{ 'assets/css/theme.css'|theme }}" rel="stylesheet">

Combined stylesheets:

<link href="{{ [
    '@framework.extras',
    'assets/less/vendor.less',
    'assets/less/theme.less'
]|theme }}" rel="stylesheet">

Note: October also includes an SCSS compiler, if you prefer.

Uncombined JavaScript:

<script src="{{ 'assets/vendor/jquery.js'|theme }}"></script>
<script src="{{ 'assets/vendor/bootstrap.js'|theme }}"></script>
<script src="{{ 'assets/javascript/app.js'|theme }}"></script>
{% framework extras turbo %}

Combined JavaScript:

<script src="{{ [
    '@jquery',
    '@framework',
    '@framework.extras',
    'assets/vendor/bootstrap.js',
    'assets/javascript/app.js'
]|theme }}"></script>

Important: Make sure you keep the {% styles %} and {% scripts %} placeholder tags as these are used by plugins for injecting assets.