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

mawiesne pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opennlp-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 665803ee adds share_link.ftl and share_news.ftl to separate news posts 
(with social networks) from regular page actions (copy-url/print)
665803ee is described below

commit 665803eedb09d4ff6d950eb9543d4a91b9e8365f
Author: Martin Wiesner <[email protected]>
AuthorDate: Sun Nov 17 16:35:29 2024 +0100

    adds share_link.ftl and share_news.ftl to separate news posts (with social 
networks) from regular page actions (copy-url/print)
---
 src/main/jbake/templates/news.ftl                  | 36 ++++++++++++----------
 src/main/jbake/templates/page.ftl                  |  1 +
 src/main/jbake/templates/post.ftl                  |  2 +-
 .../jbake/templates/{page.ftl => share_link.ftl}   | 15 +++------
 .../templates/{share_links.ftl => share_news.ftl}  |  2 +-
 5 files changed, 26 insertions(+), 30 deletions(-)

diff --git a/src/main/jbake/templates/news.ftl 
b/src/main/jbake/templates/news.ftl
index c51b6962..0b889e3f 100755
--- a/src/main/jbake/templates/news.ftl
+++ b/src/main/jbake/templates/news.ftl
@@ -22,23 +22,25 @@
 
 <div class="container">
 
-      <div class="row-fluid marketing">
-        <div class="span9">
-          <h1>News</h1>
-          <ul>
-               <#list posts as post>
-                       <#if (post.status == "published") && (post.category??) 
&& (post.category == "news")>
-                               <li><p>${post.date?string("yyyy-MM-dd")}: <a 
href="/${post.uri}">${post.title}</a></p></li>
-                       </#if>
-               </#list>
-          </ul>
-          <p></p>
-          <p>Subscribe to Apache OpenNLP updates using the <a 
href="/${config.feed_file}">feed</a>.</p>
-        </div>        
-      </div>
-
-      <hr>
-
+    <div class="row-fluid marketing">
+    <div class="span9">
+      <h1>News</h1>
+      <p>Subscribe to Apache OpenNLP updates using the <a 
href="/${config.feed_file}">feed</a>.</p>
+      <ul>
+        <#list posts as post>
+            <#if (post.status == "published") && (post.category??) && 
(post.category == "news")>
+                <li><p>${post.date?string("yyyy-MM-dd")}: <a 
href="/${post.uri}">${post.title}</a></p></li>
+            </#if>
+        </#list>
+      </ul>
+      <p></p>
+    </div>
+    </div>
+
+    <hr>
+
+    <div id="share"><#include "share_link.ftl"></div>
 </div>
 
+
 <#include "footer.ftl">
diff --git a/src/main/jbake/templates/page.ftl 
b/src/main/jbake/templates/page.ftl
index 7249a882..31245886 100755
--- a/src/main/jbake/templates/page.ftl
+++ b/src/main/jbake/templates/page.ftl
@@ -25,6 +25,7 @@
 
     ${content.body}
 
+    <div id="share"><#include "share_link.ftl"></div>
 </div>
 
 <#include "footer.ftl">
diff --git a/src/main/jbake/templates/post.ftl 
b/src/main/jbake/templates/post.ftl
index 307065e4..ef955a63 100755
--- a/src/main/jbake/templates/post.ftl
+++ b/src/main/jbake/templates/post.ftl
@@ -26,7 +26,7 @@
     ${content.body}
 
     <p><em>${content.date?string("dd MMMM yyyy")}</em></p>
-    <div id="share"><#include "share_links.ftl"></div>
+    <div id="share"><#include "share_news.ftl"></div>
 </div>
 
 <#include "footer.ftl">
diff --git a/src/main/jbake/templates/page.ftl 
b/src/main/jbake/templates/share_link.ftl
similarity index 82%
copy from src/main/jbake/templates/page.ftl
copy to src/main/jbake/templates/share_link.ftl
index 7249a882..3e7bcabb 100755
--- a/src/main/jbake/templates/page.ftl
+++ b/src/main/jbake/templates/share_link.ftl
@@ -16,15 +16,8 @@
    specific language governing permissions and limitations
    under the License. 
 -->
-<#include "header.ftl">
 
-<#include "menu.ftl">
-
-<div class="container">
-    <h1 class="title">${content.title}</h1>
-
-    ${content.body}
-
-</div>
-
-<#include "footer.ftl">
+<div class="shareon">
+  <a class="copy-url"></a>
+  <a class="print"></a>
+</div>
\ No newline at end of file
diff --git a/src/main/jbake/templates/share_links.ftl 
b/src/main/jbake/templates/share_news.ftl
similarity index 94%
rename from src/main/jbake/templates/share_links.ftl
rename to src/main/jbake/templates/share_news.ftl
index 0c4420e6..8e94bfd6 100755
--- a/src/main/jbake/templates/share_links.ftl
+++ b/src/main/jbake/templates/share_news.ftl
@@ -17,7 +17,7 @@
    under the License. 
 -->
 
-<div class="shareon" style="margin-top: 30px";>
+<div class="shareon" style="margin-top: 30px;">
   <a class="reddit"></a>
   <a class="linkedin"></a>
   <a class="mastodon"></a>

Reply via email to