From 2ecec3b59aabe2fd6156338cd4cbab7672d4f9b1 Mon Sep 17 00:00:00 2001
From: Wu Cheng-Han
Date: Tue, 12 Jan 2016 08:01:42 -0600
Subject: Support show last change user with profile and support YAML config
inside the note with robots, lang, dir, breaks options
---
public/views/body.ejs | 7 ++++++-
public/views/foot.ejs | 2 ++
public/views/head.ejs | 3 +++
public/views/html.hbs | 3 ++-
public/views/pretty.ejs | 21 ++++++++++++++++-----
5 files changed, 29 insertions(+), 7 deletions(-)
(limited to 'public/views')
diff --git a/public/views/body.ejs b/public/views/body.ejs
index f47cf175..b3a49db8 100644
--- a/public/views/body.ejs
+++ b/public/views/body.ejs
@@ -5,7 +5,12 @@
-
+
+
+
+ changed
+
+
diff --git a/public/views/foot.ejs b/public/views/foot.ejs
index ee04d440..c042438d 100644
--- a/public/views/foot.ejs
+++ b/public/views/foot.ejs
@@ -6,6 +6,7 @@
+
<% } else { %>
@@ -14,6 +15,7 @@
+
<% } %>
diff --git a/public/views/head.ejs b/public/views/head.ejs
index fa690108..795665b4 100644
--- a/public/views/head.ejs
+++ b/public/views/head.ejs
@@ -4,6 +4,9 @@
+<% if(typeof robots !== 'undefined' && robots) { %>
+
+<% } %>
<%- title %>
diff --git a/public/views/html.hbs b/public/views/html.hbs
index e3aa1331..5c7e6bea 100644
--- a/public/views/html.hbs
+++ b/public/views/html.hbs
@@ -9,6 +9,7 @@
+ {{{robots}}}
{{title}}
@@ -42,7 +43,7 @@
-
+
{{{toc-affix}}}
diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs
index 46c559f9..6fe02827 100644
--- a/public/views/pretty.ejs
+++ b/public/views/pretty.ejs
@@ -8,6 +8,9 @@
+ <% if(typeof robots !== 'undefined' && robots) { %>
+
+ <% } %>
<%- title %>
@@ -37,13 +40,19 @@
- <%- updatetime %>
- <%- viewcount %> views
+
+ <% if(lastchangeuserprofile) { %>
+
+ <% } else { %>
+
+ <% } %>
+ changed
+ <%- updatetime %>
+
+ <%- viewcount %> views
-
-<%- body %>
-
+
<%- body %>