Skip to content

Commit bfaeaee

Browse files
committed
Update Leo to v1.5.3
1 parent a9bae9c commit bfaeaee

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

data/leo.yml

100755100644
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
title: MVCSS
1+
title: Leo
2+
author: Drew Barontini
3+
reading_time: true

source/assets/javascripts/application.coffee renamed to source/assets/javascripts/application.js.coffee.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ jQuery ($) ->
3636
els: $('h2, h3, h4, h5, h6')
3737
})
3838

39+
<% if data.leo.reading_time %>
3940
Leo.readTime({
4041
wordsPerMinute: 200
4142
text: $('.content').text()
4243
element: $('.content h1')
4344
})
45+
<% end %>
4446

4547
$('.toggle').on 'click', (e) ->
4648
e.preventDefault()

0 commit comments

Comments
 (0)