Git Product home page Git Product logo

livin-on-the-edge's Introduction

Livin' on the Edge

Based on Dinesh Pandiyan's Blogster Sleek.

This time we're doing it open source. Still a work in progress, so don't be surprised if everything gets shifted around a ton.

I would note too that this repo is open source, which means you can fork it and use it for your own site, though I wouldn't exactly recommend doing that. This repo is heavily customized from the original, and pretty opinionated, so check out Blogster if you would like to start your own.

Deployment

This site is deployed using Cloudflare Pages. It's a pretty cool service, and I would recommend it if you're looking for a free static site host.

Commands:

$ pnpm build
# The above command will log a Style Hash value. Save this, it will be important later.
$ pnpm run deploy

Rules

(http.host eq "www.goalastair.com" and http.response.content_type.media_type eq "text/html")

And here's the headers to add:

  • content-security-policy(Replace HASH with the Style Hash from above):
"default-src 'none'; script-src 'self' 'sha256-FKtXG4kEbTJAOvAMHspGJQUMjmZzyhu5qJHf3lm+xuc='; style-src 'self' 'HASH'; img-src 'self'; font-src 'self'; upgrade-insecure-requests; block-all-mixed-content; base-uri 'self'; manifest-src 'self'"
  • permissions-policy:
accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()
  • referrer-policy:
strict-origin-when-cross-origin

NOTE: The CSP header should be updated every time you change the fonts used in the site.

livin-on-the-edge's People

Contributors

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