Compare commits

..

1 Commits

Author SHA1 Message Date
iGor milhit 480290f589
css: replace value by a pico variable
- Replaces a spacing value in the medias SCSS file by the pico variable.
- Fixes the IDs of the personal and professional contact headers, to
  ease linking.
- Rewrite the indentation of a shortcode.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-10-31 12:14:45 +01:00
6 changed files with 15 additions and 59 deletions

View File

@ -19,14 +19,9 @@ You can install it as the [HUGO documentation][4] recommends.
## Configuration
### List of last posts on the homepage
If you want the 5 last posts being listed on the homepage, add the
`home_post_list` to the configuration. Set it to true.
### Personal and professional description
The homepage displays, if it exists, the content of the main index markdown
The front page displays, if it exists, the content of the main index markdown
file that could be placed at the root of the content directory [[HUGO's
documentation][3]].

View File

@ -15,24 +15,6 @@
}
}
/* List of last posts, on the home page*/
.home-posts-list {
padding-bottom: var(--pico-spacing);
border-bottom: var(--pico-muted-border-color) solid var(--pico-border-width);
article {
display: inline-block;
}
article:not(:last-child) {
&::after {
content: '/';
white-space: pre;
}
}
}
/* Lists of the main page, for contact */
.home-lists {

View File

@ -8,7 +8,6 @@ defaultImageAlt = "Grayish sheep portrait"
e-mail = "e-mail"
fingerprint = "Fingerprint"
lastCommit = "Last commit modifying this page"
lastPosts = "Last Posts"
lastUpdate = "Last update"
mobile = "Mobile"
online = "Online"

View File

@ -8,7 +8,6 @@ defaultImageAlt = "Portrait de mouton en nuances de gris"
e-mail = "e-mail"
fingerprint = "Empreinte"
lastCommit = "Dernier commit modifiant cette page"
lastPosts = "Derniers billets"
lastUpdate = "Dernière mise à jour"
mobile = "Téléphone mobile"
online = "En ligne"

View File

@ -1,33 +0,0 @@
{{ define "main" }}
<!-- List the 5 last posts if the home_post_list parameters is set to true -->
{{ if .Site.Params.home_post_list }}
<section class="home-posts-list">
<h2>{{ i18n "lastPosts" }}</h2>
<!--
Ranges regular pages by the publish date, in reverse order, to display the
post titles of the section from most recent to older, and the category.
-->
{{ range first 5 .Site.RegularPages.ByPublishDate.Reverse }}
<article>
<a href="{{ .Permalink }}">
{{- .Title -}}
</a>
</article>
{{ end }}
</section>
{{ end }}
<section class="home-content">
<!-- Content for home.html, as a sort of list page,
is pulled from content/_index.md -->
{{.Content}}
{{ if .Site.Params.online }}
{{ partial "online" . }}
{{ end }}
{{ if .Site.Params.contactsPriv }}
{{ partial "perso" .}}
{{ end }}
{{ if .Site.Params.contactsPro }}
{{ partial "pro" . }}
{{ end }}
</section>
{{ end }}

14
layouts/index.html 100644
View File

@ -0,0 +1,14 @@
{{ define "main" }}
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
{{ if .Site.Params.online }}
{{ partial "online" . }}
{{ end }}
{{ if .Site.Params.contactsPriv }}
{{ partial "perso" .}}
{{ end }}
{{ if .Site.Params.contactsPro }}
{{ partial "pro" . }}
{{ end }}
</main>
{{ end }}