Skip to content

Show links to blogs and their latest post. #981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 22, 2022

Conversation

m-ou-se
Copy link
Member

@m-ou-se m-ou-se commented Jun 1, 2022

This makes the generator show file: urls to the main page and the latest post of both blogs:

$ cargo r -q
Inside Rust Blog: file:///home/mara/dev/blog.rust-lang.org/site/inside-rust/index.html
└─ Latest post: file:///home/mara/dev/blog.rust-lang.org/site/inside-rust/2022/05/26/Concluding-events-mods.html

Rust Blog: file:///home/mara/dev/blog.rust-lang.org/site/index.html
└─ Latest post: file:///home/mara/dev/blog.rust-lang.org/site/2022/05/19/Rust-1.61.0.html

Depending on how cool your terminal is, these might appear as clickable links.

Copy link
Member

@rylev rylev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but I think this doesn't quite work on Windows.

Copy link
Member

@rylev rylev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@rylev rylev merged commit 1607931 into rust-lang:master Jun 22, 2022
@m-ou-se m-ou-se deleted the show-links branch June 22, 2022 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants