Commit graph

95 commits

Author SHA1 Message Date
5e23bb65e6 Limit related posts to primary tag
If we matched by all tags, the "latest posts" were getting hogged
by a small set of posts that had many tags. Now, since we're more
restrictive, we end up throwing up new posts every time! Also, we
are allowing posts with the primary tag matching *any* of the
current post's tags; it doesn't just have to match the current
posts's primary tag.
2023-03-15 14:37:58 +05:30
735508cdec Show related-tag posts in "read more" section
Thanks to the new tutorial released by Ghost:

    https://ghost.org/tutorials/read-next/
2023-03-14 19:21:44 +05:30
92938d0c49 Replace Commento with Ghost-native comments! 2023-03-14 16:55:57 +05:30
Hippo
4e626d14de Remove crowdfunding banner at end of post
It's about to be outdated anyway, so
2022-08-24 22:52:14 +05:30
a37b1f8fe8 Add (temporary) crowdfunding banners 2022-01-30 16:34:36 +05:30
5f5be60dca Enable comments (with Commento)! 2022-01-02 22:09:10 +05:30
Sodbileg Gansukh
2234b14bbd Fix nested main element issue 2021-09-22 15:24:17 +08:00
Sodbileg Gansukh
e49664eca4
Add alt and caption support to feature images (#812)
* Add alt and caption support to feature images

* Add feature image alt support to post card

* Remove three-curlies
2021-07-05 10:59:21 +08:00
John O'Nolan
2c356f1cc4 Update dates to be locale-friendly, props @levee223 2021-03-05 10:13:14 -05:00
John O'Nolan
7617c7baf2 Author profile 2021-03-04 17:22:45 -05:00
John O'Nolan
b5d0589222 And so the lord said unto Moses, let us obliterate this CSS 2021-03-04 08:05:28 -05:00
John O'Nolan
1365eab4ae Cleanup 2021-03-03 15:44:30 -05:00
John O'Nolan
6c7cf02111 Style refresh 2021-03-02 21:48:32 -05:00
Naz
b59893091c Removed conditions which used @labs.members helper
refs https://github.com/TryGhost/Team/issues/332
refs 870a09b109

- The {{@labs.members}} always evaluates to "true" starting with Ghost 4.0 and will be "null" coercing to "false" starting Ghost 5.0
- Enabled all conditionals be default to pass the build in main Ghost repository. These changes should be reviewed - special attentio to the left out RSS feed which was surrounded with {{unless @labs.members}} condition
2021-03-01 19:44:07 +13:00
Kevin Ansfield
ff51925567
Fixed sticky title and author hover JS (#629)
no issue

- replaces author hover JS that was lost during merge
- replaces `floating-header.js` with `sticky-nav-title.js` containing the relevant JS that was lost during merge with a cleanup for unused variables and unnecessary event listeners
- removes reference to non-existent `{{> floating-header}}` partial
2019-10-21 10:02:05 +01:00
Fabien O'Carroll
b51dd8ce22
V3 (#626)
* Changed {{code}} to {{statusCode}}

refs 2ebd9feeee

- {{code}} use has been deprecated in canary rule set of gscan

* V3 Update

* Update package and readme for 3.0

* Improve install instructions

* Update to support browserlist

* Upgrade dependencies

* Fix misnamed property

* V3 darkmode (#619)

Added dark mode styles

* Casper final  refinements batch 1

* Casper final  refinements batch 2

* Fixed bookmark card hover bug

* Fixed header social links

* Updated screenshots

* Updated readme

no issue

- refreshed screenshot

* Udpate screenshot in readme

no issue

* 3.0.0-beta.2

* Fixed cut header for post cards

no issue

* 3.0.0-beta.3

* 3.0.0-beta.4

* Updated current version and previous version logic (#554)

no issue

- Use current version from `package.json` instead of `npm_package_version` env variable
- Use `release.tag_name` instead of `release.name` for previous version

* Updated jQuery to 3.4.1 to avoid known vulnerabilities (#590)

no issue

https://snyk.io/vuln/npm:jquery?lh=3.2.1&utm_source=lighthouse&utm_medium=ref&utm_campaign=audit

* Fixed code cards with long lines from being too wide

no issue

Credits - https://github.com/TryGhost/Casper/pull/602

* Bumped gscan version to v3.0.0 (#621)

* Bumped gscan to v3.0.0

- This also fixes failing CI builds because the default rules that are being checked were for v2

* Added explicit version check for gscan command

* Added member subscription support (#623)

* Added member subscription support

no issue

* Added member subscription success message

no issue

* Added member subscription overlay

* Refined members subscription overlay

* Deleted unused website icon

* Ran CSSComb

* Updated built assets

* 3.0.0-beta.5

* Updated built assets for v3

no issue

* 3.0.0-beta.6

* Remove unused partial

* V3 cleanup (#625)

* Removed unused infinity icon

* Removed unused location icon

* Removed unused 'point' icon

* Removed unused Ghost logo icon

* Removed unused author partials

* Cleaned up index log

* Fixed responsive feature image sizes for page template
2019-10-21 12:43:34 +07:00
Kevin Ansfield
978ffe0eb6
Concatenated all JS into a single file (#624)
no issue

- moved large inline JS from templates into separate JS files
  - floating header
  - gallery card support
- use `gulp-concat` to concatenate all JS files into a single `built/casper.js` file
- reduces external JS file requests from 3 (jquery, infinite-scroll.js, jquery.fitvids.js) down to 2 (jquery, casper.js) and reduces page size by removing repeated inline code
2019-10-20 15:55:06 +02:00
Nazar Gargol
b2322157d5 Migrated from @blog -> @site
no issue

- This rename is due to new {{@site}} alias introduced in Ghost (dd1cf5ffc7) as {{@blog}} variable is deprecated now, and will be removed in v3
2019-01-08 17:37:14 +00:00
John O'Nolan
79ebbd50a3
Responsive images (#505) 2018-12-17 12:25:57 +00:00
Nulla Wu
9b56779ca6 Use id attribute to query reading progress element (#467)
no issue
- using an `id` selector doesn't break if other `progress` elements are present on a page
2018-08-03 09:21:05 +01:00
Kevin Ansfield
5c6cce1519
Ghost 1.25 Koenig updates (#463)
refs https://github.com/TryGhost/Ghost/pull/9741
- Ghost 1.25 has updated the HTML output of Koenig beta posts
  - the `<div class="kg-post">` wrapper around post content has been removed
  - for image cards the `.kg-image-wide` and `.kg-image-full` classes have been changed to `.kg-width-wide` and `.kg-width-full` and applied to the `<figure>` element rather than the `<img>` element
- this will be the default for *all* posts after upgrading to Ghost 2.0

Example output of the `{{content}}` helper for Koenig beta...

Before 1.25.0 (Ghost 1.23.0-1.24.9):
```html
<div class="kg-post">
    <figure class="kg-image-card">
        <img class="kg-image kg-image-wide" src="...">
        <figcaption>example wide image</figcaption>
    </figure>
</div>
```

After 1.25.0:
```html
<figure class="kg-image-card kg-width-wide">
    <img class="kg-image" src="...">
    <figcaption>example wide image</figcaption>
</figure>
```

For reference, in Ghost 1.x a non Koenig post with nothing but an image in the markdown (`![](...)`) would generate output like this:

```html
<div class="kg-card-markdown">
    <img src="...">
</div>
```
2018-07-23 12:20:46 +01:00
John O'Nolan
b55d5e2b32 Remove unnecessary role attributes from main element
Source: https://validator.w3.org/nu/#textarea
2018-04-17 22:19:05 +02:00
John O'Nolan
98e9c12018 Split out different byline templates into separate files 2018-04-11 11:05:25 +02:00
Peter Zimon
79e113226c Multiple authors in Casper (#448) 2018-04-10 20:19:29 +02:00
Hannah Wolfe
d92dda3523 Wrapped primary-tag get helper with if (#383)
closes #382

- If there is no primary tag, the filter will be invalid syntax
- This wraps the if helper and gets rid of errors in the logs
2017-09-07 14:31:42 +02:00
Hannah Wolfe
ba10cb1516 🎨 Update to use Primary Tag syntax (#337)
refs TryGhost/Ghost#8668

- In Ghost 1.2.0 we introduce primary_tag as a calculated property
- Casper can be updated to use this for clarity
2017-08-10 16:10:17 +02:00
Hannah Wolfe
4b66223bb3 🐛 Only show related posts widget if there are posts available (#332)
no issue

- use a block param and if combo to add a guard to the get helper
- this ensures that the widget is only displayed if there is content available to display
2017-07-28 19:10:54 +04:00
Hannah Wolfe
3993cbdcfa Update disqus embed to use {{comment_id}}
refs TryGhost/Ghost#8760

- disqus code must use `{{comment_id}}` instead of `{{id}}` from 1.0.0 onwards.
2017-07-26 23:01:14 +04:00
Aileen Nowak
d6d9711b9d ⛓ Fix broken tag link on post.hbs (#315)
no issue

Top link for tag was missing a `/`.
2017-06-20 08:55:16 +01:00
John O'Nolan
902b6dcdbc Clean up trailing slashes
See https://github.com/TryGhost/Ghost/issues/8569
2017-06-19 14:54:03 +01:00
Kevin Ansfield
c97defd40a Refactor post.hbs JS 2017-06-19 00:11:32 +01:00
John O'Nolan
67f27e2add New subscribe overlay 2017-06-15 15:03:19 +01:00
John O'Nolan
9f7c0e30e2 Scroll progress bar 2017-06-14 12:16:16 +01:00
John O'Nolan
19a8b85aac Minor cleanup 2017-06-13 19:07:26 +01:00
John O'Nolan
eeb8b248ca Refactor site navigation 2017-06-13 19:02:22 +01:00
John O'Nolan
7f4d581caf Restyle read-next card 2017-06-13 18:51:08 +01:00
John O'Nolan
655c35b53c New error template and author template 2017-06-13 13:48:06 +01:00
John O'Nolan
55f35da8e9 Whatever pass I lost count 2017-06-12 10:01:00 +01:00
John O'Nolan
d55446f2ca Next pass 2.0 2017-06-08 09:19:22 +02:00
John O'Nolan
938eaaf7a6 Third pass 2.0 2017-06-05 12:19:29 +01:00
John O'Nolan
bc9e5a0b2e Second pass 2.0 2017-05-31 19:09:50 +01:00
John O'Nolan
eda0ec4db2 First pass 2.0 design 2017-05-15 21:03:47 +01:00
Hannah Wolfe
8778126d8f Minor consistency fixups
- use a `{{#tag}}{{/tag}}` block for tag in tag.hbs
- use two braces consistently for `{{title}}`
- use double quotes consistently for attributes (quote switching is unnecessary)
2016-05-08 17:09:29 +02:00
John O'Nolan
09b4830398 Add new subscribers form + visual fixes
- New opt-in form for subscribers features
- Bumped version to 1.3.0
- Resolved author image alignment, closes #238
2016-05-08 10:50:20 +02:00
Acho Arnold
01c46dd225 Updated the twitter web share API
New API can be found here https://dev.twitter.com/web/tweet-button/web-intent
2015-05-26 10:21:36 +01:00
Mark Sutherland
2f45eda1ca Improve alt tag accessibility
Replaces all instances of alt="Blog Image" with alt="{{@blog.title}}"
and alt="Author Image" with alt="{{@author}}"
2015-05-15 22:01:01 +01:00
John O'Nolan
dd02a12258 no message 2015-03-27 19:10:31 +02:00
Paul Adam Davis
b071548965 Add menu icon to icon font
Closes #186

- Adds the menu icon from Ghost's icon set
- Alters CSS to use that new icon
2015-03-23 16:21:53 +00:00
Hannah Wolfe
8ec65a45e4 Switch navigation to be global 2015-02-28 14:08:27 +00:00
John O'Nolan
243192f0d9 Updating nav styles 2015-02-28 14:34:58 +02:00