Browse Source

Get rid of more junk

master
Gavin Howard 11 months ago
parent
commit
02d346998e
Signed by: gavin GPG Key ID: C08038BDF280D33E
  1. 25
      assets/js/script.js
  2. 7
      exampleSite/config.toml
  3. 9
      layouts/partials/footer.html
  4. 7
      static/plugins/bootstrap/bootstrap.min.js
  5. 2
      static/plugins/jQuery/jquery.min.js

25
assets/js/script.js

@ -1,25 +0,0 @@
(function ($) {
'use strict';
// Sticky Menu
$(window).scroll(function () {
var height = $('.top-header').innerHeight();
if ($('header').offset().top > 10) {
$('.top-header').addClass('hide');
$('.navigation').addClass('nav-bg');
$('.navigation').css('margin-top','-'+height+'px');
} else {
$('.top-header').removeClass('hide');
$('.navigation').removeClass('nav-bg');
$('.navigation').css('margin-top','-'+0+'px');
}
});
// Background-images
$('[data-background]').each(function () {
$(this).css({
'background-image': 'url(' + $(this).data('background') + ')'
});
});
})(jQuery);

7
exampleSite/config.toml

@ -20,13 +20,6 @@ link = "plugins/bootstrap/bootstrap.min.css"
[[params.plugins.css]]
link = "plugins/themify-icons/themify-icons.css"
# JS Plugins
[[params.plugins.js]]
link = "plugins/jQuery/jquery.min.js"
[[params.plugins.js]]
link = "plugins/bootstrap/bootstrap.min.js"
############################## navigation ###############################
# main menu

9
layouts/partials/footer.html

@ -96,12 +96,3 @@
</div>
</footer>
<!-- /footer -->
{{ "<!-- JS Plugins -->" | safeHTML }}
{{ range .Site.Params.plugins.js}}
<script src="{{ .link | absURL }}"></script>
{{ end }}
{{ "<!-- Main Script -->" | safeHTML }}
{{ $script := resources.Get "js/script.js" | minify}}
<script src="{{ $script.Permalink }}"></script>

7
static/plugins/bootstrap/bootstrap.min.js
File diff suppressed because one or more lines are too long
View File

2
static/plugins/jQuery/jquery.min.js
File diff suppressed because one or more lines are too long
View File

Loading…
Cancel
Save