Skip to content

About

My personal blog built with Elixir

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

acrogenesis_com

Getting Started

Once you bootstrap and enter your project, fetch your dependencies and start the build server. The server is available at http://localhost:4999

cd acrogenesis_com
mix deps.get

mix tableau.server

Draft Posts and WIP Pages

Posts and pages that are not ready for production can be saved to the _drafts and _wip directories respectively.

These are controlled via application configuration, as seen in config/dev.exs and config/prod.exs

Production Builds

To build for production, run the mix build alias to build your site and compile any assets (depends on what asset you chose when generating your site).

Running your build with MIX_ENV=prod is important so that the live reload JS script is not loaded, and also allows you to configure your app differently in dev vs prod, like showing future posts in dev, but not in prod.

MIX_ENV=prod mix build

Social Cards

AcrogenesisCom.OgImageExtension renders a 1200x630 PNG for every post at build time into _site/og/<slug>.png and sets it as the post's og:image / twitter:image. Images are drawn with libvips (vix, precompiled, no system packages needed) using the Liberation Mono fonts bundled in priv/fonts. Pages without a post image (home, archive) fall back to a site card at /og/default.png. A post can opt out by setting its own image: in the front matter.

About

My personal blog built with Elixir

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages