Title: Write a script to update site.time and add TRAVIS CI · Issue #1 · ClojureBridge/clojurebridge.github.io · GitHub
Open Graph Title: Write a script to update site.time and add TRAVIS CI · Issue #1 · ClojureBridge/clojurebridge.github.io
X Title: Write a script to update site.time and add TRAVIS CI · Issue #1 · ClojureBridge/clojurebridge.github.io
Description: Jekyll would usually show old posts(=workshops) and no posts that have a future date. We turned the behavior around with these code lines: {% assign curDate = site.time | date: '%s' %} {% for post in site.posts %} {% assign postStartDate...
Open Graph Description: Jekyll would usually show old posts(=workshops) and no posts that have a future date. We turned the behavior around with these code lines: {% assign curDate = site.time | date: '%s' %} {% for post ...
X Description: Jekyll would usually show old posts(=workshops) and no posts that have a future date. We turned the behavior around with these code lines: {% assign curDate = site.time | date: '%s' %} {% f...
Opengraph URL: https://github.com/ClojureBridge/clojurebridge.github.io/issues/1
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Write a script to update site.time and add TRAVIS CI","articleBody":"Jekyll would usually show old posts(=workshops) and no posts that have a future date. We turned the behavior around with these code lines:\n\n```\n{% assign curDate = site.time | date: '%s' %}\n {% for post in site.posts %}\n {% assign postStartDate = post.date | date: '%s' %}\n {% if postStartDate \u003e= curDate %}\n \u003cli\u003e\n \u003cspan class=\"post-meta\"\u003e{{ post.date | date: \"%b %-d, %Y\" }}\u003c/span\u003e\n\n \u003ch2\u003e\n \u003ca class=\"post-link\" href=\"{{ post.url | prepend: site.baseurl }}\"\u003e{{ post.title }}\u003c/a\u003e\n \u003c/h2\u003e\n \u003c/li\u003e\n {% endif %}\n {% endfor %}\n```\n\nThis works fine. The only problem is that **`site.time`** only gets updated once we deploy. And we might not deploy everyday. (A deploy happens everytime we push to gh-pages branch.)\n\n💡 The idea is to write a script that updates `site.time` everyday.\n","author":{"url":"https://github.com/Malwine","@type":"Person","name":"Malwine"},"datePublished":"2016-08-15T15:15:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/1/clojurebridge.github.io/issues/1"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:55bf6b12-e0ae-37d8-3f46-9280de853e8a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD50:2BA72B:30915D:430F74:6A58478C |
| html-safe-nonce | 810c70720351e2154aae488faf90ecd1c210b8fbb1e728811b308ad4a6d0687a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDUwOjJCQTcyQjozMDkxNUQ6NDMwRjc0OjZBNTg0NzhDIiwidmlzaXRvcl9pZCI6IjY4Njk3NzE0MDI1NzAzODUyOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 66cd4610762d2d352f0aa7792db39d73917b29c381f38e3670ed3eed6957fea9 |
| hovercard-subject-tag | issue:171191298 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ClojureBridge/clojurebridge.github.io/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/acc3827f55c1466bf25fb68951f32e6af9267891edb2c921914216122d4b8a5b/ClojureBridge/clojurebridge.github.io/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/acc3827f55c1466bf25fb68951f32e6af9267891edb2c921914216122d4b8a5b/ClojureBridge/clojurebridge.github.io/issues/1 |
| og:image:alt | Jekyll would usually show old posts(=workshops) and no posts that have a future date. We turned the behavior around with these code lines: {% assign curDate = site.time | date: '%s' %} {% for post ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Malwine |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/ClojureBridge/clojurebridge.github.io git https://github.com/ClojureBridge/clojurebridge.github.io.git |
| octolytics-dimension-user_id | 5693478 |
| octolytics-dimension-user_login | ClojureBridge |
| octolytics-dimension-repository_id | 65719123 |
| octolytics-dimension-repository_nwo | ClojureBridge/clojurebridge.github.io |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65719123 |
| octolytics-dimension-repository_network_root_nwo | ClojureBridge/clojurebridge.github.io |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width