Commit graph

44 commits

Author SHA1 Message Date
Hippo
d1965a317c Remove Gatsby redirect hack
It conflicts with the new hack/fix that was added
2020-03-29 18:39:18 +05:30
Hippo
6181fec71f Add hack files to trick Gatsby into reloading itself
Otherwise it keeps on trying to load Gatsby pages (and not finding
them because we've switched to Gridsome).
2020-03-29 18:07:35 +05:30
Badri Sunderarajan
af7e1488c0 Redirect Gatsby's 404.html to Gridsome's one
Hopefully this will induce the whole app to reload
2020-03-27 17:06:37 +05:30
Badri Sunderarajan
b3fe0911e6 Make redirects more sensible 2020-03-27 17:06:31 +05:30
Badri Sunderarajan
1da1aba9d5 Update HTTP header config to always force reload of page
This is especially crucial since we were using Gatsby earlier;
browsers which still have the Gatsby PWA must be forced to refresh.
2020-03-27 15:57:18 +05:30
Badri Sunderarajan
c03d592f3f Disable Google Analytics 2020-03-27 13:41:54 +05:30
Badri Sunderarajan
c95f7bbc7b Fix Snipette Friendica URL
Forgot to add the `/u/` :P
2020-03-15 15:31:38 +05:30
Badri Sunderarajan
2d641f3008 Style scissors separator 2020-03-15 15:27:30 +05:30
Badri Sunderarajan
abdaff4a7f Update PreviousNext when navigating to a new page
Earlier, it was just computing it once and then leaving it there
permanently. So you'd get "recommends" for the first post you
opened rather than the current one, unless you went to a non-post
page in the middle or reloaded the page.
2020-03-15 15:05:22 +05:30
Badri Sunderarajan
309589bb63 Make "Subscribe" button link to subscribe page for now
We're supposed to do fancy modals and all, but there's still time
for that later :P
2020-03-15 14:30:15 +05:30
Badri Sunderarajan
dd68fea249 Enable and activate MailChimp support in subscribe form
This is not just MailChimp, but any service really that lets you
embed a form
2020-03-15 13:31:23 +05:30
Badri Sunderarajan
f23715d4b9 Add support for Mastodon, Instagram, and Liberapay 2020-03-15 13:31:03 +05:30
Badri Sunderarajan
56a16d9d50 Update site metadata and make it display in header/footer 2020-03-15 13:29:25 +05:30
Badri Sunderarajan
9be6baae52 Make pagination-bar hiding more seamless
Now, it goes away the moment JavaScript is loaded, and also fades
out nicely even if you do happen to look at it. The extraneous
console.log messages are also gone.
2020-03-15 12:19:45 +05:30
Badri Sunderarajan
0ae46197b6 Remove <noscript> tag that was causing HierarchyRequestError
Replaced it with a v-if logic to show or hide the element.
2020-03-15 11:37:08 +05:30
Badri Sunderarajan
f9f0db645d Show pager if infinite scroll fails
This is in addition to displaying it when JavaScript is disabled.
2020-03-11 17:22:27 +05:30
Badri Sunderarajan
50fa31ea98 Animate infinite-scroll transitions 2020-03-09 23:07:21 +05:30
Badri Sunderarajan
91f8268193 Implement "infinite scrolling" in the homepage! 2020-03-09 19:31:46 +05:30
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