共有 7 篇文章
2024-08-28
为 VS Code 添加自定义的 Shortcode Snippets
2024-08-28 ~ 2024-08-28
我定义了多个 Shortcode, 为了在 VS Code 中编辑文档时方便使用,定义了如下的 snippets: 这些 snippets 主要用于该静态网站,因此,我将其放在了 .vscode/ 下,名为:snipp
2024-08-15
在Hugo页面中实现分栏显示
2024-08-15 ~ 2024-08-16
同“在 Hugo 博客中实现多语言代码片段的选项卡切换”一致,该功能实现主要基于 Shortcode。以下是名为 two-columns.html 的 Shortcode: <div class="two-columns-container"> <div class="column column-left"> {{ with .Inner }} {{ $parts := split . "###" }} {{ if ge (len $parts) 1 }} {{ $left := index
2024-08-14
在Hugo页面中实现内容保护
2024-08-14 ~ 2024-08-28
同“在 Hugo 博客中实现多语言代码片段的选项卡切换”一致,该功能实现主要基于 Shortcode。以下是名为 protected.html 的 Shortcode: <div id="protected-content-{{ .Get "id" }}" style="display: none"> {{ if eq (.Get "isTabs") "true" }} {{ .Inner | safeHTML }} {{ else }} {{ .Inner | markdownify }}
2024-07-03
Reading List
2024-07-03 ~ 2024-07-14
Computer Science Patt, Y.N., Patel, S., 2019. Introduction to Computing Systems: From Bits & Gates to C/C++ & Beyond, 3rd edition. ed. McGraw Hill. Patterson, D.A., Hennessy, J.L., 2020. Computer Organization and Design RISC-V Edition: The Hardware Software Interface, 2nd edition. ed. Morgan Kaufmann, Cambridge, MA. Programming Savitch, W.J., 2017. Problem Solving with C++, 10th ed. Pearson. Stroustrup, B., 2015. Programming: principles and practice using C++, 2nd ed. Addison-Wesley. Carrano, F., Henry, T., 2016. Data Abstraction & Problem Solving with C++: Walls and Mirrors, 7th ed.
2024-07-01
字典序(Lexicographic Order)VS. 字母序(Alphabetic Order)
2024-07-01 ~ 2024-07-01
字母顺序(Alphabetic Order) 字母顺序是指根据字母在字母表中的位置对单词或字符串进行排序。例如,在英语字母表中,a 排在 b 之前,b 排在 c 之前,依此类推
2024-06-18
在 Hugo 博客中实现多语言代码片段的选项卡切换
2024-06-18 ~ 2024-08-19
我的网站目前是基于 Hugo 框架,并结合 virgo 主题来构建的。随着内容的扩展,我可能需要在同一篇文章中展示多种编程语言的代码片段。为了提升阅读体验,我希望通过选项卡切换的方式
2017-02-05
Welcome to Hakuna home!
2017-02-05 ~ 2024-04-12