Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pico-theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tetras-libre
pico-theme
Commits
a2e33469
Verified
Commit
a2e33469
authored
3 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Navigation
parent
65d358ad
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
blog-index.twig
+17
-1
17 additions, 1 deletion
blog-index.twig
blog-post.twig
+2
-2
2 additions, 2 deletions
blog-post.twig
with
19 additions
and
3 deletions
blog-index.twig
+
17
−
1
View file @
a2e33469
...
...
@@ -9,7 +9,7 @@
{%
endif
%}
</h1>
<ul
class=
"items"
>
{%
for
page
in
page
s
(
"blog"
,
depth
=
null
)
|
sort_by
(
"time"
)
|
reverse
if
not
page.hidden
%}
{%
for
page
in
page
d_pages
|
sort_by
(
"time"
)
|
reverse
if
not
page.hidden
%}
{%
if
not
tag
or
tag
in
page.meta.tags
%}
<li>
<article
class=
"wrap"
>
...
...
@@ -37,4 +37,20 @@
{%
endif
%}
{%
endfor
%}
</ul>
<nav
class=
"pagination"
>
<div
class=
"wrap"
>
<!-- Pico pagination is in reverse order -->
{%
if
page_number
!=
total_pages
%}
<div
class=
"previous"
>
<a
href=
"
{{
next_page_url
}}
"
>
← Articles précédents
</a>
</div>
{%
endif
%}
{%
if
prev_page_url
!=
page.url
%}
<div
class=
"next"
>
<a
href=
"
{{
prev_page_url
}}
"
>
Articles suivants →
</a>
</div>
{%
endif
%}
</div>
</nav>
{%
endblock
%}
This diff is collapsed.
Click to expand it.
blog-post.twig
+
2
−
2
View file @
a2e33469
...
...
@@ -23,13 +23,13 @@
<p></p>
<ul
style=
"list-style:none;box-sizing:border-box"
>
{%
if
'blog'
in
previous_page.url
%}
<li
style=
"float:left;padding:15px"
><a
href=
"
{{
previous_page.url
}}
"
>
Article précédent
</a></li>
<li
style=
"float:left;padding:15px"
><a
href=
"
{{
previous_page.url
}}
"
>
←
Article précédent
</a></li>
{%
endif
%}
{%
for
tag
in
meta.tags
%}
<li
style=
"float:left;padding:15px"
><a
href=
"
{{
base_url
}}
/blog?tag=
{{
tag
}}
"
>
Tous les articles de la catégorie
{{
tag
}}
</a></li>
{%
endfor
%}
{%
if
next_page.url
!=
meta.url
%}
<li
style=
"float:left;padding:15px"
><a
href=
"
{{
next_page.url
}}
"
>
Article suivant
</a></li>
<li
style=
"float:left;padding:15px"
><a
href=
"
{{
next_page.url
}}
"
>
Article suivant
→
</a></li>
{%
endif
%}
</ul>
</section>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment