diff --git a/astro.config.ts b/astro.config.ts index bf0daa5..973feb9 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -35,7 +35,7 @@ const titleCase = (name: string): string => name.replace(/-/g, ' ').replace(/^./ const kinds = [ {kind: 'plugin', label: 'Plugins', es: 'Plugins', dir: 'plugins'}, - {kind: 'package', label: 'Packages', es: 'Paquetes', dir: 'packages'}, + {kind: 'package', label: 'npm packages', es: 'Paquetes npm', dir: 'packages'}, ] as const; /** diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 1c88e05..362a899 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,22 +1,6 @@ --- /** - * The foot of a page of the documentation: the link to edit the page, and the foot of the site (see ProjectFoot.astro). There is no - * "previous / next" here: the way through the documentation is the guide of each product, not the order of its files. + * The foot of a page of the documentation. It draws nothing: the site foot is added after the content (see PageFrame.astro), and the + * pages have no "edit this page" link, no "last updated" and no previous/next, which Starlight would otherwise draw here. */ -import MIcon from './MIcon.astro'; -import {t} from '../lib/site'; - -const route = Astro.locals.starlightRoute; -const lang = route.lang; -const editUrl = route.editUrl; --- - -{ - editUrl && ( -
- - {t(lang, 'editPage')} - -
- ) -} diff --git a/src/components/ProjectFoot.astro b/src/components/ProjectFoot.astro index 95a4f95..7695da2 100644 --- a/src/components/ProjectFoot.astro +++ b/src/components/ProjectFoot.astro @@ -55,14 +55,12 @@ const avatar = (url: string): string => `${url}${url.includes('?') ? '&' : '?'}s - + - -
-
-
- -
-

{t(lang, 'moreTitle')}

-

{t(lang, 'moreText')}

-
- {t(lang, 'moreCta')} -
-
-
diff --git a/src/styles/didactika.css b/src/styles/didactika.css index ccde43b..626f875 100644 --- a/src/styles/didactika.css +++ b/src/styles/didactika.css @@ -584,3 +584,7 @@ a.d-feature:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--li /* The header already has the colour and the language, so the menu of a small screen does not repeat them. */ .mobile-preferences { display: none; } .d-pill { text-decoration: none; color: var(--ink); } + +/* The web and GitHub are icons: in the header on a wide screen, and in the foot where the header has no room for them. */ +.d-foot-icons { display: none; gap: 0.4rem; } +@media (max-width: 62rem) { .d-foot-icons { display: inline-flex; } }