DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up  
Topics
The largest independent dev blog feed.
We surface the best developer writing from thousands of independent blogs, updated daily. The open web is worth fighting for.
Join now
→
Learn more
TOPICS
自动获取 GitHub README 内容添加到 Hugo 文章
1
·
Cell
·
Oct. 6, 2024, 4:44 a.m.
Memo
Summary
<img src="https://lruihao.cn/posts/content-adapters/featured-image.webp" alt="featured image" referrerpolicy="no-referrer"><p>在这个博客中,我经常会写一些关于开源项目的文章,而这些开源项目通常都是托管在 GitHub 上的。为了方便内容同步,我希望能够自动获取 GitHub 仓库的 README 内容,然后添加到 Hugo 文章中。这样,我就不用再手动复制粘贴 README 内容了。</p> <h2 id="前言" class="heading-element"><span>1 前言</span> <a href="#%e5%89%8d%e8%a8%80" class="heading-mark"> <svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3...
Read full post on lruihao.cn →
Submit
AUTHOR
RECENT POSTS FROM THE AUTHOR