The new RomaJS website built with astro and SolidJS.
- Seo Support | automatic sitemap generation, robots.txt,
link[rel="alternate"]
etc... - Localized routes
/it/**
italian and/en/**
english. - Homepage.
- Blog section.
- Blog category pages.
- feed rss available at
<SITE>/blog/rss.xml
. - opengraph and twitter social cards.
- headless blog posts available at
/api/blog/post.json
. - headless blog posts categories available at
/api/blog/category.json
. - headless homepage content available at
/api/hp/it.json
&/api/hp/en.json
- About page
- homepage
- script that generates blog post files from a template
- github action pipeline that deploys to github pages
- blog post categories pages
- categories index page
- blog post authors pages
- blog post comments powered by giscus
- copy facebook posts 2022, 2020, 2019
- generate blog homepage
- build about page
- setup PR pipeline
- setup deploy to GH pages pipeline
- more...
This project requires node 16 and uses pnpm
as package manager.
If you have nvm
installed run
nvm use
You do not need to install pnpm
, you just need have node 16
installed and then enable corepack
:
corepack enable
You should then be able to run pnpm normally in this project, e.g. pnpm run fmt
.
Run pnpm run create-post
and follow the instructions.
HomePage content is defined in:
src/pages/api/hp/en.json.ts
src/pages/api/hp/it.json.ts
Edit enHpContent
to modify the english homepage and itHpContent
to change the italian one.
pnpm run dev
starts dev server at127.0.0.1:3000
.pnpm run build
builds project and emits site atdist/
folder.pnpm run fmt
format code using prettierpnpm run create-post
prompts to generate new postspnpm run preview
starts a server that serves the content ofdist/
pnpm run pre-commit
runs automatically on pre-commit; there's no need to call it directly
The previous version of romajs.org has been developed by Luca Lanziani and its source code is available at https://github.com/Roma-JS/romajs-on-metalsmith.