Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Replace external dependancies, update service worker strategy to netw…
Browse files Browse the repository at this point in the history
…orkFirst (related to #39)
  • Loading branch information
karthikb351 committed Jul 25, 2017
1 parent 2e0ac77 commit 0b2735b
Show file tree
Hide file tree
Showing 17 changed files with 2,690 additions and 297 deletions.
2 changes: 1 addition & 1 deletion _anthillinside_events/2017.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ sponsor:
- snackexperts
footer:
left_content: |
![](https://images.hasgeek.com/embed/file/b3a952a566ed4dcb875e8597e86a76b7 "This was generated using deep learning :P")
![](https://images.hasgeek.com/embed/file/b3a952a566ed4dcb875e8597e86a76b7 'This was generated using deep learning :P')
right_content: |
## Why is this event called Anthill Inside?
Expand Down
6 changes: 3 additions & 3 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
<link rel="stylesheet" href="{{ site.url }}{{ site.baseurl }}/css/leaflet.css">
{% endif %}

<link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.sidr/2.2.1/stylesheets/jquery.sidr.light.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="{{ site.url }}{{ site.baseurl }}/css/jquery.sidr.2.2.1.min.css">
<link rel="stylesheet" href="{ site.url }}{{ site.baseurl }}/css/font-awesome.min.css">
</head>
<body>
{% include sidebar_site.html %}
Expand All @@ -69,7 +69,7 @@
{{ content }}

<script src="{{ site.url }}{{ site.baseurl }}/js/jquery-3.2.1.min.js"></script>
<script src="//cdn.jsdelivr.net/jquery.sidr/2.2.1/jquery.sidr.min.js"></script>
<script src="{{ site.url }}{{ site.baseurl }}/js/jquery.sidr-2.2.1.min.js"></script>
<script src="{{ site.url }}{{ site.baseurl }}/js/mustache.min.js"></script>
{% if page.venue %}
<script src="{{ site.url }}{{ site.baseurl }}/js/leaflet.js"></script>
Expand Down
4 changes: 4 additions & 0 deletions css/font-awesome.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions css/jquery.sidr.2.2.1.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions deploy/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ gulp.task('generate-service-worker', function(callback) {
var rootDir = '.';

swPrecache.write(path.join(rootDir, 'sw.js'), {
staticFileGlobs: [rootDir + '/{css,fonts,images,js}/*.{js,html,css,png,jpg,gif,svg,ttf}'],
runtimeCaching: [{
urlPattern: /^http:\/\/boxoffice\.hasgeek\.com/,
handler: 'networkOnly'
staticFileGlobs: [rootDir + '/{css,fonts,images,js}/*.{js,css,png,jpg,gif,svg,ttf}'],
runtimeCaching: [
{
urlPattern: /.html/,
handler: 'networkFirst'
},
{
urlPattern: /^https:\/\/imgee\.s3\.amazonaws\.com\/imgee/,
urlPattern: /images\.hasgeek\.com/,
handler: 'cacheFirst'
},
{
Expand Down
Binary file added fonts/FontAwesome.otf
Binary file not shown.
Binary file added fonts/fontawesome-webfont.eot
Binary file not shown.
Loading

0 comments on commit 0b2735b

Please sign in to comment.