Commit graph

26 commits

Author SHA1 Message Date
Badri Sunderarajan
f447783c5c Update pagination styles to highlight active button 2020-03-09 18:52:10 +05:30
Badri Sunderarajan
a67c114815 Paginate homepage 2020-03-09 18:45:40 +05:30
Hippo
ea9427f474 Display post reading time via @tryghost/helpers 2019-12-30 17:39:01 +05:30
Hippo
23cf280f36 Use Ghost site name for subscribe form instead of admin.yml one 2019-12-24 15:18:28 +05:30
Hippo
77526a77f1 Fix typo during last post detection in PreviousNext
We're at the last post when (length-1) > i, not length > i,
because we're indexing from 0 but starting from 1
2019-12-24 15:16:33 +05:30
Hippo
30f9448d72 Change GhostPage template to a symlink
Because that's what it is. No point updating the same content
twice in different files :P

The reason is, Gridsome needs GhostPage to exist so the page gets
a valid path, but doesn't actually use it because it loads
GhostPost first. We could technically leave GhostPage as an empty
file, but if the order changes someday and GhostPage starts
getting prioritised over GhostPost we'll be in a mess. Might as
well keep ourselves covered.
2019-12-24 15:06:27 +05:30
Hippo
b602cea6a5 Change metadata "filters" to the OR signs they were supposed to be
Was using `|` instead of `||` :P
2019-12-24 14:58:28 +05:30
Hippo
8bae6ba614 Remove static data: authors 2019-12-24 14:25:41 +05:30
Hippo
10bd7d5e32 Make logo link to "/" instead of pulling setting from config 2019-12-24 14:10:26 +05:30
Hippo
a6df86542c Highlight current post in "Read Next" card 2019-12-24 14:06:14 +05:30
Hippo
9b448913fa Post Card: omit ellipses if description is short enough already
If the text is below the maximum length, just show the whole thing
without adding a "..." at the end
2019-12-24 13:51:38 +05:30
Hippo
2c63ea707e Post Card styling: make every sixth post "large"
This is consistent with the style Ghost uses to display posts
2019-12-24 13:48:06 +05:30
Hippo
9a0415d3ff Create view for Pages
GhostPost and GhostPage are copies of each other: they
conditionally render depending on whether the path matches a post
or page. The reason for this workaround is that, otherwise, the
router would show a 404 for non-matching posts even when a
matching page existed, since they both lie under the same path.
2019-12-24 13:38:50 +05:30
Hippo
fcc8cda747 Change site URL to beta.snipettemag.com 2019-12-20 13:44:44 +05:30
Hippo
2f46dde9a5 Update site title and description 2019-12-19 22:03:35 +05:30
Hippo
16bcaaf54b Enable image redirects
Images can now go directly to media.snipettemag.com instead of
being routed through the private Ghost instance. (Reduces traffic
on that node).
2019-12-19 22:01:35 +05:30
Hippo
1542c53dce Update README 2019-12-19 19:23:41 +05:30
Hippo
cd19e25081 Replace filters with the "or" symbols they were supposed to be :P 2019-12-18 19:36:28 +05:30
Hippo
bc26ddef61 Fix errors in Navbar tag type
We were trying to use "tag" instead of "this.tag" and expecting
it to be a String instead of an Object
2019-12-18 19:35:48 +05:30
Hippo
ec8a91a95e Add .env files and .geany projects to .gitignore 2019-12-18 19:29:00 +05:30
Hippo
0c06ad5901 Add sample .env file 2019-12-18 19:28:14 +05:30
Hippo
872f5e09f1 Scale down thumbnail images to fit Card 2019-12-18 19:25:24 +05:30
Hippo
4dcafea516 Update Navbar and Navigation to pull data from Ghost
This is instead of using data/admin.yml
2019-12-18 19:24:46 +05:30
Hippo
e264253c16 Create Ghost templates for Posts, Authors, and Views 2019-12-18 19:24:22 +05:30
Hippo
04d421edb1 Remove unnecessary files 2019-12-18 19:20:10 +05:30
Hippo
b297d33675 Initial commit with Casper starter template 2019-12-05 17:16:27 +05:30