[website] Showing channel news

  • Open
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Luis Felipe
Owner
unassigned
Submitted by
Ludovic Courtès
Severity
normal
L
L
Ludovic Courtès wrote on 22 Mar 2021 09:07
(address . bug-guix@gnu.org)
87sg4nzk52.fsf@gnu.org
Hello!

I figured it would be nice to display channel news (as shown by ‘guix
pull --news’) on the web site. Perhaps the three latest items could be
shown on the front page, as is done for blog posts, and then each entry
would get its own page, similar to the layout of blog posts.

(guix channels) has ‘read-channel-news’ to read the news, the web site
has code to render the blog posts, but I’m not sure how to adapt it to
render news entries. Thoughts?

Anyway, that’s more of a wishlist item!

Ludo’.
L
L
Luis Felipe wrote on 22 Mar 2021 18:38
(name . Ludovic Courtès)(address . ludo@gnu.org)(name . 47312@debbugs.gnu.org)(address . 47312@debbugs.gnu.org)
mIrUPMnuROYasH3o_wb4csFIx5NhBWZMORnuis269uAxZBmhBs4ezuq4wP4DdoSUL5jfNxgF576qlJl_snimIQ3_ziLDAWQyYTScUf4SArA=@protonmail.com
Hi, Ludo,

On Monday, March 22, 2021 8:07 AM, Ludovic Courtès <ludo@gnu.org> wrote:

Toggle quote (7 lines)
> Hello!
>
> I figured it would be nice to display channel news (as shown by ‘guix
> pull --news’) on the web site. Perhaps the three latest items could be
> shown on the front page, as is done for blog posts, and then each entry
> would get its own page, similar to the layout of blog posts.

Where would these new pages live? Maybe:

List of News: /LANG_TAG/news/
News entry: /LANG_TAG/news/NEWS_ENTRY_COMMIT_VALUE/SLUGIFIED_ENTRY_TITLE/


Toggle quote (4 lines)
> (guix channels) has ‘read-channel-news’ to read the news, the web site
> has code to render the blog posts, but I’m not sure how to adapt it to
> render news entries. Thoughts?

I'd like to help with this, but after helping with https://issues.guix.gnu.org/43871.Maybe what is found to work to generalize presentation of different media items in #43871 can be used for presenting channel news.

(I'm actually doing some related experimentation in my website)
L
L
Ludovic Courtès wrote on 23 Mar 2021 11:37
(name . Luis Felipe)(address . luis.felipe.la@protonmail.com)(name . 47312@debbugs.gnu.org)(address . 47312@debbugs.gnu.org)
87v99ima0a.fsf@gnu.org
Hi Luis,

Luis Felipe <luis.felipe.la@protonmail.com> skribis:

Toggle quote (14 lines)
> On Monday, March 22, 2021 8:07 AM, Ludovic Courtès <ludo@gnu.org> wrote:
>
>> Hello!
>>
>> I figured it would be nice to display channel news (as shown by ‘guix
>> pull --news’) on the web site. Perhaps the three latest items could be
>> shown on the front page, as is done for blog posts, and then each entry
>> would get its own page, similar to the layout of blog posts.
>
> Where would these new pages live? Maybe:
>
> List of News: /LANG_TAG/news/
> News entry: /LANG_TAG/news/NEWS_ENTRY_COMMIT_VALUE/SLUGIFIED_ENTRY_TITLE/

Yes, that sounds good to me.

Toggle quote (6 lines)
>> (guix channels) has ‘read-channel-news’ to read the news, the web site
>> has code to render the blog posts, but I’m not sure how to adapt it to
>> render news entries. Thoughts?
>
> I'd like to help with this, but after helping with https://issues.guix.gnu.org/43871. Maybe what is found to work to generalize presentation of different media items in #43871 can be used for presenting channel news.

Oh sure, that makes sense.

Thanks for your feedback,
Ludo’.
?