Home » Postsℹ️Log|2023-06-15来源于B站up主提出的internet log概念June 15, 2023 2 min@斯加德产品组长理解的需求并不是总负责人的需求,导致博主两周的加班白费了@pingu喜欢这个字体,很哲学⛵️超治愈休闲手游1sland,ios美服@芝麻汤圆儿好可爱的工牌,也许下次六一时也能在学院里举办这种活动,迷你学生卡🤔@测试媛小蒋作为模块导入时不会执行其中的代码@Yuanji: 用 Hugo 的 shortcodes 做 GitHub 卡片gohugoio/hugoThe world’s fastest framework for building websites.github.comgithub.html 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 {{ $repo := .Get "repo" }} {{ $detail := getJSON "https://api.github.com/repos/" $repo }} <article class="sc-card"> <a href="https://github.com/{{ $repo }}" target="_blank" rel="noopener"> <header> <img alt="{{ $repo }}" src="https://opengraph.githubassets.com/1/{{ $repo }}" /> </header> <div class="sc-card-content"> <p class="sc-card-title">{{ .Get "repo" }}</p> <p class="sc-card-details">{{ with $detail }}</p> <p class="sc-card-details">{{ .description }}</p> {{ end }} <span>github.com</span> </div> </a> </article> 样式文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 .sc-card { border-radius: .85em; border-width: 1px; border-style: solid; border-color: #e1e8ed; box-sizing: border-box; overflow: hidden; font-size: 14px } .sc-card:hover .sc-card-content { background: #f5f8fa } .sc-card a { text-decoration: none } .sc-card img { border: none; margin: 0 auto; border-radius: 15px 15px 0 0; } .sc-card-content { padding: 1em } .sc-card-content h2 { margin: 0 0 .15em; max-height: 1.3em; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .sc-card-content p.sc-card-title { font-weight: 700; font-size: 1.5em; line-height: 1.25; margin: 0 0 .15em; color: #000 } .sc-card-content p.sc-card-details { margin: 0; color: #000 } .sc-card-content span { color: #4f5a5f } 还发现了gist以及gistbox两个保存代码片段的工具,有待探索