Created a per-post hitcount as well a writedata() function that can
write to a particular index or to a whole data type
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<a href="/"><%= locale.home_page %></a>
|
||||
<a href="/index/pages"><%= locale.site_index %></a>
|
||||
<a href="<%= config.new_post_url %>"><%= locale.new_post %></a>
|
||||
<form method="GET" action="/search" style="display: inline"><label>Search: </label><input type="text" placeholder="🔍" name="q"><input type="submit" value="Submit"></form>
|
||||
<form method="GET" action="/search" style="display: inline"><input type="text" placeholder="🔍" name="q"><input type="submit" value="Search"></form>
|
||||
<br/>
|
||||
<%- config.seperator %>
|
||||
|
@@ -24,6 +24,11 @@
|
||||
<div id="post-editdate">
|
||||
<i><%= locale.last_modified %>: <%= func.unix_time_to_date_format(post.pubdate) %></i><br/>
|
||||
</div>
|
||||
<% if (config.enable_hitcount == true) { %>
|
||||
<div id='post-hitcount'>
|
||||
Hitcount: <%- post.hitcount %>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<div id="post-commentform">
|
||||
|
Reference in New Issue
Block a user