Giter VIP home page Giter VIP logo

blog's Introduction

Blog (work in progress)

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

  • clj -A:build - render the blog to static HTML in output.

  • clj -A:propel - start a prepl server with Propel and write the port to .prepl-port.

  • clj -A:depot - check for outdated dependencies with Depot.

  • clj -A:test - execute all of the tests.

You can use the following if you’d like to rebuild the blog every time a file changes. It requires fd to find the files and entr to watch them then execute the blog.render/render! function.

fd | entr bash -c 'echo "(require \'blog.render) (blog.render/render!) :repl/quit" | netcat localhost $(cat .prepl-port)'

Finally, I use Python’s http.server to host the output directory locally.

python -m http.server -d output

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.

blog's People

Contributors

olical avatar

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.