Mark blogs older than a year as outdated#31594
Conversation
|
✔️ Deploy Preview for kubernetes-io-main-staging ready! 🔨 Explore the source changes: 1a88ffd 🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/61fa8f6207d370000841d0a8 😎 Browse the preview: https://deploy-preview-31594--kubernetes-io-main-staging.netlify.app |
|
LGTM label has been added. DetailsGit tree hash: ffdf4fe8e8a2e6f427bfd11691ad2b007d4e0d89 |
|
/area web-development |
Co-authored-by: Tim Bannister <tim@scalefactory.com>
Co-authored-by: Tim Bannister <tim@scalefactory.com>
8326bc6 to
662be2b
Compare
662be2b to
6de4f5b
Compare
|
Great suggestions @sftim, thanks! I've updated the PR. PTAL |
| {{ $title := .Param "outdated_blog.title" | default (T "outdated_blog_title") -}} | ||
| {{ $msg := .Param "outdated_blog.message" | default (T "outdated_blog_over_one_year_old") -}} |
There was a problem hiding this comment.
I think that I'll pull out the .Param "outdated_blog.* parts, since it isn't fully functional (at least not as I envision it) and it isn't needed for marking blogs that are a year or older. (I'll do that tomorrow.)
|
@sftim @nate-double-u : final cleanup done, this is ready for your review. |
|
/area blog |
|
LGTM label has been added. DetailsGit tree hash: 2aeb83be5d8c69ce10a011196354a06bc8da7998 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sftim The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@sftim @nate-double-u - Btw, I did want to mention one minor (IMHO) glitch: the Japanese blog landing page gets marked as outdated, presumable because it contains a single blog entry that is itself outdated — see https://kubernetes.io/ja/blog/ IMHO, this is a docsy (or Hugo) glitch, no worth writing custom layout code for. This might be fixed in a more recent version of Docsy. Let me know if you're ok with this glitch or whether you'd like for me to investigate further. |
|
That's probably worth opening an issue for, even if we mark it as an upstream problem. |
|
Done: #31601 |
Preview, for example, see:
Screenshot:
/cc @nate-double-u