mirror of
https://github.com/arsenetar/arsenetar.github.io.git
synced 2026-02-24 11:01:39 +00:00
Update to v0.1.0rc of pelican-red
This commit is contained in:
@@ -16,7 +16,7 @@ function ready(){
|
||||
// Hack to make images more responsive and wrap with .th class
|
||||
$('#main article img').each( function() {
|
||||
$(this).css({'height': '', 'width': ''});
|
||||
$(this).wrap('<a class="th" href="'+$(this).attr('src')+'" style="max-width:'+this.naturalWidth+'px">');
|
||||
$(this).wrap('<a class="th" href="'+$(this).attr('src')+'" style="max-width:'+Math.min(this.naturalWidth, 770)+'px">');
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user