* intégration de "previous page/next page" (single.html)

* mise en commentaire du breadcrumb
* dans config : removePathAccents
* mise en commentaire XMPP
* CSS : typo des liens, taille nav, taille du titre
This commit is contained in:
yv_pic
2021-01-23 17:03:05 +01:00
parent 19ab352db9
commit 1898364ee5
4 changed files with 31 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ main {
display: block; display: block;
margin: 0; margin: 0;
padding: 1em 1em; padding: 1em 1em;
background-color: FEFEFD; } background-color: #FEFEFD; }
/*couleur yp*/ /*couleur yp*/
@media (min-width: 48em) { @media (min-width: 48em) {
main { main {
@@ -41,7 +41,7 @@ main {
main { main {
margin: 0 29%; } } margin: 0 29%; } }
a { a {
font-family: FreeSerif, serif; font-family: Ubuntu, sans-serif;
color: #07608f; color: #07608f;
text-decoration: none; } text-decoration: none; }
@@ -187,7 +187,7 @@ nav a {
color: #444; color: #444;
padding: .25em .63em; padding: .25em .63em;
font-family: Infini, sans-serif; font-family: Infini, sans-serif;
font-size: 1.2em; font-size: 1em;
display: block; } display: block; }
nav li:hover { nav li:hover {
@@ -235,7 +235,7 @@ nav li:hover {
.myname { .myname {
margin: 0 auto 0 0; margin: 0 auto 0 0;
padding: 0 0 .25em .25em; padding: 0 0 .25em .25em;
font-size: 2em; } font-size: 1.5em; }
.myname a { .myname a {
color: #804000; color: #804000;

View File

@@ -6,6 +6,7 @@ newContentEditor = "nvim"
# mainSections = ["Récits"]["Recueils"] # mainSections = ["Récits"]["Recueils"]
# disqusShortname = "example" # disqusShortname = "example"
paginate = 10 paginate = 10
removePathAccents = true
[params] [params]
author = "Yves Picard" author = "Yves Picard"
@@ -21,7 +22,7 @@ paginate = 10
email = "rechampir@rechampir.net" email = "rechampir@rechampir.net"
mastodon = "@yv_pic" mastodon = "@yv_pic"
twitter = "yv_pic" twitter = "yv_pic"
xmpp = "@yvespicard@farmserv.org" # xmpp = "@yvespicard@farmserv.org"
[taxonomies] [taxonomies]
year = "year" year = "year"

View File

@@ -30,17 +30,14 @@ Le blog Rechampir est ici : [https://rechampir.net/](https://rechampir.net/)
{{< social >}} {{< social >}}
Ce qu'il reste à faire pour la v. 0.9 Ce qu'il reste à faire pour la v. 0.9
* arborescence complète : ok mais les pages "sections" n'affichent rien & comment prendre en compte les sous-dossiers ? * arborescence complète
* noms de dossiers : tenir compte du fil d'Ariane
* résumés à compléter
Pour la v. 1 : Pour la v. 1 :
* imports des textes * imports des textes
* résumés à compléter
Fonctionnalités à intégrer (layouts) Fonctionnalités à intégrer
* intégrer ensuite chapitre avant/chapitre après * typos Infini et Ubuntu à embarquer
* numérotation des paragraphes ? * numérotation des paragraphes ?
Ce qui ne marche pas encore :
* le lien social XMPP

View File

@@ -19,7 +19,26 @@
{{ else }} {{ else }}
{{ .Content }} {{ .Content }}
{{ end }} {{ end }}
{{ partial "breadcrumbs.html" . }} {{ if or (.PrevInSection) (.NextInSection) }}
<div class="next-prev">
<hr>
<div class="g-two-up">
{{with .PrevInSection }}
<div>
<h3>Previous</h3>
<p><a href=" {{ .Permalink }}">{{ .Title | safeHTML }}</a></p>
</div>
{{ end }}
{{with .NextInSection }}
<div>
<h3>Next</h3>
<p><a href=" {{ .Permalink }}">{{ .Title | safeHTML }}</a></p>
</div>
{{ end }}
</div>
</div>
{{ end }}
{{/* partial "breadcrumbs.html" . */}}
</article> </article>
</main> </main>
{{ end }} {{ end }}