Skip to content
This repository was archived by the owner on May 2, 2021. It is now read-only.

Commit 649cc32

Browse files
committed
lighthouse optim
1 parent 8115918 commit 649cc32

File tree

9 files changed

+64
-17
lines changed

9 files changed

+64
-17
lines changed

src/_includes/event-content.njk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<a
1313
href="https://www.eventbrite.it/e/{{event.eventbrite}}"
1414
class="btn btn-warning"
15+
rel="noopener"
1516
target="_blank"
1617
>Eventbrite</a
1718
>
@@ -23,6 +24,7 @@
2324
href="{{event.youtube}}"
2425
class="btn btn-danger"
2526
target="_blank"
27+
rel="noopener"
2628
>Video</a
2729
>
2830
</li>
@@ -33,6 +35,7 @@
3335
href="{{event.facebooklive}}"
3436
class="btn btn-danger"
3537
target="_blank"
38+
rel="noopener"
3639
>Video</a
3740
>
3841
</li>
@@ -43,28 +46,29 @@
4346
href="https://vimeo.com/album/{{event.videogallery}}"
4447
class="btn btn-danger"
4548
target="_blank"
49+
rel="noopener"
4650
>Video</a
4751
>
4852
</li>
4953
{% endif %}
5054
{% if event.foto %}
5155
<li>
52-
<a href="{{event.foto}}" class="btn btn-primary" target="_blank"
56+
<a href="{{event.foto}}" class="btn btn-primary" rel="noopener" target="_blank"
5357
>Foto</a
5458
>
5559
</li>
5660
{% endif %}
5761
{% if event.spotifypodcast %}
5862
<li>
59-
<a href="{{event.spotifypodcast}}" class="btn btn-primary" target="_blank"
63+
<a href="{{event.spotifypodcast}}" class="btn btn-primary" rel="noopener" target="_blank"
6064
>Podcast evento</a
6165
>
6266
</li>
6367
{% endif %}
6468
{% if event.slides %}
6569
{%- for slide in event.slides %}
6670
<li>
67-
<a href="{{slide.url}}" class="btn btn-success" target="_blank">
71+
<a href="{{slide.url}}" class="btn btn-success" rel="noopener" target="_blank">
6872
{% if event.slides.length == 1 %} Slides {% else%} Slides
6973
{{slide.author}}
7074
{% endif %}
@@ -122,6 +126,7 @@
122126
<li>
123127
<a
124128
class="btn btn-info"
129+
rel="noopener"
125130
target="_blank"
126131
href="http://www.facebook.com/sharer/sharer.php?u={{ site.url + page.url | urlencode }}"
127132
>

src/_includes/footer.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
</ul>
5252
</section>
5353
<p>
54-
Theme by <a href="http://www.themefisher.com" target="_blank">Themefisher</a>
54+
Theme by <a href="http://www.themefisher.com" rel="noopener" target="_blank">Themefisher</a>
5555
-
56-
<a href="/sitemap.xml" target="_blank" aria-label="Mappa del sito">Sitemap</a>
56+
<a href="/sitemap.xml" aria-label="Mappa del sito">Sitemap</a>
5757
-
58-
<a href="/feed.xml" target="_blank" aria-label="Feed RSS">
58+
<a href="/feed.xml" aria-label="Feed RSS">
5959
<span aria-hidden="true" class="fa fa-rss" style="color: #f26522"></span> Feed</a>
6060

6161
<br>

src/_includes/head.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
<link rel="stylesheet" href="/css/bootstrap.min.css"/>
9292
<link rel="stylesheet" href="/css/airspace.css"/>
9393
<link rel="stylesheet" href="/css/style.css"/>
94-
{% for stylesheet in ['font-awesome.min.css', 'animate.css', 'responsive.css' ] %}
94+
{% for stylesheet in ['font-awesome.min.css', 'responsive.css' ] %}
9595
<link rel="preload" href="/css/{{stylesheet}}" as="style" onload="this.onload=null;this.rel='stylesheet'">
9696
<noscript><link rel="stylesheet" href="/css/{{stylesheet}}"></noscript>
9797
{% endfor %}

src/_includes/header.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<span aria-hidden="true" class="icon-bar"></span>
1616
</button>
1717
<a class="navbar-brand" href="/" aria-label="Vai alla Homepage">
18-
<img src="/img/logo-fevr.png" alt="">
18+
<img src="/img/logo-fevr.png" alt="" width="85" height="50">
1919
</a>
2020
</div>
2121
<!-- Collect the nav links, forms, and other content for toggling -->
@@ -31,7 +31,7 @@
3131
</li>
3232
{% endfor %}
3333
<li>
34-
<a aria-label="Feed RSS" href="/feed.xml" target="_blank">
34+
<a aria-label="Feed RSS" href="/feed.xml">
3535
<span aria-hidden="true" class="fa fa-rss" style="color: #f26522"></span>
3636
</a>
3737
</li>

src/_includes/job-content.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<a
1919
class="btn btn-info"
2020
target="_blank"
21+
rel="noopener"
2122
href="http://www.facebook.com/sharer/sharer.php?u={{ site.url + page.url | urlencode }}"
2223
>
2324
<span aria-hidden="true" class="fa fa-facebook"></span> Facebook

src/_includes/macro.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
scrolling="auto"
1212
allowtransparency="true"></iframe>
1313
<div style="font-family:Helvetica, Arial; font-size:12px; padding:10px 0 5px; margin:2px; width:100%; text-align:left;" >
14-
<a class="powered-by-eb" style="color: #ADB0B6; text-decoration: none;" target="_blank" href="http://www.eventbrite.it/">
14+
<a class="powered-by-eb" style="color: #ADB0B6; text-decoration: none;" rel="noopener" target="_blank" href="http://www.eventbrite.it/">
1515
Con tecnologia Eventbrite
1616
</a>
1717
</div>

src/index.njk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ isHome: true
2323
</p>
2424
<p>
2525
Seguici su:<br>
26-
<a href="{{site.social.facebook.url}}" target="_blank" class="btn blue-btn">Facebook</a>
27-
<a href="{{site.social.slack.url}}" target="_blank" class="btn red-btn">Slack</a>
28-
<a href="{{site.social.twitter.url}}" target="_blank" class="btn blue-btn">Twitter</a>
29-
<a href="{{site.social.spotify.url}}" target="_blank" class="btn red-btn">Spotify</a>
26+
<a href="{{site.social.facebook.url}}" rel="noopener" target="_blank" class="btn blue-btn">Facebook</a>
27+
<a href="{{site.social.slack.url}}" rel="noopener" target="_blank" class="btn red-btn">Slack</a>
28+
<a href="{{site.social.twitter.url}}" rel="noopener" target="_blank" class="btn blue-btn">Twitter</a>
29+
<a href="{{site.social.spotify.url}}" rel="noopener" target="_blank" class="btn red-btn">Spotify</a>
3030

3131
</p>
3232
</div>
@@ -96,7 +96,7 @@ isHome: true
9696
<div class="row">
9797
{% for social in member.social %}
9898
<div class="col-xs-2 col-xs-push-2">
99-
<a href="{{social.url}}" target="_blank" title="{{member.name}} su {{social.name}}">
99+
<a href="{{social.url}}" rel="noopener" target="_blank" title="{{member.name}} su {{social.name}}">
100100
<span aria-hidden="true" class="fa white-text {{social.icon}}"></span>
101101
</a>
102102
</div>
@@ -151,7 +151,7 @@ isHome: true
151151
<div class="row ">
152152
{% for sp in site.sponsor %}
153153
<div class="col-sm-6 col-md-3">
154-
<a class="sponsor-item slide-down-hover" href="{{sp.url}}" target="_blank">
154+
<a class="sponsor-item slide-down-hover" rel="noopener" href="{{sp.url}}" target="_blank">
155155
<span class="sr-only">{{ sp.name }}</span>
156156
{% image sp.img, '', 'img-responsive center-block img-circle' %}
157157
</a>

static/css/font-awesome.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/style.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,3 +499,44 @@ width: 100%;
499499
list-style-type: disc;
500500
padding: 5px 0;
501501
}
502+
503+
/* Extracted from animate.css */
504+
.animated {
505+
-webkit-animation-duration: 1s;
506+
animation-duration: 1s;
507+
-webkit-animation-fill-mode: both;
508+
animation-fill-mode: both;
509+
}
510+
511+
@-webkit-keyframes fadeInUp {
512+
0% {
513+
opacity: 0;
514+
-webkit-transform: translate3d(0, 100%, 0);
515+
transform: translate3d(0, 100%, 0);
516+
}
517+
518+
100% {
519+
opacity: 1;
520+
-webkit-transform: none;
521+
transform: none;
522+
}
523+
}
524+
525+
@keyframes fadeInUp {
526+
0% {
527+
opacity: 0;
528+
-webkit-transform: translate3d(0, 100%, 0);
529+
transform: translate3d(0, 100%, 0);
530+
}
531+
532+
100% {
533+
opacity: 1;
534+
-webkit-transform: none;
535+
transform: none;
536+
}
537+
}
538+
539+
.fadeInUp {
540+
-webkit-animation-name: fadeInUp;
541+
animation-name: fadeInUp;
542+
}

0 commit comments

Comments
 (0)