145 lines
6.6 KiB
HTML
145 lines
6.6 KiB
HTML
##
|
|
title = "Demonstration"
|
|
url = "/"
|
|
layout = "home"
|
|
meta_title = "Welcome"
|
|
|
|
[collection blog]
|
|
handle = "Blog\Post"
|
|
|
|
[resources]
|
|
less[] = "pages/index.less"
|
|
==
|
|
{% set latestPosts = blog.limit(3).get %}
|
|
<div class="page-index">
|
|
<div class="jumbotron">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<div class="jumbotron-intro">
|
|
<h1>Welcome to October CMS!</h1>
|
|
<p class="lead">
|
|
This is the October CMS demo theme that explores the core features. You can use it as a foundation for your new website.
|
|
</p>
|
|
<p>
|
|
{% if backendUrl %}
|
|
<a href="{{ backendUrl }}" target="backend" class="btn btn-outline-light btn-pill">
|
|
Explore the Backend Area
|
|
</a>
|
|
{% else %}
|
|
<a href="https://octobercms.com/features" target="_blank" class="btn btn-outline-light btn-pill">
|
|
Explore the Platform Features
|
|
</a>
|
|
{% endif %}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-6">
|
|
<div class="jumbotron-product">
|
|
<img src="{{ 'assets/images/homepage/header-image.png'|theme }}" class="img-fluid" alt="Product Shot" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="jumbotron-decoration-1"></div>
|
|
<div class="jumbotron-decoration-2"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="intro">
|
|
<div class="container">
|
|
<img src="{{ 'assets/images/logo-leaf.png'|theme }}" class="img-leaf" alt="October CMS" />
|
|
<h2>About This Page</h2>
|
|
<p class="lead">
|
|
This page demonstrates the basic CMS features. Usually each page built with October CMS is a combination of a layout, page, partials and content blocks, although in simple cases you can just use a page without anything else.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="feature">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-5 offset-lg-1">
|
|
<div class="feature-content">
|
|
<p><div class="feature-pill"><span>CMS Feature</span></div></p>
|
|
<h3>Layouts</h3>
|
|
<p>Layouts define the page scaffold. Layout files include everything that repeats on each page, such as the HTML, HEAD and BODY tags, CSS and JavaScript references. The page menu and footer in the Demo theme are defined in the layout as well. Layouts are optional — you can define everything right in a page file.</p>
|
|
<a href="https://docs.octobercms.com/3.x/cms/themes/layouts.html" target="_blank" class="btn btn-outline-primary btn-pill">Learn more about Layouts</a>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-6">
|
|
<div class="feature-image">
|
|
<img src="{{ 'assets/images/homepage/layouts-image.png'|theme }}" class="img-fluid" alt="CMS Layouts" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="feature">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<div class="feature-image">
|
|
<img src="{{ 'assets/images/homepage/pages-image.png'|theme }}" class="img-fluid" alt="CMS Pages" />
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-5">
|
|
<div class="feature-content">
|
|
<p><div class="feature-pill"><span>Included</span></div></p>
|
|
<h3>Pages</h3>
|
|
<p>Pages hold the content for each URL. A page file defines the page URL and the page content. Pages are rendered inside layouts with the page tag that should be called in the layout code.</p>
|
|
<a href="https://docs.octobercms.com/3.x/cms/themes/pages.html" target="_blank" class="btn btn-outline-primary btn-pill">Learn more about Pages</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="feature pb-5">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-5 offset-lg-1">
|
|
<div class="feature-content">
|
|
<p><div class="feature-pill"><span>CMS Feature</span></div></p>
|
|
<h3>Partials</h3>
|
|
<p>
|
|
Partials contain chunks of HTML code that are used anywhere throughout your website. They allow you to simplify the code of complex pages and reuse code in multiple places.
|
|
Also, partials are an important part of the <a href="https://docs.octobercms.com/3.x/cms/ajax/introduction.html" target="_blank">built-in AJAX framework</a>.
|
|
</p>
|
|
<a href="https://docs.octobercms.com/3.x/cms/themes/partials.html" target="_blank" class="btn btn-outline-primary btn-pill">Learn more about Partials</a>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-6">
|
|
<div class="feature-image">
|
|
<img src="{{ 'assets/images/homepage/partials-image.png'|theme }}" class="img-fluid" alt="CMS Layouts" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="actioncall">
|
|
<div class="container">
|
|
<h3>There are more great CMS features!</h3>
|
|
<p class="lead">Visit the October CMS Documentation website to learn everything about the CMS features.</p>
|
|
<a href="https://octobercms.com/features" target="_blank" class="btn btn-primary btn-lg btn-pill">Learn more about October CMS</a>
|
|
<div class="actioncall-decoration-1"></div>
|
|
<div class="actioncall-decoration-2"></div>
|
|
<div class="actioncall-decoration-3"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="latestnews">
|
|
<div class="container">
|
|
<h3>Latest News</h3>
|
|
|
|
<div class="blog-featured row row-cols-1 row-cols-md-2 row-cols-xl-3 g-3 pb-5">
|
|
{% for post in latestPosts %}
|
|
{% partial 'blog/post-card' post=post %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |