Initial Checkin of Beautiful Hugo Theme
Initial Checkin of Beautiful Hugo Theme
This commit is contained in:
parent
c962a38399
commit
ff7cd6fd91
42 changed files with 10950 additions and 0 deletions
2306
static/js/bootstrap.js
vendored
Normal file
2306
static/js/bootstrap.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
7
static/js/bootstrap.min.js
vendored
Normal file
7
static/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4
static/js/jquery-1.11.2.min.js
vendored
Normal file
4
static/js/jquery-1.11.2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
20
static/js/main.js
Normal file
20
static/js/main.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Dean Attali / Beautiful Jekyll 2015
|
||||
|
||||
// Shorten the navbar after scrolling a little bit down
|
||||
$(window).scroll(function() {
|
||||
if ($(".navbar").offset().top > 50) {
|
||||
$(".navbar").addClass("top-nav-short");
|
||||
} else {
|
||||
$(".navbar").removeClass("top-nav-short");
|
||||
}
|
||||
});
|
||||
|
||||
// On mobile, hide the avatar when expanding the navbar menu
|
||||
$('#main-navbar').on('show.bs.collapse', function () {
|
||||
$(".navbar").addClass("top-nav-expanded");
|
||||
})
|
||||
$('#main-navbar').on('hidden.bs.collapse', function () {
|
||||
$(".navbar").removeClass("top-nav-expanded");
|
||||
})
|
||||
|
||||
// 2fc73a3a967e97599c9763d05e564189
|
Loading…
Add table
Add a link
Reference in a new issue