beeminder ETA in the navbar
parent
294188aaf7
commit
b910399bd5
|
@ -81,6 +81,14 @@ module ::Nanoc
|
||||||
self["disqus_site"]
|
self["disqus_site"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def beeminder_goal
|
||||||
|
self["beeminder"]
|
||||||
|
end
|
||||||
|
|
||||||
|
def beeminded?
|
||||||
|
!!beeminder_goal
|
||||||
|
end
|
||||||
|
|
||||||
def url
|
def url
|
||||||
"http://#{main_site? ? "" : "#{@name}."}muflax.com"
|
"http://#{main_site? ? "" : "#{@name}."}muflax.com"
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
<h1 class="title">ETA To Next Post</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://beeminder.com/muflax/goals/<%= @goal %>">
|
||||||
|
<img src="https://beeminder.com/muflax/goals/<%= @goal %>/graph?style=thumb">
|
||||||
|
</a>
|
||||||
|
</p>
|
|
@ -21,7 +21,11 @@
|
||||||
<!-- navigation sidebar -->
|
<!-- navigation sidebar -->
|
||||||
<div id="nav">
|
<div id="nav">
|
||||||
|
|
||||||
<h1 class="title">Navigation</h1>
|
<% if @site.beeminded? %>
|
||||||
|
<%= render 'beeminder-eta', :goal => @site.beeminder_goal %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<h1 class="title">Navigation</h1>
|
||||||
|
|
||||||
<% if @search %>
|
<% if @search %>
|
||||||
<%= google_search %>
|
<%= google_search %>
|
||||||
|
|
|
@ -8,5 +8,6 @@ sites:
|
||||||
daily:
|
daily:
|
||||||
title: muflax becomes a saint
|
title: muflax becomes a saint
|
||||||
disqus_site: dailymuflax
|
disqus_site: dailymuflax
|
||||||
|
beeminder: dailylog
|
||||||
gospel:
|
gospel:
|
||||||
title: The Unchanging Gospel
|
title: The Unchanging Gospel
|
||||||
|
|
Loading…
Reference in New Issue