Compare commits

...

6 Commits
main ... dev

Author SHA1 Message Date
iGor milhit 9036561668
scss: improve citation block spacing
Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-11-11 10:16:49 +01:00
iGor milhit 7019bf427e
fonts: serve woff2 instead of ttf
- Serves a compressed version of the Lilex fonts, to improve the page
  loading and lower it's weight. The compression was done with the help
  of https://github.com/google/woff2 as found on
  https://stackoverflow.com/a/73105293.
- Fixes #39.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-11-02 08:36:36 +01:00
iGor milhit 00e50f9055
layout: display the 5 last post on homepage
- Renames index.html to home.html.
- Adds a section, if the home_post_list parameter is set to true, that
  list the 5 last posts.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-11-01 15:04:23 +01:00
iGor milhit f4703cf789
scss: 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-11-01 15:00:56 +01:00
iGor milhit 47ccca91d1
scss: improve spacing of header navigation
- Improves the spacing of the header navigation item, in order to ease
  their use.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-10-30 17:04:47 +01:00
iGor milhit 61c2446bdd
scss: set smaller font size for track lists
- Sets a smaller font size for track lists in post publishing lives.
  This suppose to use pandoc as markup converter, and to add a `<div>`
  around the list to specify the `.tracklist` class.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-10-30 09:19:04 +01:00
23 changed files with 83 additions and 31 deletions

View File

@ -19,9 +19,14 @@ You can install it as the [HUGO documentation][4] recommends.
## Configuration ## 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 ### Personal and professional description
The front page displays, if it exists, the content of the main index markdown The homepage 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 file that could be placed at the root of the content directory [[HUGO's
documentation][3]]. documentation][3]].

View File

@ -7,25 +7,25 @@
@font-face { @font-face {
font-family: "mylilex"; font-family: "mylilex";
font-weight: 100; font-weight: 100;
src: url("/fonts/Lilex-Thin.ttf") format('truetype'); src: url("/fonts/Lilex-Thin.woff2") format('woff2');
} }
@font-face { @font-face {
font-family: "mylilex"; font-family: "mylilex";
font-weight: 200; font-weight: 200;
src: url("/fonts/Lilex-ExtraLight.ttf") format('truetype'); src: url("/fonts/Lilex-ExtraLight.woff2") format('woff2');
} }
@font-face { @font-face {
font-family: "mylilex"; font-family: "mylilex";
font-weight: 400; font-weight: 400;
src: url("/fonts/Lilex-Regular.ttf") format('truetype'); src: url("/fonts/Lilex-Regular.woff2") format('woff2');
} }
@font-face { @font-face {
font-family: "mylilex"; font-family: "mylilex";
font-weight: 700; font-weight: 700;
src: url("/fonts/Lilex-Bold.ttf") format('truetype'); src: url("/fonts/Lilex-Bold.woff2") format('woff2');
} }
/////////////////// ///////////////////

View File

@ -31,5 +31,10 @@
} }
.header-navigation {
width: 100%;
justify-content: space-evenly;
}
} }
} }

View File

@ -15,6 +15,24 @@
} }
} }
/* 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 */ /* Lists of the main page, for contact */
.home-lists { .home-lists {
@ -106,6 +124,10 @@ details[open] > ul {
} }
} }
.tracklist {
font-size: smaller;
}
.list-footer { .list-footer {
padding-left: .5em; padding-left: .5em;
} }

View File

@ -30,7 +30,6 @@ mark {
.citation { .citation {
border: none; border: none;
margin: initial;
width: initial; width: initial;
blockquote { blockquote {

View File

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

View File

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

View File

@ -0,0 +1,33 @@
{{ 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 }}

View File

@ -1,14 +0,0 @@
{{ 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 }}

View File

@ -16,7 +16,7 @@
</a> </a>
</li> </li>
</ul> </ul>
<ul> <ul class="header-navigation">
{{ $currentPage := . -}} {{ $currentPage := . -}}
{{ range sort .Site.Menus.main -}} {{ range sort .Site.Menus.main -}}
<li class="nav-item secondary"> <li class="nav-item secondary">

View File

@ -1,4 +1,4 @@
<h2 id="contactsPriv">{{ i18n "contactsPriv" }}</h2> <h2 id="contacts-priv">{{ i18n "contactsPriv" }}</h2>
<dl class="home-lists"> <dl class="home-lists">
{{ with .Site.Params.contactsPriv.email }} {{ with .Site.Params.contactsPriv.email }}
<dt>{{ i18n "e-mail" }}</dt> <dt>{{ i18n "e-mail" }}</dt>

View File

@ -1,4 +1,4 @@
<h2 id="contactsPro">{{ i18n "contactsPro" }}</h2> <h2 id="contacts-pro">{{ i18n "contactsPro" }}</h2>
<dl class="home-lists"> <dl class="home-lists">
{{ with .Site.Params.contactsPro.email }} {{ with .Site.Params.contactsPro.email }}
<dt>{{ i18n "e-mail" }}</dt> <dt>{{ i18n "e-mail" }}</dt>

View File

@ -1,10 +1,10 @@
<figure class="stream"> <figure class="stream">
<figcaption><p>{{ .Get "legend" }}</p></figcaption> <figcaption><p>{{ .Get "legend" }}</p></figcaption>
<audio controls> <audio controls>
<source src="https://id-libre.org/live/stream.ogg" type="audio/ogg"> <source src="https://id-libre.org/live/stream.ogg" type="audio/ogg">
<source src="https://id-libre.org/live/stream.mp3" type="audio/mpeg"> <source src="https://id-libre.org/live/stream.mp3" type="audio/mpeg">
{{ i18n "audioDownload" }} <a href="https://id-libre.org/live/stream.mp3"> {{ i18n "audioDownload" }} <a href="https://id-libre.org/live/stream.mp3">
{{ i18n "thisLink" }} {{ i18n "thisLink" }}
</a> </a>
</audio> </audio>
</figure> </figure>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.