Commit Graph

74 Commits

Author SHA1 Message Date
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
Tiago Rodrigues e5e62f1eed 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
2019-10-20 12:09:36 +05:30
John O'Nolan f5bba69235
Remove unused conditional
Closes #593
2019-08-21 13:53:47 +08:00
Nazar Gargol 4464d5809b Fixed deprecated {{lang}} helper usage
no issue

- {{lang}} helper was deprecated in favor of {{@site.lang}} with 73e008270d
2019-04-02 12:39:00 +08: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
汪磊 3c2347c7f9 🎨 Optimised infinite scroll (#503)
no issue
- removed jQuery usage
- use the `<link rel="next">` tag provided by Ghost to determine the next page to fetch
2018-12-05 12:38:11 +00:00
Aileen Nowak d53b25bf5d
Remove double slash in link
no issue
2018-10-12 12:56:54 +07:00
Aileen Nowak bef56a2294 Minified js (#485)
no issue

- Added a `js` task to run on the gulp build process and minifies our js files
- Changed the required scripts in `default.hbs` to use the minified js files in `/built/`
- Moved existing `js` tasks from `zip` task
2018-10-12 12:41:06 +07:00
Kevin Ansfield 7a88c88ea2 Added Koenig gallery card support (#475)
no issue

- Update CSS and JS for new gallery card
- Updates CSS to support new gallery card
- Adds JS to support grid layout for gallery view
- Fix gallery breakout size
- Refining styles for gallery card
2018-08-30 17:44:55 +01:00
Aileen Nowak d5002f2c51 🐛 Fixed infinitescroll when a paged url is loaded directly (#447)
closes #445
- added an fn to sanitize the pathname, that might include a pagination url
- fixed an issue, where the request would still be made if the current page is bigger than max pages
- added comments
2018-04-10 10:04:43 +01:00
Santhosh veer 57c31ddacb Add HTML lang head tag (#429)
Refs #286
2018-04-06 20:49:42 +02:00
Kevin Ansfield 7592ad182b 🔒 Added `rel="noopener"` to all `target="_blank"` links (#398)
closes #394
- closes potential phishing avenues by preventing external sites from changing the blogs url in the background after opening
- see https://mathiasbynens.github.io/rel-noopener/ for more info
2017-10-03 16:42:08 +07:00
Chaotic Law 25f12d760b Fix typo in default.hbs (#393) 2017-09-29 08:23:39 -04:00
汪磊 d3a9af0666 Remove infinitescroll in single page (#319)
* Remove infinitescroll in single page

* Update infinitescroll.js
2017-06-27 18:03:51 +07:00
Aileen Nowak 0914d43a86 💄 Infinite scroll (#316)
* 💄  Infinite scroll

closes #314

Adds infinite scroll logic to Casper 2.0

* use jquery min and not slim
2017-06-21 13:10:09 +01:00
John O'Nolan 397a096949 Rejig asset compilation destination
Avoid using "public" because it's a reserved word by the asset helper
2017-06-16 13:23:03 +01:00
John O'Nolan 535ead65e7 DOCS 2017-06-16 10:44:06 +01:00
John O'Nolan 67f27e2add New subscribe overlay 2017-06-15 15:03:19 +01:00
John O'Nolan 655c35b53c New error template and author template 2017-06-13 13:48:06 +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
Humeira 805925528c move font above css include (#279) 2017-02-24 12:23:02 +07:00
Mr. Ivan 0d8228ff05 Use protocol-relative URL for jQuery script
Use protocol-relative URL in the script element that includes jQuery to improve availability and consistency as it's being used for Google Fonts too.
2016-10-13 17:03:11 -06: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
Fong-Wan Chau fd7967cb2f Update JQuery to v1.12.0 on 'default.hbs'
Changelog: https://blog.jquery.com/2016/01/08/jquery-2-2-and-1-12-released/
2016-01-22 12:44:49 -04:00
Hannah Wolfe 6f46594d36 Move jQuery before `{{ghost_foot}}`
- Including jQuery before `{{ghost_foot}}` means jQuery can be used inside ghost_foot code injection
- It should also improve backwards compat, as without this jQuery code included via ghost_foot may break
2015-10-19 09:28:22 +01:00
Hannah Wolfe dfd94ece96 Add jQuery, as this is being removed from Ghost
refs TryGhost/Ghost#5298
2015-08-24 19:58:03 +01:00
John O'Nolan 243192f0d9 Updating nav styles 2015-02-28 14:34:58 +02:00
Paul Adam Davis 46dc55769e Navigation 2015-02-27 19:33:27 +00:00
Razzi Abuissa 56c766303f Fix indentation 2015-01-04 19:57:11 -06:00
John O'Nolan 75c81be9c3 Typography overhaul 2014-09-25 16:41:04 +03:00
Jake Giltsoff c7554d995b Swap Noto Serif to PT Serif 2014-08-17 16:01:47 +01:00
John O'Nolan 3db098c1e0 Revert "Sticky footer"
This reverts commit 3242e72cfc.
2014-07-20 17:28:49 +02:00
John O'Nolan 3242e72cfc Sticky footer 2014-07-20 17:27:20 +02:00
John O'Nolan 448082bd48 New navigation structure to make way for MU changes 2014-07-20 16:43:44 +02:00
John O'Nolan 48bf106f25 Remove specific resolution optimisation 2014-02-03 23:21:26 +07:00
John O'Nolan 55784b4348 Corrected link 2014-02-02 16:39:22 +01:00
Hannah Wolfe 9a261d1e93 Adding explicit favicon link 2014-01-12 21:52:21 +00:00
Michael Bradshaw 0e1329f51f Respect the blog URL (and subdirectory) in footer 2014-01-07 12:31:32 -07:00
Jitendra Vyas 97e23d1238 replaced to html5 charset tag
http-equiv="Content-Type" content="text/html" is invalid in HTML5.
2013-12-28 15:15:07 +00:00
Jitendra Vyas 5b1e9c590f removed chrome frame option from meta tag
Google has discontinue the Chrome frame project so I suggest to remove it. Event HTML5 boilerplate has removed it 8fc26501f4
2013-12-28 16:25:38 +05:30
Fabian Becker b5819fd970 Use asset helper to generate paths.
fixes #54
2013-11-28 13:43:06 +00:00
John O'Nolan 94f98f0d58 Replace Droid with Noto
Fixes #30 #46
2013-10-31 19:34:00 +01:00
John O'Nolan 4616c5bd1d Responsive videos by default u guyz 2013-10-31 18:35:57 +01:00
John O'Nolan a930d49bc3 Enhanced copyright date to be dynamic
Closes #41
2013-10-18 19:52:29 +02:00
Kevin C 58efcd6777 Fixed invalid meta tag. charset should be declared in the content attribute. 2013-10-18 10:08:42 -05:00
John O'Nolan 6096654136 Updating ghost link 2013-10-06 17:49:48 +02:00
John O'Nolan 436f94e9a9 Moving webfonts from http:// to //
https://en.ghost.org/forum/bugs-suggestions/475-suggestion-remove-system-dependence-on-google-web-fonts
2013-10-04 09:52:54 +02:00