Code Monkey home page Code Monkey logo

website's Introduction

Personal Website

My personal website, subject to change on a whim.

Gallery Updater

First, in order to run the script you will need poetry. Install using your package manager, then run poetry install. After, you can run poetry shell to drop into a shell with all the dependencies

  • alternatively you can just install the deps yourself manually from pyproject.toml

To run: Simply place images you want to display in the gallery in the slated folder and then run python update_gallery.py slated/* --resize-thumbs

The script will copy them to ./images/fulls and ./images/thumbs (with the latter being resized if using --resize-thumbs) and will add the appropriate articles to index.html

Additionally if you add a blurbs.json each title, description, and alt text, will be added to each image. Like so:

{
    "blurbs": [{
            "title": "The Border",
            "body": "... And dreadfully distinct against the dark, a tall white fountain played.",
            "alt": "A tall white lotus fountain"
        },
        {
            "title": "Vana",
            "body": "",
            "alt": ""
        },
        {
            "title": "Healing Waters",
            "body": "",
            "alt": ""
        },
        {
            "title": "Truth",
            "body": "There are three things that cannot long be hidden: the sun, the moon and the truth.",
            "alt": ""
        },
        {
            "title": "Luveh-Keraphf",
            "body": "... and with strange aeons, even death may die.",
            "alt": ""
        },
        {
            "title": "Saṃsāra",
            "body": "",
            "alt": ""
        }
    ]
}

Note: Order matters, so put the description objects in order of how it is listed in the slated folder

website's People

Contributors

ngullotta avatar

Watchers

 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.