guix-europe
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Website update


From: Ricardo Wurmus
Subject: Re: Website update
Date: Mon, 05 Feb 2024 12:05:18 +0100
User-agent: mu4e 1.10.8; emacs 29.1

Hi Simon,

>> Here are two more:
>
> Applied.  Thanks!

Thank you.  I found a few more little problems that are fixed with the
attached patches.

Attachment: 0001-website-Remove-duplicate-menu-item.patch
Description: Text Data

Attachment: 0002-website-Keep-the-logo-from-shrinking-too-much.patch
Description: Text Data

>From 3483e34b73801408740c6a59ecf4fbaee8edc221 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Mon, 5 Feb 2024 11:23:21 +0100
Subject: [PATCH 3/4] website: Deemphasize last modification notice.

* website/assets/css/guix-foundation.css (.last-modification): New
rule.
* website/builder/static-site.scm (make-post-template): Simplify
markup and use last-modification class.
---
 website/assets/css/guix-foundation.css |  6 ++++++
 website/builder/static-site.scm        | 19 +++++++++----------
 2 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/website/assets/css/guix-foundation.css 
b/website/assets/css/guix-foundation.css
index 2858c5b..5afa304 100644
--- a/website/assets/css/guix-foundation.css
+++ b/website/assets/css/guix-foundation.css
@@ -67,3 +67,9 @@ footer dl dt {
 h2 {
     font-family: "FiraSans-Bold";
 }
+
+.last-modification {
+       font-size: small;
+       font-style: italic;
+       color: var(--pico-muted-color);
+}
diff --git a/website/builder/static-site.scm b/website/builder/static-site.scm
index d3e6854..eaa8573 100644
--- a/website/builder/static-site.scm
+++ b/website/builder/static-site.scm
@@ -253,16 +253,15 @@ CURRENT-CHAPTER and section CURRENT-SECTION."
                              (language "en"))
   (lambda (post)
     `(,(post-sxml post)
-      (div (@ (id "footer"))
-        (hr)
-        (address
-          ,(string-append
-            (if (string=? language "fr")
-                "Dernières modifications le  "
-                "Last modifications on ")
-            (date->string (post-date post) "~Y-~m-~d")
-            (if (string=? language "fr") " par " " by ")
-            (post-ref post 'author)))))))
+      (div
+       (@ (class "last-modification"))
+       ,(string-append
+         (if (string=? language "fr")
+             "Dernières modifications le  "
+             "Last modifications on ")
+         (date->string (post-date post) "~Y-~m-~d")
+         (if (string=? language "fr") " par " " by ")
+         (post-ref post 'author))))))
 
 (define* (theme #:key
                 (name "Theme")
-- 
2.41.0

Attachment: 0004-website-Fix-typo.patch
Description: Text Data

The first two patches address problems on narrow screens (e.g. my mobile
phone).  I think I’m done messing with the website now.  Thanks for
applying my patches!

>> - perhaps we should remove the “Last modifications” timestamps (or move
>>   them from the main content div to the actual footer)
>
> Yes!  Yesterday in in the train, when applying your patches, I was
> hesitant for this removal.
>
> Well, on my personal website I have a footer indicating the last build
> of the website.  And I find this information useful when I navigate to
> other websites; it helps me to know how "fresh" the information is and
> then it helps me to have a rough idea about the accuracy.

The third patch above makes the last modification stamp visually
distinct from the body text.  Perhaps that’s good enough.

>> (I thought there would be more, so I made all that effort to start a
>> list above.  This seems silly now.  Oh well.)
>
> Hum, I miss what you are speaking about.

When I started drafting my email I thought I’d remember a lot of open
issues that I wanted to discuss, but only managed to come up with … two
— barely enough to justify starting a list :)

The patches in this email should make up for this :)

-- 
Ricardo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]