Commit 57e94ec
authored
Added social_url helper (#572)
ref https://linear.app/ghost/issue/PLG-412/create-template-helpers
- Instead of duplicating facebook_url and twitter_url we're creating a new
social_url helper that takes a social type and then outputs the right url
- It uses the context provided, the expected usage would be
{{#if bluesky}}
<a class="gh-author-bluesky" href="{{social_url type="bluesky"}}" target="_blank" rel="noopener">{{> icons/bluesky}}</a>
{{/if}}1 parent 634a30b commit 57e94ec
3 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
0 commit comments