Commit
1) improved markup semantics 2) archive & collapse buttons fully working 3) sidebar improvements
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<section id="about"> | ||
<div class="sidebar-title">About</div> | ||
I am currently an undergraduate student attending the University of Waterloo. I am expected to graduate in the spring of 2014. | ||
</section> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<section id="contact"> | ||
<div class="sidebar-title">Contact</div> | ||
You can reach me by email at <a href="mailto:mack@mduan.com">mack@mduan.com</a>. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mduan
Author
Owner
|
||
</section> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<footer> | ||
<nav> | ||
<ul> | ||
<li><a href="https://github.com/mduan/mduan_site">managed by github</a></li> | ||
<li><a href="http://github.com/mojombo/jekyll">generated by jekyll</a></li> | ||
<li><a href="http://creativecommons.org/licenses/by-sa/3.0/us/">licensed by creative commons</a></li> | ||
<li><a href="http://citynethost.com">served by citynethost</a></li> | ||
</ul> | ||
</nav> | ||
</footer> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<header> | ||
<nav> | ||
<a href="/index.html" id="logo">Mack Duan</a> | ||
<ul> | ||
<li><a href="/index.html" class="blog">Blog</a></li> | ||
<li><a href="/projects.html" class="projects">Projects</a></li> | ||
<li><a href="/resume.html" class="resume">Resume</a></li> | ||
<li><a href="/atom.xml" class="atom">Atom</a></li> | ||
</ul> | ||
</nav> | ||
</header> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<section id="social"> | ||
<div class="sidebar-title">Social</div> | ||
<nav> | ||
<ul> | ||
<li><a href="http://www.linkedin.com/in/mduan">LinkedIn</a></li> | ||
<li><a href="https://github.com/mduan">Github</a></li> | ||
<li><a href="http://feeds.feedburner.com/mduan">Feedburner</a></li> | ||
</ul> | ||
</nav> | ||
</section> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
layout: default | ||
css_paths: ["/css/blog.css"] | ||
css_paths: ["/assets/css/blog.css"] | ||
This comment has been minimized.
Sorry, something went wrong.
divad12
Contributor
|
||
type: post-page | ||
--- | ||
<section> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
$(function() { | ||
// TODO: refactor out toggling logic | ||
|
||
// Sidebar collapse/expand toggle | ||
(function() { | ||
var oldPaddingRight = undefined; | ||
var oldWidth = undefined; | ||
$('#sidebar-toggle-button').click(function() { | ||
$this = $(this); | ||
$this.toggleClass('depressed'); | ||
if ($this.hasClass('depressed')) { | ||
var $contentWrapper = $('#content-wrapper'); | ||
|
||
$sidebar = $('#sidebar'); | ||
var marginRight = parseInt($contentWrapper.css('padding-right')) + $sidebar.outerWidth(true); | ||
This comment has been minimized.
Sorry, something went wrong.
divad12
Contributor
|
||
$sidebar.animate({'margin-right': -marginRight}); | ||
|
||
$mainContent = $('#main-content'); | ||
This comment has been minimized.
Sorry, something went wrong. |
||
oldWidth = $mainContent.width(); | ||
oldPaddingRight = parseInt($mainContent.css('padding-right')); | ||
$mainContent.animate({'width': $contentWrapper.width(), 'padding-right': 0}); | ||
} else { | ||
$('#sidebar').animate({'margin-right': 0}); | ||
$('#main-content').animate({'width': oldWidth, 'padding-right': oldPaddingRight}); | ||
This comment has been minimized.
Sorry, something went wrong.
divad12
Contributor
|
||
} | ||
}); | ||
})(); | ||
|
||
// Blog archive display toggle | ||
(function () { | ||
This comment has been minimized.
Sorry, something went wrong.
divad12
Contributor
|
||
$('#archive').css('display', 'none'); | ||
$('#archive-toggle-button').click(function() { | ||
$this = $(this); | ||
$this.toggleClass('depressed'); | ||
$('#archive').slideToggle(); | ||
//if ($this.hasClass('depressed')) { | ||
// $('#archive').slideDown('slow'); | ||
//} else { | ||
// $('#archive').slideUp('slow'); | ||
//} | ||
}); | ||
})(); | ||
}); |
Hope you don't get spam :P You could just upload an image or something.