Skip to content

Commit a08d8eb

Browse files
authored
Merge pull request #160 from openmcac/linked_groups
Add links to groups for improved SEO
2 parents f4afeea + e21a3b5 commit a08d8eb

File tree

4 files changed

+25
-24
lines changed

4 files changed

+25
-24
lines changed

app/styles/pages/index.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636

3737
.description {
3838
margin-top: $padding-m;
39+
40+
a {
41+
@include body-font();
42+
}
3943
}
4044

4145
&:first-of-type {

app/styles/utils.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
3939

4040
@mixin body-font() {
4141
font-family: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
42+
color: #333;
4243
}
4344

4445
@mixin post-display-font() {

app/templates/index.hbs

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,31 @@
2424
</div>
2525
</div>
2626
<div class="row">
27-
<div class="col-sm-offset-2 col-sm-4 group" {{action "viewGroup" "childrens-church"}}>
28-
<img src={{cloudinary-fetch url="https://mcac.s3.amazonaws.com/groups/fabe359d-8611-4112-b675-842cd40ef57e.jpg"
29-
width=200
30-
radius="max"
31-
height=200 crop="fill"}} />
27+
<div class="col-sm-offset-2 col-sm-4 group">
28+
{{#link-to "group.index" "childrens-church"}}
29+
<img src={{cloudinary-fetch url="https://mcac.s3.amazonaws.com/groups/fabe359d-8611-4112-b675-842cd40ef57e.jpg"
30+
width=200
31+
radius="max"
32+
height=200 crop="fill"}} />
33+
{{/link-to}}
3234
<div class="description">
33-
Children's Church
35+
{{#link-to "group.index" "childrens-church"}}
36+
Children's Church
37+
{{/link-to}}
3438
</div>
3539
</div>
3640
<div class="col-sm-4 group" {{action "viewGroup" "english-service"}}>
37-
<img src={{cloudinary-fetch url="https://mcac.s3.amazonaws.com/groups/5c7d76a8-d195-4907-951d-5b3fb00c438d.jpg"
38-
width=200
39-
radius="max"
40-
height=200 crop="fill"}} />
41+
{{#link-to "group.index" "english-service"}}
42+
<img src={{cloudinary-fetch url="https://mcac.s3.amazonaws.com/groups/5c7d76a8-d195-4907-951d-5b3fb00c438d.jpg"
43+
width=200
44+
radius="max"
45+
height=200 crop="fill"}} />
46+
47+
{{/link-to}}
4148
<div class="description">
42-
English Service
49+
{{#link-to "group.index" "english-service"}}
50+
English Service
51+
{{/link-to}}
4352
</div>
4453
</div>
4554
</div>

tests/unit/controllers/index-test.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,3 @@ test("viewOnlineSermons: it redirects to sunday's bulletin", function(assert) {
1616

1717
controller.send("viewOnlineSermons");
1818
});
19-
20-
test("viewGroup: it redirects to group with group slug", function(assert) {
21-
const controller = this.subject();
22-
23-
const done = assert.async();
24-
controller.transitionToRoute = function(name, model) {
25-
assert.equal(name, "group.index");
26-
assert.equal(model, "random-slug");
27-
done();
28-
};
29-
30-
controller.send("viewGroup", "random-slug");
31-
});

0 commit comments

Comments
 (0)