Skip to content

Commit 1384972

Browse files
committed
Make homepage pillar images editable via Ghost CMS
1 parent 202052e commit 1384972

File tree

1 file changed

+81
-15
lines changed

1 file changed

+81
-15
lines changed

home.hbs

Lines changed: 81 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,87 @@
3131
{{/get}}
3232
</section>
3333
<section class='home-template__pillars__details--image-grid'>
34-
<img
35-
class='home-template__pillars__details--image-grid_item--one'
36-
src={{asset 'images/home__pillars-image-grid-01.jpg'}}
37-
alt='Conference room with numerous attendees and a main stage'
38-
/>
39-
<img
40-
class='home-template__pillars__details--image-grid_item--two'
41-
src={{asset 'images/home__pillars-image-grid-02.jpg'}}
42-
alt='RailsConf 2025 flyer with event dates and times'
43-
/>
44-
<img
45-
class='home-template__pillars__details--image-grid_item--three'
46-
src={{asset 'images/home__pillars-image-grid-03.jpg'}}
47-
alt='Young man in plaid shirt giving a hug to a person with a backpack'
48-
/>
34+
{{#get "pages" filter="tag:hash-home-pillars-image-1" limit="1" include="feature_image"}}
35+
{{#foreach pages}}
36+
{{#if feature_image}}
37+
{{#if custom_excerpt}}
38+
<a
39+
href="{{custom_excerpt}}"
40+
target="_blank"
41+
rel="noopener noreferrer"
42+
aria-label="{{title}}"
43+
>
44+
<img
45+
class='home-template__pillars__details--image-grid_item--one'
46+
src="{{feature_image}}"
47+
alt="{{title}}"
48+
/>
49+
</a>
50+
{{else}}
51+
<img
52+
class='home-template__pillars__details--image-grid_item--one'
53+
src="{{feature_image}}"
54+
alt="{{title}}"
55+
/>
56+
{{/if}}
57+
{{/if}}
58+
{{/foreach}}
59+
{{/get}}
60+
61+
{{#get "pages" filter="tag:hash-home-pillars-image-2" limit="1" include="feature_image"}}
62+
{{#foreach pages}}
63+
{{#if feature_image}}
64+
{{#if custom_excerpt}}
65+
<a
66+
href="{{custom_excerpt}}"
67+
target="_blank"
68+
rel="noopener noreferrer"
69+
aria-label="{{title}}"
70+
>
71+
<img
72+
class='home-template__pillars__details--image-grid_item--two'
73+
src="{{feature_image}}"
74+
alt="{{title}}"
75+
/>
76+
</a>
77+
{{else}}
78+
<img
79+
class='home-template__pillars__details--image-grid_item--two'
80+
src="{{feature_image}}"
81+
alt="{{title}}"
82+
/>
83+
{{/if}}
84+
{{/if}}
85+
{{/foreach}}
86+
{{/get}}
87+
88+
{{#get "pages" filter="tag:hash-home-pillars-image-3" limit="1" include="feature_image"}}
89+
{{#foreach pages}}
90+
{{#if feature_image}}
91+
{{#if custom_excerpt}}
92+
<a
93+
href="{{custom_excerpt}}"
94+
target="_blank"
95+
rel="noopener noreferrer"
96+
aria-label="{{title}}"
97+
>
98+
<img
99+
class='home-template__pillars__details--image-grid_item--three'
100+
src="{{feature_image}}"
101+
alt="{{title}}"
102+
/>
103+
</a>
104+
{{else}}
105+
<img
106+
class='home-template__pillars__details--image-grid_item--three'
107+
src="{{feature_image}}"
108+
alt="{{title}}"
109+
/>
110+
{{/if}}
111+
{{/if}}
112+
{{/foreach}}
113+
{{/get}}
114+
</section>
49115
</section>
50116
<aside class='home-template__pillars__details--stats'>
51117
<section>

0 commit comments

Comments
 (0)