Giter Site home page Giter Site logo

unia.xyz's Introduction

unia.xyz

A simple URL shortener from unia.xyz to University of Augsburg's webpages hosted on Cloudflare Pages and using Cloudflare's speedy CDN-based Redirects API.

Add or update short URLs

Modify redirects.toml and run python build.py. The build script will then parse the routing rules and generate the webpage and redirects file for Netlify.

  1. Fork this repository.
  2. Make changes as necessary.
  3. Commit and push changes to your own fork.
  4. Open a Pull Request on GitHub.

If your Pull Request is accepted and merged into main, all changes will be automagically deployed and you will be able to see your changes on unia.xyz within minutes.

Build script

Quickly hacked together, but it works. And it works in the following way:

  • Parse ./redirects.toml.
  • Fetch Base CSS from jsdelivr. We are using new.css.
  • Minify Custom CSS with rcssmin.
  • Create output folder ./out/ if not exists.
  • Generate ./out/index.html using Jinja2.
  • Generate ./out/_redirects using Jinja2.

unia.xyz's People

Contributors

dat-leth avatar fanest avatar dependabot[bot] avatar julisokay avatar thdthielet avatar e-m-p-error avatar ella-tas avatar fabian621 avatar paulober avatar victorole 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.