Code Monkey home page Code Monkey logo

thonkpeasant's Introduction

Thonkpeasant.xyz

This is the git repo for my website. The files for individual pages are in the markdown directory. The main site generator makefile is based on pdsite. There are three additional scripts I wrote for various tasks.

  • makeindex.sh: creates the index of pages which are seen by clicking on the navbar header.
  • makeyaml.sh: creates the yaml metadata used by pandoc for the conversion.
  • assets/makesmall.sh creates a 640x480 version of every image in assets using imagemagick. The actual pixel size is determined by the aspect ratio of the image.
  • lighty.lua is a pandoc filter which automatically applies to all images in the markdown documents; it does the following:
    • finds all images in the markdown document
    • substitutes the image (in pandoc AST) for a raw html string

The lighty.lua filter is a useful way to make images workable from markdown. If you put any images in the markdown document, then they will be displayed on your site with 1337box. Basically, when the image is clicked it will take up the whole screen until clicked again (simulating lightbox). If there is another image in the same directory as the linked image, with the suffix '_orig' then that image is displayed when the image is clicked. For example, if you have myphoto.png and myphoto_orig.png and you link ![](myphoto.png) then the user will see myphoto.png until they click, at which point myphoto_orig.png will fill the screen.

thonkpeasant's People

Contributors

shmalebx9 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.