Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chagratt
bwog-notes-v2
Commits
a704941d
Commit
a704941d
authored
Apr 27, 2020
by
wbar
Browse files
remove pagination hugly hacks
parent
85e43306
Changes
4
Hide whitespace changes
Inline
Side-by-side
config.toml
View file @
a704941d
...
...
@@ -2,10 +2,10 @@ baseURL = "https://bwog-notes.chagratt.site/"
languageCode
=
"fr-fr"
DefaultContentLanguage
=
"fr"
title
=
"BWog-notes"
paginate
=
10
[params]
section_on_frontpage
=
"posts"
pagination_articles
=
10
description
=
"Bloc notes en ligne sur l'administration système Linux et autres sujets liés"
author
=
"Chagratt"
...
...
layouts/_default/rss.xml
View file @
a704941d
...
...
@@ -12,7 +12,7 @@
{{ with .OutputFormats.Get "RSS" }}
{{ printf "
<atom:link
href=
%q
rel=
\"self\"
type=
%q
/>
" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.section_on_frontpage )
.Site.Params.pagination_articles
}}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.section_on_frontpage ) }}
{{ range $paginator.Pages }}
<item>
<title>
{{ .Title }}
</title>
...
...
layouts/_default/taxonomy.html
View file @
a704941d
{{ partial "header.html" . }}
<h1>
Liste des articles > {{ .Title }}
</h1>
{{ range
(
.Paginator
.Site.Params.pagination_articles)
.Pages }}
{{ range .Paginator.Pages }}
<article>
<header>
<h1
class=
"articles-listing-title"
>
...
...
layouts/index.html
View file @
a704941d
{{ partial "header.html" . }}
<h1>
Liste des articles
</h1>
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.section_on_frontpage )
.Site.Params.pagination_articles
}}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.section_on_frontpage ) }}
{{ range $paginator.Pages }}
<article>
<header>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment