diff --git a/bun.lockb b/bun.lockb index d601957..6562637 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/keystatic.config.ts b/keystatic.config.ts index 7900fdf..5ebc33e 100644 --- a/keystatic.config.ts +++ b/keystatic.config.ts @@ -24,6 +24,7 @@ export default config({ validation: { isRequired: true }, }, }), + originalTitle: fields.text({ label: 'Original title' }), subtitle: fields.text({ label: 'Subtitle' }), checkedOut: fields.checkbox({ label: 'Checked out?' }), link: fields.url({ label: 'Link', validation: { isRequired: true } }), diff --git a/package.json b/package.json index fa0fecd..399ca4a 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,10 @@ "mdast-flatten-listitem-paragraphs": "^1.0.0", "react": "^18.3.1", "sharp": "^0.33.5", - "tailwindcss": "^3.4.12" + "tailwindcss": "^3.4.13" }, "devDependencies": { - "@types/node": "^20.16.5", + "@types/node": "^20.16.10", "autoprefixer": "^10.4.20", "postcss": "^8.4.47" } diff --git a/src/content/config.ts b/src/content/config.ts index 3880632..f84bead 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -5,6 +5,7 @@ const libraryCollection = defineCollection({ schema: z.object({ title: z.string(), subtitle: z.ostring(), + originalTitle: z.ostring(), checkedOut: z.boolean(), link: z.string().url(), description: z.ostring(), diff --git a/src/content/library/en/cien-anos-de-soledad.yaml b/src/content/library/en/cien-anos-de-soledad.yaml index 7651a15..23b6a0c 100644 --- a/src/content/library/en/cien-anos-de-soledad.yaml +++ b/src/content/library/en/cien-anos-de-soledad.yaml @@ -1,4 +1,5 @@ title: One hundred years of solitude +originalTitle: Cien Años de Soledad checkedOut: false link: >- https://openlibrary.org/works/OL274505W/Cien_a%C3%B1os_de_soledad?edition=key%3A/books/OL30448691M diff --git a/src/content/library/en/ensaio-sobre-a-cegueira.yaml b/src/content/library/en/ensaio-sobre-a-cegueira.yaml index 6352cf0..e56dc6a 100644 --- a/src/content/library/en/ensaio-sobre-a-cegueira.yaml +++ b/src/content/library/en/ensaio-sobre-a-cegueira.yaml @@ -1,4 +1,5 @@ title: Blindness +originalTitle: Ensaio sobre a cegueira checkedOut: true link: >- https://openlibrary.org/works/OL27420W/Ensaio_Sobre_a_Cegueira?edition=key%3A/books/OL352517M diff --git a/src/content/library/en/factfulness.yaml b/src/content/library/en/factfulness.yaml index 3988327..b6ad710 100644 --- a/src/content/library/en/factfulness.yaml +++ b/src/content/library/en/factfulness.yaml @@ -1,6 +1,6 @@ title: Factfulness subtitle: >- - Ten Reasons We're Wrong About the World – and Why Things Are Better Than You + Ten Reasons We're Wrong About the World — and Why Things Are Better Than You Think checkedOut: true link: https://archive.org/details/factfulness-hans-rosling/page/n153/mode/2up diff --git a/src/content/library/en/manifest-der-kommunistischen-partei-copy.yaml b/src/content/library/en/manifest-der-kommunistischen-partei-copy.yaml index 4be5607..d0725f3 100644 --- a/src/content/library/en/manifest-der-kommunistischen-partei-copy.yaml +++ b/src/content/library/en/manifest-der-kommunistischen-partei-copy.yaml @@ -1,4 +1,5 @@ title: Manifesto of the Communist Party +originalTitle: Manifest der Kommunistischen Partei checkedOut: true link: https://www.marxists.org/admin/books/manifesto/Manifesto.pdf description: "Very interesting. Honestly, I only felt compelled to read this because of its statute as a classic. I think no marxist should call themselves that without reading (at least) this Manifesto, especially given how short and quick to read it is. The text's language has some peculiarities, of course due to when it was written, but it is generally easy to understand. It seems to me that some topics are very specific to what the authors were living through, during those days, in Europe, and, for that reason, it's hard for someone with a lack of historical context —\_like me —\_to get and feel everything perfectly. Even so, it positively surprised me! Mainly because of its mentions to women (in its call for their emancipation) and to Nature (in the recognition of its exploitation by the capitalist systems). I recommend this book to any leftist." diff --git a/src/content/library/en/nova-il-lustracio-radical.yaml b/src/content/library/en/nova-il-lustracio-radical.yaml index 552de71..adccc31 100644 --- a/src/content/library/en/nova-il-lustracio-radical.yaml +++ b/src/content/library/en/nova-il-lustracio-radical.yaml @@ -1,4 +1,5 @@ title: New Radical Enlightenment +originalTitle: Nova Il·Lustració Radical checkedOut: true link: https://catalog.princeton.edu/catalog/99131003959006421 description: >- diff --git a/src/content/library/en/スプートニクの恋人.yaml b/src/content/library/en/sputnik-sweetheart.yaml similarity index 100% rename from src/content/library/en/スプートニクの恋人.yaml rename to src/content/library/en/sputnik-sweetheart.yaml diff --git a/src/content/library/en/ふしぎな図書館.yaml b/src/content/library/en/the-strange-library.yaml similarity index 100% rename from src/content/library/en/ふしぎな図書館.yaml rename to src/content/library/en/the-strange-library.yaml diff --git a/src/content/library/pt/cien-anos-de-soledad.yaml b/src/content/library/pt/cien-anos-de-soledad.yaml index 23a7b1b..b172893 100644 --- a/src/content/library/pt/cien-anos-de-soledad.yaml +++ b/src/content/library/pt/cien-anos-de-soledad.yaml @@ -1,4 +1,5 @@ title: Cem anos de solidão +originalTitle: Cien Años de Soledad checkedOut: false link: >- https://openlibrary.org/works/OL26414960W/Cem_Anos_De_Solid%C3%A3o?edition=key%3A/books/OL35663961M diff --git a/src/content/library/pt/doughnut-economics.yaml b/src/content/library/pt/doughnut-economics.yaml index 019d753..439bbd2 100644 --- a/src/content/library/pt/doughnut-economics.yaml +++ b/src/content/library/pt/doughnut-economics.yaml @@ -1,5 +1,6 @@ title: Economia Donut subtitle: Sete Formas de Pensar Como um Economista no Século XXI +originalTitle: 'Doughtnut Econonomics: Seven Ways to Think Like a 21st-Centurty Economist' checkedOut: true link: https://www.wook.pt/ebook/economia-donut-kate-raworth/21400895 description: > diff --git a/src/content/library/pt/manifest-der-kommunistischen-partei.yaml b/src/content/library/pt/manifest-der-kommunistischen-partei.yaml index c88cb66..303c54a 100644 --- a/src/content/library/pt/manifest-der-kommunistischen-partei.yaml +++ b/src/content/library/pt/manifest-der-kommunistischen-partei.yaml @@ -1,4 +1,5 @@ title: Manifesto do Partido Comunista +originalTitle: Manifest der Kommunistischen Partei checkedOut: true link: >- https://www.marxists.org/portugues/marx/1848/ManifestoDoPartidoComunista/manifesto.pdf diff --git a/src/content/library/pt/mission-economy.yaml b/src/content/library/pt/mission-economy.yaml index 7581097..209f974 100644 --- a/src/content/library/pt/mission-economy.yaml +++ b/src/content/library/pt/mission-economy.yaml @@ -1,5 +1,6 @@ title: Economia de Missão subtitle: Um guia ousado e inovador para mudar o capitalismo +originalTitle: 'Mission Economy: A Moonshot Guide to Changing Capitalism' checkedOut: true link: https://www.wook.pt/ebook/economia-de-missao-mariana-mazzucato/25383261 description: > diff --git a/src/content/library/pt/nova-il-lustracio-radical.yaml b/src/content/library/pt/nova-il-lustracio-radical.yaml index 9bda050..2a5b173 100644 --- a/src/content/library/pt/nova-il-lustracio-radical.yaml +++ b/src/content/library/pt/nova-il-lustracio-radical.yaml @@ -1,4 +1,5 @@ title: Novo Iluminismo Radical +originalTitle: Nova Il·Lustració Radical checkedOut: true link: >- https://catalogo.bnportugal.gov.pt/ipac20/ipac.jsp?session=EA222557L6592.58616&menu=search&aspect=subtab11&npp=20&ipp=20&spp=20&profile=bn&ri=&term=Novo+iluminismo+radical&index=.GW&x=0&y=0&aspect=subtab11 diff --git a/src/content/library/pt/スプートニクの恋人.yaml b/src/content/library/pt/sputnik-meu-amor.yaml similarity index 94% rename from src/content/library/pt/スプートニクの恋人.yaml rename to src/content/library/pt/sputnik-meu-amor.yaml index c9137e8..7a4b130 100644 --- a/src/content/library/pt/スプートニクの恋人.yaml +++ b/src/content/library/pt/sputnik-meu-amor.yaml @@ -1,4 +1,5 @@ title: Sputnik, Meu Amor +originalTitle: スプートニクの恋人 checkedOut: true link: https://search.worldcat.org/title/864808899?oclcNum=864808899 description: > diff --git a/src/content/library/pt/the-limits-to-growth-30.yaml b/src/content/library/pt/the-limits-to-growth-30.yaml index 5f3590b..1db41c8 100644 --- a/src/content/library/pt/the-limits-to-growth-30.yaml +++ b/src/content/library/pt/the-limits-to-growth-30.yaml @@ -1,5 +1,6 @@ title: Limites do Crescimento subtitle: A Atualização de 30 Anos +originalTitle: 'Limits to Growth: The 30-Year Update' checkedOut: true link: >- https://www.scribd.com/document/422266661/Limites-Do-Crescimento-A-Atualizacao-de-30-Anos diff --git a/src/content/library/pt/ふしぎな図書館.yaml b/src/content/library/pt/the-strange-library.yaml similarity index 95% rename from src/content/library/pt/ふしぎな図書館.yaml rename to src/content/library/pt/the-strange-library.yaml index 4ccce89..6af03b9 100644 --- a/src/content/library/pt/ふしぎな図書館.yaml +++ b/src/content/library/pt/the-strange-library.yaml @@ -1,4 +1,5 @@ title: The Strange Library +originalTitle: ふしぎな図書館 checkedOut: true link: >- https://www.fnac.pt/The-Strange-Library-Haruki-Murakami/a807074?NUMERICAL=Y#bl=FA_ebook diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 8dc3b92..d9d380e 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -5,9 +5,10 @@ export interface Props { ptUrl: string; enUrl: string; lang: string; + hideFooterLinks?: boolean; } -const { ptUrl, enUrl, lang } = Astro.props; +const { ptUrl, enUrl, lang, hideFooterLinks } = Astro.props; const { footer } = Astro.slots; const hasFooter = !!footer; --- @@ -30,28 +31,40 @@ const hasFooter = !!footer; -