Compare commits

...

14 Commits

Author SHA1 Message Date
iGor milhit 34699ff5ff
release: publish version 0.4.0
Co-Authored-by: iGor milhit <igor@milhit.ch>
2026-06-12 12:13:36 +02:00
iGor milhit 7dc5b4ce1e
layout: update a depreciated expression
- Replaces LanguageCode by Language.Locale.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2026-06-12 11:58:52 +02:00
iGor milhit 5074b69b60 layout: fix an error in the RSS template
Co-Authored-by: iGor milhit <igor@milhit.ch>
2026-02-20 15:37:13 +01:00
iGor milhit 494c0a28c6
dependencies: upgrade the dev packages
- Upgrades picocss, auto-changelog, gutenberg-css.
- Updates the CHANGELOG.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2025-04-21 21:07:39 +02:00
iGor milhit fb053482cd
scss: fix the mark color contrast for dark theme
- Uses the main font color of the light theme for the mark color of the
  dark theme, to improve the contrast.
- Uses the h1 color for the logo.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-12-14 08:55:43 +01:00
iGor milhit 264fc3480e
layouts: allow lists to be overwritten
- Replace fixed spacing by the pico variable, and improve the horizontal
  spacing of lists of posts (sections).
- Place the list of last posts of the home page on a separate partial.
  Thus, this partial is easier to overwrite in the user layout
  directory.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-12-08 08:55:51 +01:00
iGor milhit 83f45fefff
scss: improve the scss pipe
- Adds the fingerprint of the processed css files.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-12-07 07:52:31 +01:00
iGor milhit 0c6ae76ed9
scss: get rid of the webkit audio rounded corner
- Gets rid of the webkit audio rounded corner, to harmonize the style
  across web browsers.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-11-22 18:24:14 +01:00
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
35 changed files with 235 additions and 302 deletions

View File

@ -7,103 +7,125 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
## [Unreleased](https://git.milhit.ch/igor/portfoligor/compare/v0.2.0...HEAD)
## v0.4.0
### Fixed
- theme: improve spacings [`#38`](https://git.milhit.ch/igor/portfoligor/issues/38)
- picocss: implement the pico css framework [`#29`](https://git.milhit.ch/igor/portfoligor/issues/29) [`#15`](https://git.milhit.ch/igor/portfoligor/issues/15) [`#16`](https://git.milhit.ch/igor/portfoligor/issues/16)
- i18n: extract, translate strings to be translated [`#18`](https://git.milhit.ch/igor/portfoligor/issues/18)
- style: add a stylesheet for printing [`#28`](https://git.milhit.ch/igor/portfoligor/issues/28)
- fonts: serve woff2 instead of ttf
- theme: improve spacings
### Commits
- rss: add an updated date [`a5ee40a`](https://git.milhit.ch/igor/portfoligor/commit/a5ee40adb7d5530e6b2a912348910cbc743c163b)
- layouts: update author metadata [`75086bc`](https://git.milhit.ch/igor/portfoligor/commit/75086bc831a5c1273f8fcbb400a9d07d07e6e592)
- layouts: move `.Site` (deprecated) to `hugo` [`91837de`](https://git.milhit.ch/igor/portfoligor/commit/91837de4f73f55bfde1947382daeee32bf0195fd)
- documentation: update the README to new git repo [`282b6bc`](https://git.milhit.ch/igor/portfoligor/commit/282b6bcd85b9843eab18190ac5cb808624358e8c)
- gitInfo: configuration of the git repository [`1aaa6b0`](https://git.milhit.ch/igor/portfoligor/commit/1aaa6b02b5cab985ffc3e66aaceeeb91fd8bf134)
- scss: improve the `verse` text layout [`989343e`](https://git.milhit.ch/igor/portfoligor/commit/989343ea597de5d892530e70b038dff1e6a69511)
- post image: get the image in the atom xml file [`0c21f00`](https://git.milhit.ch/igor/portfoligor/commit/0c21f00b671865f392a27a156b7d036fb7e3949e)
- dependencies: add picocss as a dependency [`c2ac1f5`](https://git.milhit.ch/igor/portfoligor/commit/c2ac1f5ed1a583477245f72e6acdd01c627e3918)
- text: set font style to em nested in blockquote [`e78fd96`](https://git.milhit.ch/igor/portfoligor/commit/e78fd961ae14a4b69e181f8c199ea002d2691404)
- text: style the new citation block [`40da59a`](https://git.milhit.ch/igor/portfoligor/commit/40da59a1eb073f231087ee133397e649ee2bf552)
- homepage: move the CV file to the personal data [`7a2aa2d`](https://git.milhit.ch/igor/portfoligor/commit/7a2aa2d1a9f5e1951cf7977e662888af4db33da9)
- layout: fix medias integration [`a7c87c9`](https://git.milhit.ch/igor/portfoligor/commit/a7c87c947f1ca9ed56b38dd40091484ebae3c742)
- layout: update a depreciated expression
- layout: fix an error in the RSS template
- dependencies: upgrade the dev packages
- scss: fix the mark color contrast for dark theme
- layouts: allow lists to be overwritten
- scss: improve the scss pipe
- scss: get rid of the webkit audio rounded corner
- scss: improve citation block spacing
- layout: display the 5 last post on homepage
- scss: replace value by a pico variable
- scss: improve spacing of header navigation
- scss: set smaller font size for track lists
- scss: add a bottom border to post-infos content
## [v0.2.0](https://git.milhit.ch/igor/portfoligor/compare/0.1.1...v0.2.0) - 2021-11-03
## v0.3.0 - 2024-10-19
### Fixed
- documentation: fill in the README [`#6`](https://git.milhit.ch/igor/portfoligor/issues/6)
- theme: simplify the main layout [`#8`](https://git.milhit.ch/igor/portfoligor/issues/8)
- layouts: use details for the post informations [`#17`](https://git.milhit.ch/igor/portfoligor/issues/17)
- data: sort terms in post information [`#13`](https://git.milhit.ch/igor/portfoligor/issues/13)
- style: Implements nord color scheme [`#7`](https://git.milhit.ch/igor/portfoligor/issues/7)
- picocss: implement the pico css framework
- i18n: extract, translate strings to be translated
- style: add a stylesheet for printing
### Commits
- release: v0.2.0 [`64c93b7`](https://git.milhit.ch/igor/portfoligor/commit/64c93b72d6522ab6ce1ebec42ee81e0809f8cb17)
- header: restore and adapt the avatar image [`ad3ee27`](https://git.milhit.ch/igor/portfoligor/commit/ad3ee27f0a2391cd0ae3893da238c86e9ed26feb)
- colors: move the visited property up the others [`07d9577`](https://git.milhit.ch/igor/portfoligor/commit/07d9577e8cbeaf7710833e6267148cabff837cc4)
- colors: colorizes the link on hover [`52a8e25`](https://git.milhit.ch/igor/portfoligor/commit/52a8e251f9bcee37de941010bd2715125116deaa)
- menu: improve the menu [`c0f6de2`](https://git.milhit.ch/igor/portfoligor/commit/c0f6de2ab1977de839ade035c4d60596e3cea331)
- post: display the postimage if it exists [`7bba092`](https://git.milhit.ch/igor/portfoligor/commit/7bba092f68488116a7b010ee4bdddd7c1cbee071)
- head: improve the metadata exposed [`e7de77b`](https://git.milhit.ch/igor/portfoligor/commit/e7de77b3ad3f67c1833bdc3030cad034e5d0d5c6)
- content: improve verses layout for small screens [`029a3ac`](https://git.milhit.ch/igor/portfoligor/commit/029a3ac1745580c999b75ae6fd9b68e520514a91)
- footer: add link to the last commit [`0190c23`](https://git.milhit.ch/igor/portfoligor/commit/0190c233e9eb54638ddddf9cccb87405391b3c7b)
- list: fix date variable on the lists and sections [`36a334c`](https://git.milhit.ch/igor/portfoligor/commit/36a334cab9d4e2bf746214571287d35a29bdf6eb)
- shortcodes: adds an audio player with album cover [`e1cf918`](https://git.milhit.ch/igor/portfoligor/commit/e1cf9185f3f7c3cba4e97c6b2371fb9a465017da)
- head: add a favicon [`e56fddc`](https://git.milhit.ch/igor/portfoligor/commit/e56fddc6e0c15bb6839c9cfc6277df5eb8f46d03)
- layout: improve post info in single or list pages [`8177560`](https://git.milhit.ch/igor/portfoligor/commit/817756034b5c3338ea47a2108780ba0b7f47e383)
- rss: add an updated date
- layouts: update author metadata
- layouts: move `.Site` (deprecated) to `hugo`
- documentation: update the README to new git repo
- gitInfo: configuration of the git repository
- scss: improve the `verse` text layout
- post image: get the image in the atom xml file
- dependencies: add picocss as a dependency
- text: set font style to em nested in blockquote
- text: style the new citation block
- homepage: move the CV file to the personal data
- layout: fix medias integration
## [0.1.1](https://git.milhit.ch/igor/portfoligor/compare/0.1.0...0.1.1) - 2020-06-01
## v0.2.0 - 2021-11-03
### Fixed
- RSS: Improves the RSS template [`#9`](https://git.milhit.ch/igor/portfoligor/issues/9)
- layout: improve list of post taxonomy terms [`#10`](https://git.milhit.ch/igor/portfoligor/issues/10)
- documentation: fill in the README
- theme: simplify the main layout
- layouts: use details for the post informations
- data: sort terms in post information
- style: Implements nord color scheme
### Commits
- documentation: add a changelog and auto-changelog [`31b27df`](https://git.milhit.ch/igor/portfoligor/commit/31b27df95ffcab2b5857fa63346e6a8a6998b5d1)
- lists: sort list by reverse publication date [`920fe4d`](https://git.milhit.ch/igor/portfoligor/commit/920fe4d1566b9755b2551854a6042beec8f8905a)
- release: v0.2.0
- header: restore and adapt the avatar image
- colors: move the visited property up the others
- colors: colorizes the link on hover
- menu: improve the menu
- post: display the postimage if it exists
- head: improve the metadata exposed
- content: improve verses layout for small screens
- footer: add link to the last commit
- list: fix date variable on the lists and sections
- shortcodes: adds an audio player with album cover
- head: add a favicon
- layout: improve post info in single or list pages
## 0.1.1 - 2020-06-01
### Fixed
- RSS: Improves the RSS template
- layout: improve list of post taxonomy terms
### Commits
- documentation: add a changelog and auto-changelog
- lists: sort list by reverse publication date
## 0.1.0 - 2020-05-23
### Fixed
- template: add metadata to the html head [`#3`](https://git.milhit.ch/igor/portfoligor/issues/3)
- template: compare lastmod and publishdate [`#5`](https://git.milhit.ch/igor/portfoligor/issues/5)
- style: fix wrong flex property for the main nav [`#4`](https://git.milhit.ch/igor/portfoligor/issues/4)
- shorcodes: add a smallcaps shotcode [`#1`](https://git.milhit.ch/igor/portfoligor/issues/1)
- template: add metadata to the html head
- template: compare lastmod and publishdate
- style: fix wrong flex property for the main nav
- shorcodes: add a smallcaps shotcode
### Commits
- shortcodes: improve smallcaps shortcodes [`c6ea77b`](https://git.milhit.ch/igor/portfoligor/commit/c6ea77b4293986ac430d8ce35513207126478b2e)
- shortcodes: add audio shortcode for external src [`21d0ca2`](https://git.milhit.ch/igor/portfoligor/commit/21d0ca2e200bfd79c23f71b5476fcd21e7f090b6)
- shortcodes: add shortcodes for audio & streaming [`9f142a2`](https://git.milhit.ch/igor/portfoligor/commit/9f142a22b4ef12326d11f77a59e670bad85373e8)
- fonts: set the line height for content [`74abde3`](https://git.milhit.ch/igor/portfoligor/commit/74abde3ad20af531d26ebf544f60be9b6a3ce1d1)
- post info: improve punctuation and space usage [`9fb6836`](https://git.milhit.ch/igor/portfoligor/commit/9fb6836788489518b0a5bb39dd36e58e9fff94ff)
- navigation: add a RSS link [`84a2435`](https://git.milhit.ch/igor/portfoligor/commit/84a2435161b04ccf8fdf498591f0878ba8646edb)
- section: improve sections, lists and navigation [`c44eb75`](https://git.milhit.ch/igor/portfoligor/commit/c44eb759f0270e1c6938b8b50ec5ad10e1fa783f)
- style: start using SASS and assets [`a7a017b`](https://git.milhit.ch/igor/portfoligor/commit/a7a017b68a0719b2d21f6315729dc6f2e377b620)
- page: deactivate pagination [`cabdffa`](https://git.milhit.ch/igor/portfoligor/commit/cabdffa8ac38c9ad4c0aba8716e8bd4bdaa0b57b)
- RSS: update template with regular page variable [`8fb2022`](https://git.milhit.ch/igor/portfoligor/commit/8fb20228e9fd0e9902009ff9b2989a4d620367da)
- documentation: clean the theme.toml file [`0077387`](https://git.milhit.ch/igor/portfoligor/commit/00773873a2658638eb651916aed8300a2c84a6f9)
- layout: improve taxonomies pages [`b5dc649`](https://git.milhit.ch/igor/portfoligor/commit/b5dc64935a0fd69afdae9980feac1151e07e8b99)
- style: add rules for figure tag [`09fbaa0`](https://git.milhit.ch/igor/portfoligor/commit/09fbaa06f90ddbd0ec75424e7c0e7130dc32aefb)
- layout: improve dates logic [`74181ec`](https://git.milhit.ch/igor/portfoligor/commit/74181ecd54e27a892faf8ef0739ee175ad207ffd)
- style: set overflow to auto for pre tag [`f3189b4`](https://git.milhit.ch/igor/portfoligor/commit/f3189b44787d58fac71c286257ce34ed9df60301)
- layout: improve date displayed [`55dadc7`](https://git.milhit.ch/igor/portfoligor/commit/55dadc702cbe691c63ad12f48d03a489cd862169)
- layout: add a partial for blog post data [`02d6d2f`](https://git.milhit.ch/igor/portfoligor/commit/02d6d2f08623ed894085ee4f0594c383fba9c167)
- layout: remove the base href [`38566ba`](https://git.milhit.ch/igor/portfoligor/commit/38566ba1064dc94f9cc641ba8f5094015ed43d24)
- style: add rules for code and footnotes [`e27f8a9`](https://git.milhit.ch/igor/portfoligor/commit/e27f8a9d46843146a603c581766bd8fd13b6e4f6)
- rss: add the default rss template [`f0549ca`](https://git.milhit.ch/igor/portfoligor/commit/f0549ca0dd276be6a0d4a856944e063fb8b23373)
- layout: set the viewport meta tag [`2c7e6cf`](https://git.milhit.ch/igor/portfoligor/commit/2c7e6cf2d716edd0fda6881375ce76ff0b137f7e)
- style: add minimal stylesheet rules [`909c3ca`](https://git.milhit.ch/igor/portfoligor/commit/909c3caa9717faa009c85e815309d129228bcd71)
- layout: display basic taxonomies information [`4477b30`](https://git.milhit.ch/igor/portfoligor/commit/4477b3033ee9ada7eb3fb89f2ded351a2b16f1bb)
- layout: add default and partials [`498a724`](https://git.milhit.ch/igor/portfoligor/commit/498a724195695c837eb31d612df0d0365a9a6e1b)
- homepage: structure the homepage content [`9b7e39a`](https://git.milhit.ch/igor/portfoligor/commit/9b7e39acd22202b39c1988dd5db8e73e281796a0)
- homepage: personnal data [`788c7c6`](https://git.milhit.ch/igor/portfoligor/commit/788c7c621bba53a0bff03441518bc43259a09d3c)
- theme: initialize new hugo theme [`3b7347c`](https://git.milhit.ch/igor/portfoligor/commit/3b7347cdee8d2a7bf5fa1a412bdb15ea906dd0c3)
- shortcodes: improve smallcaps shortcodes
- shortcodes: add audio shortcode for external src
- shortcodes: add shortcodes for audio & streaming
- fonts: set the line height for content
- post info: improve punctuation and space usage
- navigation: add a RSS link
- section: improve sections, lists and navigation
- style: start using SASS and assets
- page: deactivate pagination
- RSS: update template with regular page variable
- documentation: clean the theme.toml file
- layout: improve taxonomies pages
- style: add rules for figure tag
- layout: improve dates logic
- style: set overflow to auto for pre tag
- layout: improve date displayed
- layout: add a partial for blog post data
- layout: remove the base href
- style: add rules for code and footnotes
- rss: add the default rss template
- layout: set the viewport meta tag
- style: add minimal stylesheet rules
- layout: display basic taxonomies information
- layout: add default and partials
- homepage: structure the homepage content
- homepage: personnal data
- theme: initialize new hugo theme

View File

@ -19,9 +19,14 @@ 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 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
documentation][3]].

View File

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

@ -8,10 +8,30 @@
.posts-list {
display: flex;
flex-direction: column;
margin-bottom: .5em;
margin-bottom: var(--pico-spacing);
> article {
padding-bottom: .5rem;
padding-bottom: var(--pico-spacing);
padding-left: var(--pico-spacing);
}
}
/* 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;
}
}
}
@ -106,6 +126,10 @@ details[open] > ul {
}
}
.tracklist {
font-size: smaller;
}
.list-footer {
padding-left: .5em;
}

View File

@ -7,6 +7,11 @@
@use "@picocss/pico/scss/colors/index" as *;
/* To remove the rounded corner of the webkit audio player */
audio::-webkit-media-controls-enclosure {
border-radius: 0;
}
.audio,
.stream {
border: var(--pico-border-width) solid $purple-200 ;

View File

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

View File

@ -27,16 +27,22 @@ tfoot td {
// Adapt the SVG logo color to the colorscheme
[data-theme=light],
:root:not([data-theme=dark]) {
--logo-color: var(--pico-color);
:root:not([data-theme=dark]) {
--logo-color: var(--pico-h1-color);
}
@media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme]) {
--logo-color: var(--pico-color);
--logo-color: var(--pico-h1-color);
// Use the pico color of the light theme to improve contrast
// TODO: Explore if a variable could be used here
--pico-mark-color: #373c44;
}
}
[data-theme=dark] {
--logo-color: var(--pico-color);
--logo-color: var(--pico-h1-color);
// Use the pico color of the light theme to improve contrast
// TODO: Explore if a variable could be used here
--pico-mark-color: #373c44;
}

View File

@ -8,6 +8,7 @@ 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,6 +8,7 @@ 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

@ -0,0 +1,20 @@
{{ define "main" }}
<!-- List the 5 last posts if the home_post_list parameters is set to true -->
{{ if .Site.Params.home_post_list }}
{{ partial "home_post_list" . }}
{{ 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

@ -16,9 +16,9 @@
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<generator>Hugo -- gohugo.io</generator>{{ with .Site.Language.Locale }}
<language>{{.}}</language>{{end}}{{ with .Site.Params.author.email }}
<managingEditor>{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.author.email }}
<webMaster>{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}

View File

@ -12,11 +12,11 @@
<!--
Ranges pages by the publish date, in reverse order, to display the
post titles of the section from most recent to older. It adds to
the title the date and categories (from lists-footer.html)
the title the date and categories (from lists-footer.html).
-->
{{ range .Pages.ByPublishDate.Reverse }}
<article>
<a href="{{ .Permalink }}">
<a href="{{ .Permalink }}">
{{.Title}}
</a>
{{ partial "lists-footer.html" . }}

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

@ -18,12 +18,12 @@
"targetPath" "styles.css"
"includePaths" (slice "node_modules")
) -}}
{{- $styles := resources.Get "scss/main.scss" | toCSS $options | minify -}}
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
{{- $styles := resources.Get "scss/main.scss" | toCSS $options | minify | fingerprint -}}
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
{{- end }}
{{ $options := (dict "targetPath" "print.css" ) -}}
{{- $print := resources.Get "css/gutenberg.css" | toCSS $options | minify -}}
<link rel="stylesheet" href="{{ $print.Permalink }}" media="print">
{{- $print := resources.Get "css/gutenberg.css" | toCSS $options | minify | fingerprint -}}
<link rel="stylesheet" href="{{ $print.Permalink }}" integrity="{{ $print.Data.Integrity }}" media="print">
{{ range .AlternativeOutputFormats }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}

View File

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

View File

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

View File

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

View File

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

33
package-lock.json generated
View File

@ -1,30 +1,27 @@
{
"name": "portfoliGor",
"version": "0.1.0",
"version": "0.3.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "portfoliGor",
"version": "0.1.0",
"version": "0.3.0",
"license": "MIT",
"dependencies": {
"gutenberg-css": "^0.6.1"
"gutenberg-css": "0.7.0"
},
"devDependencies": {
"@picocss/pico": "2.0.6",
"@picocss/pico": "^2.0.6",
"auto-changelog": "^2.0.0"
}
},
"node_modules/@picocss/pico": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/@picocss/pico/-/pico-2.0.6.tgz",
"integrity": "sha512-/d8qsykowelD6g8k8JYgmCagOIulCPHMEc2NC4u7OjmpQLmtSetLhEbt0j1n3fPNJVcrT84dRp0RfJBn3wJROA==",
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/@picocss/pico/-/pico-2.1.1.tgz",
"integrity": "sha512-kIDugA7Ps4U+2BHxiNHmvgPIQDWPDU4IeU6TNRdvXQM1uZX+FibqDQT2xUOnnO2yq/LUHcwnGlu1hvf4KfXnMg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=18.19.0"
}
"license": "MIT"
},
"node_modules/auto-changelog": {
"version": "2.5.0",
@ -58,15 +55,15 @@
}
},
"node_modules/gutenberg-css": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/gutenberg-css/-/gutenberg-css-0.6.1.tgz",
"integrity": "sha512-6OKs0SsqMhU68sBPYvm0imc2Wa4s7W6QzwSUq5vM3GIqsAcd5hV5RvW7Natp1hbJ3go8B3xDPdYSb7zu3vDkbw==",
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/gutenberg-css/-/gutenberg-css-0.7.0.tgz",
"integrity": "sha512-M8o1BVkO8h1YOl1nVv7/ZVYZt8zed4Y3nzmvJbEPu15u/sGllcjITBowTESqd51bXUl3qVbeSnNqSdmjVl5/1g==",
"license": "MIT",
"dependencies": {
"normalize.css": "^8.0.1"
},
"engines": {
"node": ">=4.0"
"node": ">=8.0"
}
},
"node_modules/handlebars": {
@ -185,9 +182,9 @@
}
},
"node_modules/semver": {
"version": "7.6.3",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
"version": "7.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
"integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
"dev": true,
"license": "ISC",
"bin": {

View File

@ -1,16 +1,16 @@
{
"name": "portfoliGor",
"version": "0.1.0",
"version": "0.3.0",
"description": "Hugo theme for a personal portfolio",
"main": "index.js",
"repository": "git@framagit.org:iGormilhit/portfoliGor.git",
"author": "iGor milhit <igor@milhit.ch>",
"license": "MIT",
"devDependencies": {
"@picocss/pico": "2.0.6",
"@picocss/pico": "^2.0.6",
"auto-changelog": "^2.0.0"
},
"dependencies": {
"gutenberg-css": "^0.6.1"
"gutenberg-css": "0.7.0"
}
}

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.

View File

@ -2,7 +2,7 @@
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "PortfoliGor"
themeversion = "0.3.0"
themeversion = "0.4.0"
license = "MIT"
licenselink = "https://git.milhit.ch/igor/portfoliGor/blob/master/LICENSE"
description = "Yet another portfolio HUGO Theme"

View File

@ -1,152 +0,0 @@
Arguments:
/home/igor/.nvm/versions/node/v12.18.3/bin/node /usr/bin/yarn add picocss --dev
PATH:
/home/igor/.poetry/bin:/opt/pyenv/plugins/pyenv-virtualenv/shims:/home/igor/.nvm/versions/node/v12.18.3/bin:/home/igor/bin:/usr/local/bin:/home/igor/.pyenv/shims:/home/igor/.pyenv/bin:/home/igor/.poetry/bin:/home/igor/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/igor/.local/bin:/home/igor/.npm-global:/home/igor/.poetry/bin:/home/igor/bin:/home/igor/.gem/ruby/3.0.0/bin
Yarn version:
1.22.17
Node version:
12.18.3
Platform:
linux x64
Trace:
Error: https://registry.yarnpkg.com/picocss: Not found
at Request.params.callback [as _callback] (/usr/lib/node_modules/yarn/lib/cli.js:67029:18)
at Request.self.callback (/usr/lib/node_modules/yarn/lib/cli.js:140883:22)
at Request.emit (events.js:315:20)
at Request.<anonymous> (/usr/lib/node_modules/yarn/lib/cli.js:141855:10)
at Request.emit (events.js:315:20)
at IncomingMessage.<anonymous> (/usr/lib/node_modules/yarn/lib/cli.js:141777:12)
at Object.onceWrapper (events.js:421:28)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
npm manifest:
{
"name": "portfoliGor",
"version": "0.1.0",
"description": "Hugo theme for a personal portfolio",
"main": "index.js",
"repository": "git@framagit.org:iGormilhit/portfoliGor.git",
"author": "iGor milhit <igor@milhit.ch>",
"license": "MIT",
"devDependencies": {
"auto-changelog": "^2.0.0"
},
"dependencies": {
"gutenberg-css": "^0.6.1"
}
}
yarn manifest:
No manifest
Lockfile:
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
auto-changelog@^2.0.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/auto-changelog/-/auto-changelog-2.3.0.tgz#08ab8b1840a5d804410f1d1a5d2c4b2df0d835e1"
integrity sha512-S2B+RtTgytsa7l5iFGBoWT9W9ylITT5JJ8OaMJ7nrwvnlRm1dSS2tghaYueDeInZZafOE+1llH3tUQjMDRVS1g==
dependencies:
commander "^5.0.0"
handlebars "^4.7.3"
node-fetch "^2.6.0"
parse-github-url "^1.0.2"
semver "^6.3.0"
commander@^5.0.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae"
integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==
gutenberg-css@^0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/gutenberg-css/-/gutenberg-css-0.6.1.tgz#dd06c38ec3a33e6bb05a6d3cd2682c96d8b6eaf4"
integrity sha512-6OKs0SsqMhU68sBPYvm0imc2Wa4s7W6QzwSUq5vM3GIqsAcd5hV5RvW7Natp1hbJ3go8B3xDPdYSb7zu3vDkbw==
dependencies:
normalize.css "^8.0.1"
handlebars@^4.7.3:
version "4.7.7"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1"
integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==
dependencies:
minimist "^1.2.5"
neo-async "^2.6.0"
source-map "^0.6.1"
wordwrap "^1.0.0"
optionalDependencies:
uglify-js "^3.1.4"
minimist@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
neo-async@^2.6.0:
version "2.6.2"
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
node-fetch@^2.6.0:
version "2.6.6"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.6.tgz#1751a7c01834e8e1697758732e9efb6eeadfaf89"
integrity sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==
dependencies:
whatwg-url "^5.0.0"
normalize.css@^8.0.1:
version "8.0.1"
resolved "https://registry.yarnpkg.com/normalize.css/-/normalize.css-8.0.1.tgz#9b98a208738b9cc2634caacbc42d131c97487bf3"
integrity sha512-qizSNPO93t1YUuUhP22btGOo3chcvDFqFaj2TRybP0DMxkHOCTYwp3n34fel4a31ORXy4m1Xq0Gyqpb5m33qIg==
parse-github-url@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/parse-github-url/-/parse-github-url-1.0.2.tgz#242d3b65cbcdda14bb50439e3242acf6971db395"
integrity sha512-kgBf6avCbO3Cn6+RnzRGLkUsv4ZVqv/VfAYkRsyBcgkshNvVBkRn1FEZcW0Jb+npXQWm2vHPnnOqFteZxRRGNw==
semver@^6.3.0:
version "6.3.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
source-map@^0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
tr46@~0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=
uglify-js@^3.1.4:
version "3.14.4"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.14.4.tgz#68756f17d1b90b9d289341736cb9a567d6882f90"
integrity sha512-AbiSR44J0GoCeV81+oxcy/jDOElO2Bx3d0MfQCUShq7JRXaM4KtQopZsq2vFv8bCq2yMaGrw1FgygUd03RyRDA==
webidl-conversions@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=
whatwg-url@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0=
dependencies:
tr46 "~0.0.3"
webidl-conversions "^3.0.0"
wordwrap@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=

View File

@ -2,10 +2,10 @@
# yarn lockfile v1
"@picocss/pico@2.0.6":
version "2.0.6"
resolved "https://registry.npmjs.org/@picocss/pico/-/pico-2.0.6.tgz"
integrity sha512-/d8qsykowelD6g8k8JYgmCagOIulCPHMEc2NC4u7OjmpQLmtSetLhEbt0j1n3fPNJVcrT84dRp0RfJBn3wJROA==
"@picocss/pico@^2.0.6":
version "2.1.1"
resolved "https://registry.npmjs.org/@picocss/pico/-/pico-2.1.1.tgz"
integrity sha512-kIDugA7Ps4U+2BHxiNHmvgPIQDWPDU4IeU6TNRdvXQM1uZX+FibqDQT2xUOnnO2yq/LUHcwnGlu1hvf4KfXnMg==
auto-changelog@^2.0.0:
version "2.5.0"
@ -24,10 +24,10 @@ commander@^7.2.0:
resolved "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz"
integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==
gutenberg-css@^0.6.1:
version "0.6.1"
resolved "https://registry.npmjs.org/gutenberg-css/-/gutenberg-css-0.6.1.tgz"
integrity sha512-6OKs0SsqMhU68sBPYvm0imc2Wa4s7W6QzwSUq5vM3GIqsAcd5hV5RvW7Natp1hbJ3go8B3xDPdYSb7zu3vDkbw==
gutenberg-css@0.7.0:
version "0.7.0"
resolved "https://registry.npmjs.org/gutenberg-css/-/gutenberg-css-0.7.0.tgz"
integrity sha512-M8o1BVkO8h1YOl1nVv7/ZVYZt8zed4Y3nzmvJbEPu15u/sGllcjITBowTESqd51bXUl3qVbeSnNqSdmjVl5/1g==
dependencies:
normalize.css "^8.0.1"
@ -90,9 +90,9 @@ resolve-from@^5.0.0:
integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==
semver@^7.3.5:
version "7.6.3"
resolved "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz"
integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==
version "7.7.1"
resolved "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz"
integrity sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==
source-map@^0.6.1:
version "0.6.1"