Indication of publication date is complicated and inconsistent #1392
Notifications
Due Date
No due date set.
Reference: FSFE/fsfe-website#1392
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The publication date of a web page is done in two different ways:
Variant A:
Variant B:
Regular news items and podcasts use variant A, pages outside the news tree use variant B, and newsletters even use both, where the date from variant A is used for sorting the newsletter within other news, while variant B is used for displaying the publication date and used to contain only the month.
Especially variant B is overly complex to allow for an additional revision date, which is used only on 2 pages at all: https://fsfe.org/activities/os/eifv2.html and https://fsfe.org/news/2012/news-20120920-01.html
I suggest to forget about the revision date altogether and replace all of the above with a simple
Because currently, the “newsdate“ tag is also used to tell which source files actually are news, we would at the same time have to introduce a third value for “type”, so for regular news items, newsletters, and podcasts, we'd have a straightforward pattern for the root element:
As a side effect from this, we could stop abusing the newsdate to change a news item from unpublished to published, and instead just leave away the “type” while the news item should not be published.
Thanks for the suggestions!
So I would suggest to stick with this "abuse" of the newsdate, or introduce another way to unpublish a news item that is more obvious.
The "type" is used for 3 things:
<sidebar>
in the xhtml fileThe last item is what we want ot get rid of with this issue. The other two items are probably worth keeping.
What about being clear and straightforward and adding a
publish="yes"
?I see, thank you for the explanation. Ack for keeping the type.
I think that would be very clear!
The more I think of the "type" thing, the more I get convinced that it would be good to get rid of it. I have some ideas tossing around in my head. Stay tuned.
If we go for #1410 then the type would only be used for automatically inserting the correct sidebar. I wonder whether it wouldn't be better then to remove the type completely and instead add modules for the standard sidebars. So instead of
one would have to write
which would be much more straightforward and understandable. What do you think?
Hm, so in both cases we would have an element/attribute that differs depending on the type of the file, so from the users' perspective, there is no difference.
But I guess the main advantage is in not having to set some XSL rules which target the "type", but just reusing the neat modules, right? In this case, I would be fine with using the modules approach.
Yes. The general idea is to have generally usable good features instead of many specialized distinct features. It's also about how intuitively something is understandable: you had to ask for what function the "type" parameter actually has, and I had to grep it, on the other hand the
<sidebar><module/></sidebar>
construction is clear and immediately understandable.I'll open a new issue for clarity because it's actually a different topic than the date parameter :-)
As soon as #1410 and #1415 are fixed, we can globally change to the date parameter as proposed here, and at the same time remove the type parameter.