Skip to content

Commit ddaae49

Browse files
SEO 2
1 parent 5706a74 commit ddaae49

File tree

8 files changed

+21
-4
lines changed

8 files changed

+21
-4
lines changed

october.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ plugins:
2828
- Rainlab.User
2929
- Indikator.Backend
3030
- Inetis.Dump
31+
- Zen.Robots
3132
- October.Drivers
3233
- OFFLINE.GDPR
3334
- OFFLINE.Speedy
+1-1
Loading

themes/october-tricks/pages/account.htm

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
url = "/account"
33
layout = "default"
44
is_hidden = 0
5+
meta_description = "Manage your octobertricks.com account"
56

67
[account]
78
paramCode = "code"

themes/october-tricks/pages/cookies.htm

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
url = "/cookies"
33
layout = "default"
44
is_hidden = 0
5+
meta_description = "Manage all octobertricks.com cookies"
56

67
[cookieManager]
78
==

themes/october-tricks/pages/trick-form.htm

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
url = "/trick-edit/:slug?"
33
layout = "default"
44
is_hidden = 0
5+
meta_description = "Edit a trick on octobertricks.com"
56

67
[trickForm]
78
slug = "{{ :slug }}"

themes/october-tricks/partials/header.htm

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
==
2+
function onStart()
3+
{
4+
$this['tag'] = $this->page->url === '/' ? 'h1' : 'h2';
5+
}
6+
==
17
<header class="header">
28
<div class="wrapper">
39
<div class="row row--header">
@@ -17,7 +23,7 @@
1723
</nav>
1824
</div>
1925
<section class="lead">
20-
<h1 class="lead__heading">October CMS resources and help articles</h1>
26+
<{{ tag }} class="lead__heading">October CMS resources and help articles</{{ tag }}>
2127
<p class="lead__text">Simple and to the point. Optimized by the community.</p>
2228
</section>
2329
{% partial 'searchbox' %}

themes/october-tricks/partials/meta.htm

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
==
2+
function onStart()
3+
{
4+
$this['canonical'] = request()->url();
5+
}
6+
==
17
{% set company_name = 'October CMS Tricks' %}
28
{% set homepage_title = 'October Tricks · October CMS resources and help articles' %}
39
{% set theme_color = '#f35627' %}
@@ -17,6 +23,7 @@
1723
<meta name="theme-color" content="{{ theme_color }}">
1824
<meta name="description" content="{{ this.page.meta_description }}">
1925
<meta name="viewport" content="width=device-width, initial-scale=1">
26+
<link rel="canonical" href="{{ canonical }}">
2027

2128
<link rel="icon" type="image/png" href="{{ 'assets/favicon-16x16.png'|theme }}" sizes="16x16">
2229
<link rel="icon" type="image/png" href="{{ 'assets/favicon-32x32.png'|theme }}" sizes="32x32">

themes/october-tricks/partials/trickForm/default.htm

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<div data-validate-for="title"></div>
99
</div>
1010
<div class="form-group">
11-
<label for="content">Your trick</label>
11+
<label for="trick_content">Your trick</label>
1212
<div class="form-comment">Keep it short and concise! Markdown is supported.</div>
13-
<textarea id="content"
13+
<textarea id="trick_content"
1414
name="content"
1515
class="form-control form-control--markdown"
1616
rows="10"

0 commit comments

Comments
 (0)