Skip to content

Commit

Permalink
Remove unnecessary spaces (octobercms#5602)
Browse files Browse the repository at this point in the history
  • Loading branch information
gergo85 authored May 31, 2021
1 parent 3dc6cb4 commit b54c718
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions themes/demo/pages/home.htm
Original file line number Diff line number Diff line change
Expand Up @@ -39,76 +39,76 @@ <h2>Overview</h2>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<h3 class="header-icon cms-layout">Layouts</h3>

<p>Layouts define the page scaffold. The layout file <code>layouts/default.htm</code> includes 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.</p>
</div>
</div>

<div class="row">
<div class="col-md-5 col-md-offset-1">
<h3 class="header-icon cms-page">Pages</h3>

<p>Pages hold the content for each URL. The page file <em>pages/home.htm</em> defines the page URL (<code>/</code> for this page) and the page content. Pages are rendered inside layouts with the <a href="https://octobercms.com/docs/markup/tag-page">page</a> tag that should be called in the layout code. Layouts are optional — you can define everything right in the page file.</p>

<pre>{{ "{% page %}" }}</pre>
</div>

<div class="col-md-5">
<h3 class="header-icon cms-partial">Partials</h3>

<p>Partials are chunks of HTML defined in separate files that can be included inside pages, layouts or other partials. Partials are rendered with the <a href="https://octobercms.com/docs/markup/tag-partial">partial</a> tag. You may place partials inside folders too. In the example below we placed the footer content to the <em>partials/site/footer.htm</em> partial.</p>

<pre>{% content "partials.txt" %}</pre>
</div>
</div>

<div class="row">
<div class="col-md-10 col-md-offset-1">
<h3 class="header-icon cms-content-block">Content blocks</h3>

<p>Content blocks are text or HTML blocks that can be edited separately from the page or layout. The introductory text used on this page is defined in the <em>content/welcome.htm</em> file. Content blocks are defined and rendered with the <a href="https://octobercms.com/docs/markup/tag-content">content</a> tag:</p>

<pre>{{ "{% content \"content-name.htm\" %}" }}</pre>
</div>
</div>

<div class="row">
<div class="col-md-10 col-md-offset-1">
<h3 class="header-icon cms-placeholder">Placeholders</h3>

<p>Placeholders allow pages to inject content to a layout. The common use is injecting page-specific references to CSS or JavaScript files to the HEAD tag defined in the layout. Placeholders are defined in the layout file and they have names so that they can be referred in the page. Placeholders use the <a href="https://octobercms.com/docs/markup/tag-placeholder">placeholder and put</a> tags.</p>
</div>
</div>

<div class="row">
<div class="col-md-4 col-md-offset-1">
<div class="code-tab">Layout file</div>
<pre>{% content "placeholder/layout.txt" %}</pre>
</div>

<div class="col-md-6">
<div class="code-tab">Page file</div>
<pre>{% content "placeholder/page.txt" %}</pre>
</div>
</div>

<div class="row">
<div class="col-md-10 col-md-offset-1">
<h3 class="header-icon cms-asset">Assets</h3>

<p>Assets are resource files like images, JavaScript and stylesheets. This theme stores its asset files (JavaScript, CSS, images, fonts, etc.) in the <em>themes/demo/assets</em> directory. This theme is packaged with these useful third-party tools:</p>

<ul class="list-with-ticks">
<li><a target="_blank" href="http://getbootstrap.com/">Twitter Bootstrap</a></li>
<li><a target="_blank" href="http://fontawesome.io/3.2.1/">Font Awesome</a></li>
<li><a target="_blank" href="http://www.google.com/fonts/specimen/Lato">Lato webfont</a></li>
<li><a target="_blank" href="https://codemirror.net/">CodeMirror</a></li>
</ul>

<div class="p-t p-b">
<p><a href="{{ 'ajax'|page }}" class="btn btn-primary btn-cta">Continue to AJAX framework ⟶</a></p>
</div>
</div>
</div>
</div>
</div>
</div>

0 comments on commit b54c718

Please sign in to comment.