GithubHelp home page GithubHelp logo

Show a date about gistlog HOT 6 CLOSED

tighten avatar tighten commented on April 28, 2024
Show a date

from gistlog.

Comments (6)

mattstauffer avatar mattstauffer commented on April 28, 2024

I would lean towards "show the creation date and then in a later PR, allow for overriding publish date in YAML front matter."

@adamwathan, thoughts?

Note that we are sort of showing dates here, but I definitely understand the desire to show it up top.

image

from gistlog.

adamwathan avatar adamwathan commented on April 28, 2024

Yeah makes sense to me, agreed that a real date makes more sense than a relative date for a blog post.

Only thing I would say is to use gistlog.yml rather than the front matter. Solves the problem of looking ugly on on gist.github.com and is more consistent with how we are doing other stuff.

Could even just use a published_on key to replace our current published key, would allow for queueing up future posts too.

from gistlog.

mattstauffer avatar mattstauffer commented on April 28, 2024

Oops, yah, gistlog.yml is our frontmatter in my head. Thanks.

Interesting about published_on deprecating published. That's a great idea.

from gistlog.

zQueal avatar zQueal commented on April 28, 2024

Could even just use a published_on key to replace our current published key, would allow for queueing up future posts too.

I'm thinking of moving my blog posts to gistlog, but I want to be able to recreate the date they were actually first published. If I move them to gistlog, then the "published on date" is the day I migrate them, not when they were actually first published. Is that what you're discussing here, @adamwathan?

from gistlog.

JacobBennett avatar JacobBennett commented on April 28, 2024

@adamwathan @mattstauffer @zQueal @raine with the new GistConfig class in PR #68 we should be able to make this a reality. One oversight that I didn't think of until just now was the fact that I didn't parse the published_on value in the gistlog.yml as a Carbon object. Would be a good idea if it was going to be overriding the published property.

from gistlog.

bakerkretzmar avatar bakerkretzmar commented on April 28, 2024

Closing as this was implemented in #127 and then removed again here as part of the design overhaul in #130 several months later.

For reference, right now we're showing a relative "Created at" and "Updated at" time at the bottom of every Gist page:

image

and a relative "Posted" time on the Gists landing page:

image

As far as I can tell, we are retrieving and parsing published_on from gistlog.yml but not using it anywhere. If we decide again that having a prominent, configurable "Published on" date is a priority, it'll be straightforward to add it again ร  la #127.

from gistlog.

Related Issues (20)

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.