You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by gc...@apache.org on 2022/07/13 16:03:37 UTC

[allura] branch gc/8444 updated: fixup! [#8444] updated pagination_meta_tags with new args, added test and comments for querystring helper

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

gcruz pushed a commit to branch gc/8444
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/gc/8444 by this push:
     new a8817dcbb fixup! [#8444] updated pagination_meta_tags with new args, added test and comments for querystring helper
a8817dcbb is described below

commit a8817dcbb73592a4da704afb57c56c47a7b5dc08
Author: Guillermo Cruz <gu...@slashdotmedia.com>
AuthorDate: Wed Jul 13 10:03:06 2022 -0600

    fixup! [#8444] updated pagination_meta_tags with new args, added test and comments for querystring helper
---
 ForgeBlog/forgeblog/templates/blog/index.html          | 4 +++-
 ForgeTracker/forgetracker/templates/tracker/index.html | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ForgeBlog/forgeblog/templates/blog/index.html b/ForgeBlog/forgeblog/templates/blog/index.html
index b9e82d71c..8998b54d0 100644
--- a/ForgeBlog/forgeblog/templates/blog/index.html
+++ b/ForgeBlog/forgeblog/templates/blog/index.html
@@ -17,13 +17,15 @@
        under the License.
 -#}
 {% extends g.theme.master %}
-
+{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
 {% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}}{% endblock %}
 
 {% block head %}
     {% if count == 0 %}
     <meta name="robots" content="noindex, follow"/>
     {% endif %}
+    {{ lib.canonical_tag() }}
+    {{ lib.pagination_meta_tags(request, page, count, limit) }}
 {% endblock %}
 
 {% block header %}{{c.project.name}} / {{c.app.config.options.mount_label}}: Recent posts{% endblock %}
diff --git a/ForgeTracker/forgetracker/templates/tracker/index.html b/ForgeTracker/forgetracker/templates/tracker/index.html
index 92bda4c0a..d0ddfc337 100644
--- a/ForgeTracker/forgetracker/templates/tracker/index.html
+++ b/ForgeTracker/forgetracker/templates/tracker/index.html
@@ -26,8 +26,10 @@
   <link rel="alternate" type="application/rss+xml" title="RSS" href="feed.rss"/>
   <link rel="alternate" type="application/atom+xml" title="Atom" href="feed.atom"/>
   {{ lib.canonical_tag() }}
+  {{ lib.pagination_meta_tags(request, page, count, limit) }}
 {% endblock %}
 
+
 {% block header %}{{c.app.config.options.mount_label}}{% endblock %}
 
 {% block actions %}