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

Bug#1038109: Unify homepage CSS and how do we load CSS files



Package: www.debian.org
User: www.debian.org@packages.debian.org
Usertag: design
Severity: normal

It would be nice to reorganize the styles we use in the homepage in a specific file. Currently we use, specifically for the homepage:

/5img-carousel-slider.css
./debhome.css
./startpage.css

The basic.wml and basic5.wml templates have this code to load the corresponding CSS depending if a page has the header MAINPAGE (used not only in frontpage, but also in the pages that have been redesigned, e.g. the ones under /intro, /doc, /devel...):

<when <not "$(MAINPAGE)">>
{#style#:<link href="$(CSS:-$(HOME))/debian.css" rel="stylesheet" type="text/css" /> <link href="$(CSS:-$(HOME))/debian-$(CUR_ISO_LANG).css" rel="stylesheet" type="text/css" media="all"/>
:#style#}
</when>
<when "$(MAINPAGE)">
  <link rel="shortcut icon" href="favicon.ico" />
  <meta name="Keywords"  content="<keywords/>" />
{#style#:<link href="$(CSS:-$(HOME))/debhome.css" rel="stylesheet" type="text/css" /> <link href="$(CSS:-$(HOME))/startpage.css" rel="stylesheet" type="text/css" /> <link href="$(CSS:-$(HOME))/5img-carousel-slider.css" rel="stylesheet" type="text/css" /> <link href="$(CSS:-$(HOME))/debian-$(CUR_ISO_LANG).css" rel="stylesheet" type="text/css" media="all"/>
:#style#}
</when>

But then in the redesigned pages we load more CSS within the page:

<link href="$(HOME)/font-awesome.css" rel="stylesheet" type="text/css">

It would be nice to unify the different styles of the homepage in a single file, and also decide how do we load them (if via the template or in each .wml file separately), and use the same procedure for all the CSS we have in the website.

Note that a change in the basic*.wml templates probably triggers a rebuild of most of the website, so adding/removing a CSS file there has to be handled with care. This, and this bug, are the reasons behind changing the 5img-carousel-slider.css file to show 6 images instead of 5 (see commit https://salsa.debian.org/webmaster-team/webwml/-/commit/221bc933118b9f05c063776d7ef41d75a9bf2858 ) without renaming the file, for now :/

Kind regards
--
Laura Arjona Reina
https://wiki.debian.org/LauraArjona


Reply to: