Giter VIP home page Giter VIP logo

blog's Introduction

Blog

My personal blog, hosted at oli.me.uk. Written in Clojure using Conjure and Neovim.

It’s a static site rendered from AsciiDoc, feel free to copy and modify the code if you think you’ll find it useful!

Tools

  • make build - Render the blog to static HTML in output.

  • make propel - Start a prepl server with Propel and write the port to .prepl-port.

  • make depot - Check for outdated dependencies with Depot.

  • make test - Execute all of the tests.

  • make serve - Host the output directory with Python’s http.server module.

  • make watch - Rebuild when any source files change, requires entr to be installed and make propel already running.

  • make build-container - Build the docker container and tag it as blog.

  • make run-container - Run the container locally, hosts on port 9898.

  • make setup-deploy - Configures git to deploy to my host.

  • make deploy - Deploys the current master to my host.

Hosting

This blog runs on fly.io (referral link!)

The container ends up being just the static rendered HTML served by nginx hosted in Dokku. The server directory contains the nginx configuration template, the $PORT that Dokku selects is added in at startup.

Forking

Feel free to fork this project and adapt it for your own needs! You’ll need to replace my domain in a few places (oli.me.uk) as well as my name. I’d prefer you to delete my posts and write your own too…​

You’ll probably want to edit the nginx configuration to remove the redirects I added for my own legacy blog reasons as well.

Just have a look around the source and grep for some things you spot that are related to myself, feel free to do whatever you’d like with the code.

If you get a lot out of forking this project I’d love to hear about it.

Unlicenced

The posts are mine and you should not republish them without asking permission or attribution, the code is fair game.

Find the full unlicense in the UNLICENSE file, but here’s a snippet.

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.