Permalink
Browse files

Optimized _layouts. Merged most js libraries into one

  • Loading branch information...
ozasadnyy committed Aug 21, 2014
1 parent b17812e commit 84c47e35843c6f0ca4505c7925fda5552a39a883
View
@@ -1,2 +1,6 @@
_site
_sass/.sass-cache
### Jekyll ###
_site/
### Sass ###
.sass-cache
View
@@ -104,12 +104,10 @@ twitterHashTag: "devfest"
twitterFeed: "http://lviv.gdg.org.ua/tweetledee/favoritesjson.php?c=10&cache_interval=900"
# Partners Block
organizersTitle: "Organizers"
partnersTitle: "Partners"
partnersC4sponsorsButton: "Become a sponsor"
# Organizers Block
organizersTitle: "Organizers"
# Subscribe Block
subscribeTitle: "Subscribe for updates"
subscribeAction: "http://gdg.us5.list-manage1.com/subscribe/post?u=9fc8aa205b0521b5f05fc8e1e&id=ae0fb459fc"
@@ -150,7 +148,7 @@ socialLinks:
- {link: "https://plus.google.com/b/102444623953913144164", icon: "google-plus"}
- {link: "https://twitter.com/intent/user?screen_name=GDGLviv", icon: "twitter"}
- {link: "https://facebook.com/GDGLviv", icon: "facebook"}
- {link: "http://localhost:4000/zeppelin/feed.xml", icon: "rss"}
- {permalink: "/feed.xml", icon: "rss"}
footerBlocks:
-
title: "Links"
@@ -164,7 +162,7 @@ footerBlocks:
-
title: "FAQ"
links:
- {permalink: "http://localhost:4000/zeppelin/cod/", text: "Code of Conduct"}
- {permalink: "/cod/", text: "Code of Conduct"}
# Blog
blogTitle: "Latest news"
View
@@ -24,7 +24,7 @@ <h5>{{ block.title }}</h5>
<ul class="social-links">
{% for social in site.socialLinks %}
<li>
<a href="{{ social.link }}" target="_blank">
<a href="{% if linkElement.permalink != null %} {{ linkElement.permalink | prepend: site.baseurl }} {% else %} {{ linkElement.link }} {% endif %}" target="_blank">
<svg class="icon icon-{{ social.icon }}" viewBox="0 0 30 32">
<use xlink:href="{{ site.baseurl }}/img/sprites/sprites.svg#icon-{{ social.icon }}"></use>
</svg>
View
@@ -14,21 +14,21 @@
<div class="share pull-right">
<ul class="social-links">
<li>
<a href="https://plus.google.com/share?url={{ postUrl }}" onclick="window.open('https://plus.google.com/share?url={{ postUrl }}', 'newwindow', 'width=600, height=500'); return false;">
<a href="https://plus.google.com/share?url={{ page.url | prepend: site.baseurl | prepend: site.url }}" onclick="window.open('https://plus.google.com/share?url={{ page.url | prepend: site.baseurl | prepend: site.url }}', 'newwindow', 'width=600, height=500'); return false;">
<svg class="icon icon-google-plus" viewBox="0 0 30 32">
<use xlink:href="{{ site.baseurl }}/img/sprites/sprites.svg#icon-google-plus"></use>
</svg>
</a>
</li>
<li>
<a href="https://twitter.com/home?status={{ postUrl }}" onclick="window.open('https://twitter.com/home?status={{ postUrl }}', 'newwindow', 'width=600, height=250'); return false;">
<a href="https://twitter.com/home?status={{ page.url | prepend: site.baseurl | prepend: site.url }}" onclick="window.open('https://twitter.com/home?status={{ page.url | prepend: site.baseurl | prepend: site.url }}', 'newwindow', 'width=600, height=250'); return false;">
<svg class="icon icon-twitter" viewBox="0 0 30 32">
<use xlink:href="{{ site.baseurl }}/img/sprites/sprites.svg#icon-twitter"></use>
</svg>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u={{ postUrl }}" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u={{ postUrl }}', 'newwindow', 'width=600, height=500'); return false;">
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | prepend: site.baseurl | prepend: site.url }}" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u={{ page.url | prepend: site.baseurl | prepend: site.url }}', 'newwindow', 'width=600, height=500'); return false;">
<svg class="icon icon-facebook" viewBox="0 0 30 32">
<use xlink:href="{{ site.baseurl }}/img/sprites/sprites.svg#icon-facebook"></use>
</svg>
@@ -1,49 +1,4 @@
<!DOCTYPE html>
<html lang="en" itemscope itemtype="http://schema.org/Blog">
{% include head.html %}
<body>
<div id="preloader" class="preloader">
<div class="loader-gplus"></div>
</div>
<div id="st-container" class="st-container">
<div class="st-pusher">
<div class="st-content">
{{ content }} {% include footer.html %}
</div>
</div>
</div>
{% include analytics.html %}
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<!-- jQuery local fallback -->
<script>
window.jQuery || document.write('<script src="{{ "/js/jquery-2.1.1.min.js " | prepend: site.baseurl }}><\/script>')
</script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<!-- Bootstrap JS local fallback -->
<script>
if (typeof ($.fn.modal) === 'undefined') {
document.write('<script src="{{ "/js/bootstrap.min.js " | prepend: site.baseurl }}><\/script>')
}
</script>
<script src="{{ "/js/jquery.appear.min.js" | prepend: site.baseurl }}"></script>
<script src="{{ "/js/waves.min.js" | prepend: site.baseurl }}"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places,geometry"></script>
<script>
var googleMaps = 'logistics';
var eventPlace = new google.maps.LatLng({{site.eventPlaceCoordinates}});
var centerMap = new google.maps.LatLng({{site.logisticsMapCenterCoordinates}});
var mobileCenterMap = new google.maps.LatLng({{site.logisticsMapMobileCenterCoordinates}});
var icon = '{{ site.baseurl }}/img/svg/map-marker.svg';
Waves.displayEffect();
</script>
<script src="{{ "/js/scripts.min.js" | prepend: site.baseurl }}"></script>
<script type="application/ld+json">
<script type="application/ld+json">
[{
"@context" : "http://schema.org",
"@type" : "Event",
@@ -73,15 +28,16 @@
"longitude" : "{{ coordinates[1] }}"
}
},
"organizer" : {
"@type" : "Organization",
"name" : "{{ site.organizerName }}",
"alternateName" : "{{ site.organizerAlternateName }}",
"description" : "{{ site.organizerDescription }}",
"logo" : "{{ site.organizerLogo | prepend: site.baseurl | prepend: site.url }}",
"email" : "{{ site.organizerEmail }}",
"sameAs" : "{{ site.organizerLink }}"
},
// Not supported yet
// "organizer" : {
// "@type" : "Organization",
// "name" : "{{ site.organizerName }}",
// "alternateName" : "{{ site.organizerAlternateName }}",
// "description" : "{{ site.organizerDescription }}",
// "logo" : "{{ site.organizerLogo | prepend: site.baseurl | prepend: site.url }}",
// "email" : "{{ site.organizerEmail }}",
// "sameAs" : "{{ site.organizerLink }}"
// },
"offers" : [
{% for ticketsOffer in site.ticketsOffers %}
{
@@ -112,7 +68,4 @@
"eventStatus" : "EventScheduled",
"typicalAgeRange" : "16+"
}]
</script>
</body>
</html>
</script>
View
@@ -30,103 +30,79 @@
{% include analytics.html %}
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<!-- jQuery local fallback -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
window.jQuery || document.write('<script src="{{ "/js/jquery-2.1.1.min.js" | prepend: site.baseurl }}><\/script>')
</script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<!-- Bootstrap JS local fallback -->
<script>
if (typeof($.fn.modal) === 'undefined') {
document.write('<script src="{{ "/js/bootstrap.min.js" | prepend: site.baseurl }}><\/script>')
}
</script>
<script src="{{ "/js/jquery.appear.min.js" | prepend: site.baseurl }}"></script>
<script src="{{ "/js/waves.min.js" | prepend: site.baseurl }}"></script>
<script>Waves.displayEffect();</script>
<script src="{{ "/js/default.js" | prepend: site.baseurl }}"></script>
{% if page.permalink == '/' %}
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
{% elsif page.permalink == '/logistics/' %}
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places,geometry"></script>
{% endif %}
<script>
Waves.displayEffect();
{% if page.permalink == '/' %}
var googleMaps = 'index',
eventPlace = new google.maps.LatLng({{ site.eventPlaceCoordinates }}),
centerMap = new google.maps.LatLng({{ site.mapCenterCoordinates }}),
mobileCenterMap = new google.maps.LatLng({{ site.mapMobileCenterCoordinates }}),
icon = '{{ site.baseurl }}/img/svg/map-marker.svg';
var twitterFeedUrl = '{{ site.twitterFeed }}';
$(document).ready(function () {
$(function () {
$("#typeout-text").typed({
strings: [{{site.typeoutTextValues}}],
typeSpeed: 150,
backDelay: 900,
loop: true
});
});
var rockstarSpeakers = [
{% for speaker in site.data.speakers %}
{% if speaker.rockstar %}
{name: "{{ speaker.name }} {{ speaker.surname }}", company: "{{ speaker.company }}", image: "{{ site.baseurl | append: site.thumbnailsFolder | append: speaker.thumbnailUrl }}"}{% if forloop.index != forloop.length %},{% endif %}
{% endif %}
{% endfor %}
];
rockstarSpeakers.sort(function() {return 0.5 - Math.random()});
if(rockstarSpeakers.length > 0) {
var animationDelay = 1500,
count = {{ site.rockstarSpeakersCount }},
colWidth = 12/count;
for(i=0; i<count; i++) {
$('#rockstar-speaker-title').after('<div class="col-md-'+ colWidth +' col-xs-6 rockstar-speakers-item animated hiding" data-animation="fadeInUp" data-delay="' + animationDelay +'"><div class="rockstar-speaker"><div class="flow-img img-circle rockstar-speaker-img" style="background-image: url(' + rockstarSpeakers[i].image + ')"></div><div class="name">' + rockstarSpeakers[i].name + '</div><div class="sub">' + rockstarSpeakers[i].company + '</div></div></div>');
animationDelay -= 500;
}
}
});
{% elsif page.permalink == '/logistics/' %}
var googleMaps = 'logistics',
eventPlace = new google.maps.LatLng({{ site.eventPlaceCoordinates }}),
centerMap = new google.maps.LatLng({{ site.logisticsMapCenterCoordinates }}),
mobileCenterMap = new google.maps.LatLng({{ site.logisticsMapMobileCenterCoordinates }}),
icon = '{{ site.baseurl }}/img/svg/map-marker.svg';
{% endif %}
</script>
<script src="{{ "/js/scripts.min.js" | prepend: site.baseurl }}"></script>
{% if page.permalink == '/schedule/' %}
<script src="{{ "/js/jquery.sticky-kit.min.js" | prepend: site.baseurl }}"></script>
<script type="text/javascript">
$(document).ready(function () {
var navHeight = $('#top-header').height();
var headerHeight = $('.track-header').first().height();
$('.stick-header').stick_in_parent({sticky_class: 'sticky', offset_top: navHeight});
$('.stick-label').stick_in_parent({offset_top: navHeight + headerHeight});
});
</script>
<script type="text/javascript">
$(document).ready(function () {
var navHeight = $('#top-header').height();
var headerHeight = $('.track-header').first().height();
$('.stick-header').stick_in_parent({sticky_class: 'sticky', offset_top: navHeight});
$('.stick-label').stick_in_parent({offset_top: navHeight + headerHeight});
});
</script>
{% endif %}
<script type="application/ld+json">
[{
"@context" : "http://schema.org",
"@type" : "Event",
"name" : "{{ site.title }}",
"description": "{{ site.description }}",
"image" : "{{ site.socialImageSrcGooglePlus | prepend: site.baseurl | prepend: site.url }}",
"url" : "{{ site.url }}",
"startDate" : "{{ site.eventStartTime }}",
"doorTime" : "{{ site.eventDoorTime }}",
"endDate" : "{{ site.eventEndTime }}",
"location" : {
"@type" : "Place",
"name" : "{{ site.eventLocationName }}",
"sameAs" : "{{ site.eventLocationLink }}",
"address" : {
"@type" : "PostalAddress",
"streetAddress" : "{{ site.eventStreetAddress }}",
"addressLocality" : "{{ site.eventAddressLocality }}",
"addressRegion" : "{{ site.eventAddressLocalityRegion }}",
"postalCode" : "{{ site.eventPostalCode }}",
"addressCountry" : "{{ site.eventAddressCountry }}"
},
"geo" : {
"@type" : "GeoCoordinates",
{% assign coordinates = site.eventPlaceCoordinates | split:"," %}
"latitude" : "{{ coordinates[0] }}",
"longitude" : "{{ coordinates[1] }}"
}
},
"organizer" : {
"@type" : "Organization",
"name" : "{{ site.organizerName }}",
"alternateName" : "{{ site.organizerAlternateName }}",
"description" : "{{ site.organizerDescription }}",
"logo" : "{{ site.organizerLogo | prepend: site.baseurl | prepend: site.url }}",
"email" : "{{ site.organizerEmail }}",
"sameAs" : "{{ site.organizerLink }}"
},
"offers" : [
{% for ticketsOffer in site.ticketsOffers %}
{
"@type" : "Offer",
"name" : "{{ ticketsOffer.name }}",
"url" : "{{ ticketsOffer.buyButtonLink }}",
"price" : "{{ ticketsOffer.price }}",
"validFrom" : "{{ ticketsOffer.validFrom }}",
"validThrough" : "{{ ticketsOffer.validThrough }}"
}{% if forloop.index != forloop.length %},{% endif %}
{% endfor %}
],
"performer" : [
{% for speaker in site.data.speakers %}
{
"@type" : "Person",
"name" : "{{ speaker.name }} {{ speaker.surname }}",
"image" : "{{ speaker.thumbnailUrl | prepend: site.thumbnailsFolder | prepend: site.baseurl | prepend: site.url }}",
"jobTitle" : "{{ speaker.title }}",
"worksFor" : {
"@type" : "Organization",
"name" : "{{ speaker.company }}"
},
"sameAs" : "{{ speaker.social[0].link }}"
}{% if forloop.index != forloop.length %},{% endif %}
{% endfor %}
],
"eventStatus" : "EventScheduled",
"typicalAgeRange" : "16+"
}]
</script>
{% include schema-event.html %}
</body>
</html>
Oops, something went wrong.

0 comments on commit 84c47e3

Please sign in to comment.