Comments (6)
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.
from gistlog.
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.
Oops, yah, gistlog.yml
is our frontmatter in my head. Thanks.
Interesting about published_on
deprecating published
. That's a great idea.
from gistlog.
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.
@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.
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:
and a relative "Posted" time on the Gists landing page:
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)
- Increase performance and caching of Gists HOT 2
- Load comments via AJAX so the initial page load isn't slow HOT 3
- Matt broke GitHub comment auth when upgrading Laravel
- Expose an RSS/Atom feed for a userโs page
- Landing page content seems to take a while to update HOT 2
- Shouldn't this be a static site? HOT 8
- Anchors aren't auto-generated for headers like in GitHub HOT 5
- Breaks at whitespace not respected in Anchor elements HOT 8
- Some small style rendering issues HOT 1
- Line height in bullet lists is too small HOT 1
- Show count of stars for a given post HOT 2
- Viewing Github Profile info below Profile Image HOT 2
- Upgrade dependencies including guzzle.
- Add Bugsnag HOT 3
- Ignore 404s on Bugsnag
- Add the count of comments to the "Comments" header, like it's shown at the top of the page
- If user isn't signed in, show the "star" button grey and pop up a signin prompt if they tap it
- Close modal when the user presses "esc" key
- Fix star/comment buttons on Safari desktop HOT 5
- Consider options for looking up and caching stargazercount that allow non-logged-in users to see them
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gistlog.