Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directly show list of posts after clicking on "Next page" #20

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/templates/blog.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

{%- if blog.next %}
<div class="paging">
<a class="next-page button" href="{{request.path}}?continuation={{blog.next.cursor | urlencode}}">
<a class="next-page button" href="{{request.path}}?continuation={{blog.next.cursor | urlencode}}#m">
{{translate("en", "pagination_next_page")}}
</a>
</div>
{% endif %}

{%- endblock %}
{%- endblock %}
4 changes: 2 additions & 2 deletions src/templates/components/blog_contents.jinja
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="blog-posts">
<div class="blog-posts" id="m">
{%- for element in blog.posts -%}
{%- if not element.is_advertisement -%}
{%- include 'components/post.jinja' -%}
{%- endif -%}
{%- endfor -%}
</div>
</div>
4 changes: 2 additions & 2 deletions src/templates/components/timeline.jinja
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="timeline">
<div class="timeline" id="m">
{%- for element in timeline.elements -%}
{%- if not element.is_advertisement -%}
{%- include 'components/post.jinja' -%}
{%- endif -%}
{%- endfor -%}
</div>
</div>
4 changes: 2 additions & 2 deletions src/templates/explore.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

{%- if timeline.next %}
<div class="paging">
<a class="next-page button" href="{{request.path}}?continuation={{timeline.next.cursor | urlencode}}">
<a class="next-page button" href="{{request.path}}?continuation={{timeline.next.cursor | urlencode}}#m">
{{translate("en", "pagination_next_page")}}
</a>
</div>
{% endif %}

{%- endblock %}
{%- endblock %}
4 changes: 2 additions & 2 deletions src/templates/search.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@

{%- if timeline.next %}
<div class="paging">
<a class="next-page button" href="{{request.path}}{{add_query(query_args | update_query_params("continuation", timeline.next.cursor))}}">
<a class="next-page button" href="{{request.path}}{{add_query(query_args | update_query_params("continuation", timeline.next.cursor))}}#m">
{{translate("en", "pagination_next_page")}}
</a>
</div>
{% endif %}
{% endblock %}
{% endblock %}
4 changes: 2 additions & 2 deletions src/templates/tagged.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{%- if timeline.next %}
<div class="paging">
<a class="next-page button" href="{{request.path}}?continuation={{timeline.next.cursor | urlencode}}">{{translate("en", "pagination_next_page")}}</a>
<a class="next-page button" href="{{request.path}}?continuation={{timeline.next.cursor | urlencode}}#m">{{translate("en", "pagination_next_page")}}</a>
</div>
{% endif %}
{% endblock %}
{% endblock %}