Commit 747c4625 authored by Vitor Lopes's avatar Vitor Lopes

fix news grid not ajusting after images load

parent ebcc4c73
......@@ -105,10 +105,7 @@ body {
}
}
.wrapper {
overflow-y: initial;
}
.landing-page .wrapper, .news .section {
.landing-page .wrapper {
overflow-y: hidden;
}
......@@ -1017,7 +1014,7 @@ h1.title::first-letter {
}
}
}
h4 {
margin-top: 60px;
color: #cecccc !important;
......
......@@ -15,7 +15,7 @@
<!-- prefetch resources -->
<link rel="prefetch" href="/js/isotope.pkgd.min.js" as="script" type="text/javascript">
<link rel="prefetch" href="/js/imagesloaded.pkgd.min.js" as="script" type="text/javascript">
<link rel="prefetch" href="/js/feedreader.js?v=1.0.3" as="script" type="text/javascript">
<link rel="prefetch" href="/js/feedreader.js?{{ .Site.Params.website_version }}" as="script" type="text/javascript">
<link rel="prefetch" href="https://forum.manjaro.org/c/announcements.rss" as="fetch" type="text/plain" crossorigin>
<link rel="prefetch" href="https://forum.manjaro.org/c/announcements/manjaro32.rss" as="fetch" type="text/plain" crossorigin>
......
......@@ -16,7 +16,7 @@ DefaultContentLanguage = "en-us"
post = "/:year/:month/:day/:slug/"
[params]
website_version = "1.1.15"
website_version = "1.0.16"
background = "/img/header.jpg"
tint = "green"
custom_css = ["css/highlight.min.css"]
......
......@@ -203,6 +203,10 @@ function feedreader(url) {
$('#' + el + ' .modal-body').find(".poll").remove();
$('#' + el + ' .modal-body').find("p:contains('Posts:')").remove();
$('#' + el + ' .modal-body').find("p:contains('Participants:')").remove();
$("#news-grid #unique" + el).imagesLoaded( function(){
$("#news-grid").isotope("reloadItems").isotope({ sortBy: 'original-order' });
});
}});
}});
......@@ -210,10 +214,6 @@ function feedreader(url) {
feedreader(feeds[0]);
feedreader(feeds[1]);
$("#news-grid").imagesLoaded( function(){
$("#news-grid").isotope("reloadItems").isotope({ sortBy: 'original-order' });
});
setTimeout(function(){
$(".progress-bar").css("width", "10%");
}, 550);
......@@ -247,6 +247,5 @@ setTimeout(function(){
setTimeout(function(){
$(".logo-overlay-loader").fadeOut();
$("#news-grid").isotope("reloadItems").isotope({ sortBy: 'original-order' });
}, 3000);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment