Coder Social home page Coder Social logo

triceratops-show / www.triceratops.show Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 313.42 MB

website for Tricerátops Show, brazilian alternative music podcast

Home Page: https://www.triceratops.show

License: MIT License

HTML 38.52% JavaScript 4.73% SCSS 36.41% Makefile 0.23% Shell 3.16% TypeScript 9.44% Go 7.50%
brazil music podcast rock

www.triceratops.show's People

Contributors

danielasy avatar eh-am avatar luitzterra avatar

Stargazers

 avatar  avatar

Watchers

 avatar

www.triceratops.show's Issues

auto generate fields

We could listen to events to autogenerate certain fields:

  • podcast_duration
  • podcast_bytes

based on podcast_file, which we assume should exist.

In the future we could even do the same for youtube.

optimize deployments

every new post shouldn't change much, except the n-1 episode
therefore the deployment shouldn't be so slow (it's taking ~5 minutes currently)

pull static data from s3 when building

we could pull from our bucket all the static data (mp3 episodes) which we can then refer via hugo, guaranteeing they exist

also we maybe could generate certain fields like episode_bytes and duration based on that?

calculate file size automatically

we can look at the content-length header

< content-length: 147706662

and check for it in a preSave event

CMS.registerEventListener({
  name: 'preSave',
  handler: ({ entry }) => {
    return entry.get('data').set('title', 'new title');
  },
});

show thumbnails in posts list

Idea 1:

We could try to autopopulate a field

CMS.registerEventListener({
  name: "preSave",
  handler: ({ entry }) => {
    const image = entry.get("data").get("episode_image");

    return entry.get("data").set("image", image);
  },
});

Problem is that it's infered to be a type: image, so we can't just hide it.
https://github.com/netlify/netlify-cms/blob/460d1e6835af122f86278b4b2f9c2e3b7bc91488/packages/netlify-cms-core/src/constants/fieldInference.tsx#L63

Tecnically we could inject some custom css to hide that field

Idea 2:
Rename podcast_image to simply image

don't duplicate episode files

eh right now they are being duplicated after build (to /docs dir)

i guess when moving to a proper server this won't happen anymore

cache busting on index page

every time i release a new episode i have to hard refresh the index page to see the new episode

i think we have to cache bust that somehow

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.