My personal website and blog, available at mraag.xyz.
The project generates a static website with Eleventy. The documents are styled with tailwindcss. Static assets include illustrations from absurd.design and icons from Feather.
Building the project depends on Node.js and Yarn.
yarn
The project is configured with a set of environment variables. In a development environment they can
be specified with a .env
file.
cat > .env <<EOF
NODE_ENV=development
MR_GA_ID=<google analytics id>
MR_EMAIL=<contact email>
MR_GITHUB_URL=<github profile url>
MR_LINKEDINI_URL=<linkedin profile url>
MR_MASTODON_URL=<mastodon profile url>
MR_INSTAGRAM_URL=<instagram profile url>
EOF
Runs a local development server and watches files for changes, triggering a rebuild.
yarn start
For production builds, the NODE_ENV
environment variable must be set to production
.
yarn build
The static assets will be generated in the dist
directory and can be deployed to any host
capable of serving HTTP requests.
The project includes a configuration file for deployment to Netlify, which configures security and cache headers for the site.