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

lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 842d7dd  Fixes layout for plugins to allow define a parent page
842d7dd is described below

commit 842d7ddab287a49c689e8ad380cbe2992cbf3c8d
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Thu May 16 08:54:24 2019 +0200

    Fixes layout for plugins to allow define a parent page
---
 source/_layouts/plugin.html                                         | 6 +++++-
 source/plugins/json/index.md                                        | 2 +-
 source/plugins/json/{json-validation.md => json-ajax-validation.md} | 4 ++--
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/source/_layouts/plugin.html b/source/_layouts/plugin.html
index b66ac62..d25b36d 100644
--- a/source/_layouts/plugin.html
+++ b/source/_layouts/plugin.html
@@ -25,8 +25,12 @@
 
 <article class="container">
   <section class="col-md-12">
-    <a href="../" title="back to Plugins"><< back to Plugins</a>
     <a class="edit-on-gh" href="{{ site.repository_url 
}}/edit/master/source/{{ page.path }}" title="Edit this page on GitHub">Edit on 
GitHub</a>
+    {% if page.parent %}
+    <a href="{{ page.parent.url }}" title="back to {{ page.parent.title }}"><< 
back to {{ page.parent.title }}</a>
+    {% else %}
+    <a href="../" title="back to Plugins"><< back to Plugins</a>
+    {% endif %}
     {{ content }}
   </section>
 </article>
diff --git a/source/plugins/json/index.md b/source/plugins/json/index.md
index 14d158d..60970eb 100644
--- a/source/plugins/json/index.md
+++ b/source/plugins/json/index.md
@@ -46,7 +46,7 @@ The `setArray` method can take as parameter either a `List`, 
or any numeric arra
 
 `root` attribute must be set on the `JSONInterceptor` when dealing with JSON 
array.
 
-This plugin also provides [JSON Validation](json-validation).
+This plugin also provides [JSON Ajax Validation](json-ajax-validation).
 
 ## Installation
 
diff --git a/source/plugins/json/json-validation.md 
b/source/plugins/json/json-ajax-validation.md
similarity index 99%
rename from source/plugins/json/json-validation.md
rename to source/plugins/json/json-ajax-validation.md
index aecfa86..80e6218 100644
--- a/source/plugins/json/json-validation.md
+++ b/source/plugins/json/json-ajax-validation.md
@@ -2,8 +2,8 @@
 layout: plugin
 title: JSON Ajax validation
 parent:
-    title: JSON plugin
-    url: index.html
+  title: JSON plugin
+  url: index.html
 ---
 
 # JSON Ajax Validation

Reply via email to