You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2019/12/20 14:15:09 UTC

[royale-docs] branch master updated: github pages does not support last_modified_data plugin yet

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new f6250a8  github pages does not support last_modified_data plugin yet
f6250a8 is described below

commit f6250a8c4af4b892172bc36c139242d248273d4c
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Dec 20 15:14:59 2019 +0100

    github pages does not support last_modified_data plugin yet
---
 _layouts/docpage.html                   | 1 -
 _plugins/hook-add-last-modified-date.rb | 9 ---------
 2 files changed, 10 deletions(-)

diff --git a/_layouts/docpage.html b/_layouts/docpage.html
index 669008b..3734761 100644
--- a/_layouts/docpage.html
+++ b/_layouts/docpage.html
@@ -47,7 +47,6 @@ limitations under the License.
     <div class="page-content">
       <article>
         {{content}}
-        <span>This page was modified last time: {{ page.last-modified-date | date: '%B %d, %Y' }}</span>
         <div class="bottom-links">
           <a href="https://github.com/apache/royale-docs/edit/master/{{ page.path }}" target="_blank">Edit this page</a>
         </div>
diff --git a/_plugins/hook-add-last-modified-date.rb b/_plugins/hook-add-last-modified-date.rb
deleted file mode 100644
index 316a1f1..0000000
--- a/_plugins/hook-add-last-modified-date.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-Jekyll::Hooks.register :posts, :pre_render do |post|
-
-# get the current post last modified time
-modification_time = File.mtime( post.path )
-
-# inject modification_time in post's datas.
-post.data['last-modified-date'] = modification_time
-
-end
\ No newline at end of file