Skip to content

Commit 0fd27dd

Browse files
committed
deploy: a6da8c3
1 parent 3880ade commit 0fd27dd

20 files changed

Lines changed: 625 additions & 55 deletions

File tree

blog_setup/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818
<img src=/images/hugo-logo.png width=50 height=50 alt=Logo>
1919
</a>
2020
<ul class=nav-links>
21+
<li><a href=/categories/>Categories</a></li>
2122
<li><a href=/pl/>demo</a></li>
23+
<li><a href=/tags/>Tags</a></li>
2224
</ul>
2325
</nav>
2426
</header>
2527
<main class=content role=main>
2628
<article class=article>
2729
<h1 class=article-title>Blog_setup</h1>
28-
<span class=article-date>2022-10-02</span>
2930
<div class=article-content>
3031
<h1 id=hugo-quick-start>hugo quick start</h1>
3132
<p>跟着 <a href=https://gohugo.io/getting-started/quick-start/>quick start doc</a> 初始化站点, theme 选择 <a href=https://github.com/draveness/hugo-lithium>hugo-lithium</a></p>

categories/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,22 @@
1818
<img src=/images/hugo-logo.png width=50 height=50 alt=Logo>
1919
</a>
2020
<ul class=nav-links>
21+
<li><a href=/categories/>Categories</a></li>
2122
<li><a href=/pl/>demo</a></li>
23+
<li><a href=/tags/>Tags</a></li>
2224
</ul>
2325
</nav>
2426
</header>
2527
<main class=content role=main>
2628
<div class=archive>
29+
<h2 class=archive-title>2022</h2>
30+
<article class=archive-item>
31+
<a href=/categories/reference/ class=archive-item-link>reference</a>
32+
<span class=archive-item-date>
33+
2022-10-02
34+
</span>
35+
</article>
36+
</div>
2737
</main>
2838
<footer class=footer>
2939
<ul class=footer-links>

categories/index.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Categories on A Hugo website</title><link>https://yanhj93.github.io/categories/</link><description>Recent content in Categories on A Hugo website</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://yanhj93.github.io/categories/index.xml" rel="self" type="application/rss+xml"/></channel></rss>
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Categories on A Hugo website</title><link>https://yanhj93.github.io/categories/</link><description>Recent content in Categories on A Hugo website</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 02 Oct 2022 21:36:07 +0800</lastBuildDate><atom:link href="https://yanhj93.github.io/categories/index.xml" rel="self" type="application/rss+xml"/><item><title>reference</title><link>https://yanhj93.github.io/categories/reference/</link><pubDate>Sun, 02 Oct 2022 21:36:07 +0800</pubDate><guid>https://yanhj93.github.io/categories/reference/</guid><description/></item></channel></rss>

categories/reference/index.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!doctype html><html lang=en-us>
2+
<head>
3+
<meta charset=utf-8>
4+
<meta name=viewport content="width=device-width,initial-scale=1">
5+
<meta name=generator content="Hugo 0.91.2">
6+
<title>reference - A Hugo website</title>
7+
<meta property="og:title" content="reference - A Hugo website">
8+
<link href=https://yanhj93.github.io/favicon.ico rel=icon type=image/x-icon>
9+
<link href=/categories/reference/index.xml rel=alternate type=application/rss+xml title="A Hugo website">
10+
<link rel=stylesheet href=/css/fonts.css media=all>
11+
<link rel=stylesheet href=/css/main.css media=all>
12+
</head>
13+
<body>
14+
<div class=wrapper>
15+
<header class=header>
16+
<nav class=nav>
17+
<a href=/ class=nav-logo>
18+
<img src=/images/hugo-logo.png width=50 height=50 alt=Logo>
19+
</a>
20+
<ul class=nav-links>
21+
<li><a href=/categories/>Categories</a></li>
22+
<li><a href=/pl/>demo</a></li>
23+
<li><a href=/tags/>Tags</a></li>
24+
</ul>
25+
</nav>
26+
</header>
27+
<main class=content role=main>
28+
<div class=archive>
29+
<h2 class=archive-title>2022</h2>
30+
<article class=archive-item>
31+
<a href=/blog_setup/ class=archive-item-link>Blog_setup</a>
32+
<span class=archive-item-date>
33+
2022-10-02
34+
</span>
35+
</article>
36+
</div>
37+
</main>
38+
<footer class=footer>
39+
<ul class=footer-links>
40+
<li>
41+
<a href=/index.xml type=application/rss+xml target=_blank>RSS feed</a>
42+
</li>
43+
<li>
44+
<a href=https://gohugo.io/ class=footer-links-kudos>Made with <img src=/images/hugo-logo.png alt="Img link to Hugo website" width=22 height=22></a>
45+
</li>
46+
</ul>
47+
</footer>
48+
</div>
49+
</body>
50+
</html>

categories/reference/index.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>reference on A Hugo website</title><link>https://yanhj93.github.io/categories/reference/</link><description>Recent content in reference on A Hugo website</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 02 Oct 2022 21:36:07 +0800</lastBuildDate><atom:link href="https://yanhj93.github.io/categories/reference/index.xml" rel="self" type="application/rss+xml"/><item><title>Blog_setup</title><link>https://yanhj93.github.io/blog_setup/</link><pubDate>Sun, 02 Oct 2022 21:36:07 +0800</pubDate><guid>https://yanhj93.github.io/blog_setup/</guid><description>hugo quick start 跟着 quick start doc 初始化站点, theme 选择 hugo-lithium
2+
theme config 替换 config.toml 为主题example site 的config. 修改如下:
3+
修改posts permlink 为 baseURL/post_name. 修改single page template, 增加 tag 显示区域. 避免 _index.md 使用list page 模板渲染. 因为要自定义索引页. 配置 archetype. 配置菜单 content organization 如果需要发表系类文章, 系列名为demo, 陆续发表两篇文章 Go, Java. 过程如下:
4+
hugo new posts/demo/_index.md, 作为系列文章首页包含概述和文章索引. 发布后的URL为demo posts 间的引用语法link. hugo new posts/demo/Java.md. 发布后的URL为 /java hugo new posts/demo/Go.md. 发布后的URL为 /Go 添加菜单 [[menu.main]] name = &amp;quot;demo&amp;quot; url = &amp;quot;/pl/&amp;quot; deploy use github action and github pages.</description></item></channel></rss>

css/main.css

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -145,28 +145,9 @@ code {
145145
height: 1px;
146146
overflow: hidden;
147147
border: none;
148-
background: #000000;
148+
background: #e5e5e5;
149149
}
150150

151-
152-
.article-tag {
153-
margin-left: 3px;
154-
padding: 2px 10px;
155-
text-decoration: none;
156-
border-radius: 5px;
157-
font-size: 1rem;
158-
color: #9EABB3;
159-
border: #E3E9ED 1px solid;
160-
transition: color 0.3s ease;
161-
}
162-
163-
.article-tag:hover {
164-
border-bottom: 4px solid #CBF8DF;
165-
color: #7d8882;
166-
}
167-
168-
169-
170151
.highlight {
171152
border-radius: 3px;
172153
position: relative;
@@ -204,22 +185,6 @@ code {
204185
margin-top: 5px;
205186
display: block;
206187
}
207-
/* .archive-item-link {
208-
text-decoration: none;
209-
font-size: 21px;
210-
font-weight: bold;
211-
color: inherit;
212-
border-bottom: 2px solid #CBF8DF;
213-
box-shadow: inset 0 -4px 0 #CBF8DF;
214-
background: transparent;
215-
margin: 1px 0;
216-
transition: background 150ms ease;
217-
}
218-
219-
.archive-item-link:hover,
220-
.archive-item-link:focus {
221-
background: #CBF8DF;
222-
} */
223188

224189
.archive-item-link {
225190
display: inline-block;

go/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
<img src=/images/hugo-logo.png width=50 height=50 alt=Logo>
1818
</a>
1919
<ul class=nav-links>
20+
<li><a href=/categories/>Categories</a></li>
2021
<li><a href=/pl/>demo</a></li>
22+
<li><a href=/tags/>Tags</a></li>
2123
</ul>
2224
</nav>
2325
</header>
2426
<main class=content role=main>
2527
<article class=article>
2628
<h1 class=article-title>Go</h1>
27-
<span class=article-date>2022-10-01</span>
2829
<div class=article-content>
2930
<h1 id=go>Go</h1>
3031
</div>

index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,36 @@
2020
<img src=/images/hugo-logo.png width=50 height=50 alt=Logo>
2121
</a>
2222
<ul class=nav-links>
23+
<li><a href=/categories/>Categories</a></li>
2324
<li><a href=/pl/>demo</a></li>
25+
<li><a href=/tags/>Tags</a></li>
2426
</ul>
2527
</nav>
2628
</header>
2729
<main class=content role=main>
2830
<div class=archive>
31+
<h2 class=archive-title>2025</h2>
32+
<article class=archive-item>
33+
<a href=/java_gc/ class=archive-item-link>Java_gc</a>
34+
<span class=archive-item-date>
35+
2025-02-20
36+
</span>
37+
</article>
38+
<h2 class=archive-title>2024</h2>
39+
<article class=archive-item>
40+
<a href=/java-%E6%96%B9%E6%B3%95%E6%89%A7%E8%A1%8C/ class=archive-item-link>Java 方法执行</a>
41+
<span class=archive-item-date>
42+
2024-06-09
43+
</span>
44+
</article>
2945
<h2 class=archive-title>2022</h2>
3046
<article class=archive-item>
47+
<a href=/%E5%8D%A1%E7%89%87%E7%AC%94%E8%AE%B0%E5%86%99%E4%BD%9C%E6%B3%95/ class=archive-item-link>卡片笔记写作法</a>
48+
<span class=archive-item-date>
49+
2022-10-02
50+
</span>
51+
</article>
52+
<article class=archive-item>
3153
<a href=/blog_setup/ class=archive-item-link>Blog_setup</a>
3254
<span class=archive-item-date>
3355
2022-10-02

index.xml

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,54 @@
1-
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>A Hugo website</title><link>https://yanhj93.github.io/</link><description>Recent content on A Hugo website</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 02 Oct 2022 21:36:07 +0800</lastBuildDate><atom:link href="https://yanhj93.github.io/index.xml" rel="self" type="application/rss+xml"/><item><title>Blog_setup</title><link>https://yanhj93.github.io/blog_setup/</link><pubDate>Sun, 02 Oct 2022 21:36:07 +0800</pubDate><guid>https://yanhj93.github.io/blog_setup/</guid><description>hugo quick start 跟着 quick start doc 初始化站点, theme 选择 hugo-lithium
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>A Hugo website</title><link>https://yanhj93.github.io/</link><description>Recent content on A Hugo website</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 20 Feb 2025 00:01:43 +0800</lastBuildDate><atom:link href="https://yanhj93.github.io/index.xml" rel="self" type="application/rss+xml"/><item><title>Java_gc</title><link>https://yanhj93.github.io/java_gc/</link><pubDate>Thu, 20 Feb 2025 00:01:43 +0800</pubDate><guid>https://yanhj93.github.io/java_gc/</guid><description>measure throughput indicate percentage of time used in application against gc. the more frequent gc work, the more resource it take away from application which affect throughput even if with concurrent. If reduce the frequency of gc and don&amp;rsquo;t gc before garbage has accumulate to large amount, it will decrease total cpu and footprint cost on gc but may increase the paused time in this big gc work round.
2+
response time, as what said above, gc more frequent with short pause time, with small effect to user interactive application.</description></item><item><title>Java 方法执行</title><link>https://yanhj93.github.io/java-%E6%96%B9%E6%B3%95%E6%89%A7%E8%A1%8C/</link><pubDate>Sun, 09 Jun 2024 20:44:02 +0800</pubDate><guid>https://yanhj93.github.io/java-%E6%96%B9%E6%B3%95%E6%89%A7%E8%A1%8C/</guid><description>从源码到cpu执行的过程梳理 common method execution scenarios such as main method, constructor, static method, polymorphism, reflection, lambda expression beyond java how source code execute to cpu JVM load class file and interpret/execute the bytecode.
3+
class file contains byte sequence, which is platform neutral.
4+
Java source code was compiled to platform neutral byte code, wellknowed as class file. java class file is with strict format, define every thing of java class.</description></item><item><title>Blog_setup</title><link>https://yanhj93.github.io/blog_setup/</link><pubDate>Sun, 02 Oct 2022 21:36:07 +0800</pubDate><guid>https://yanhj93.github.io/blog_setup/</guid><description>hugo quick start 跟着 quick start doc 初始化站点, theme 选择 hugo-lithium
25
theme config 替换 config.toml 为主题example site 的config. 修改如下:
36
修改posts permlink 为 baseURL/post_name. 修改single page template, 增加 tag 显示区域. 避免 _index.md 使用list page 模板渲染. 因为要自定义索引页. 配置 archetype. 配置菜单 content organization 如果需要发表系类文章, 系列名为demo, 陆续发表两篇文章 Go, Java. 过程如下:
4-
hugo new posts/demo/_index.md, 作为系列文章首页包含概述和文章索引. 发布后的URL为demo posts 间的引用语法link. hugo new posts/demo/Java.md. 发布后的URL为 /java hugo new posts/demo/Go.md. 发布后的URL为 /Go 添加菜单 [[menu.main]] name = &amp;quot;demo&amp;quot; url = &amp;quot;/pl/&amp;quot; deploy use github action and github pages.</description></item><item><title>Go</title><link>https://yanhj93.github.io/go/</link><pubDate>Sat, 01 Oct 2022 12:24:46 +0800</pubDate><guid>https://yanhj93.github.io/go/</guid><description>Go</description></item><item><title>Java</title><link>https://yanhj93.github.io/java/</link><pubDate>Sat, 01 Oct 2022 12:24:46 +0800</pubDate><guid>https://yanhj93.github.io/java/</guid><description>Java</description></item></channel></rss>
7+
hugo new posts/demo/_index.md, 作为系列文章首页包含概述和文章索引. 发布后的URL为demo posts 间的引用语法link. hugo new posts/demo/Java.md. 发布后的URL为 /java hugo new posts/demo/Go.md. 发布后的URL为 /Go 添加菜单 [[menu.main]] name = &amp;quot;demo&amp;quot; url = &amp;quot;/pl/&amp;quot; deploy use github action and github pages.</description></item><item><title>卡片笔记写作法</title><link>https://yanhj93.github.io/%E5%8D%A1%E7%89%87%E7%AC%94%E8%AE%B0%E5%86%99%E4%BD%9C%E6%B3%95/</link><pubDate>Sun, 02 Oct 2022 21:36:07 +0800</pubDate><guid>https://yanhj93.github.io/%E5%8D%A1%E7%89%87%E7%AC%94%E8%AE%B0%E5%86%99%E4%BD%9C%E6%B3%95/</guid><description>书评
8+
写作是个人影响力的重要表现方式,同时也是个人学习正向反馈的关键环节。写作是目的也是手段。
9+
卡片笔记是记笔记的方法论,写作时笔记如神经网络一样自然连接。
10+
卡片笔记从心理、意志力、练习等方面阐述如何阅读、写作最终掌握各个领域的专业技能。
11+
注意力与写作
12+
分散注意力的事物越来越多。
13+
练习注意力的机会减少,集中注意力的能力没有得到锻炼。
14+
同时关注多件事,不能借助注意力的红利,且容易被曝光效应欺骗,获得假性知识。
15+
不同任务需要不同程度的关注度。
16+
卡片写作法提供清晰、稳定的工作结构,在有限的时间内依次完成任务。
17+
卡片写作法以卡片形式形式拆分主题
18+
写作本身能训练长时间集中注意力的能力。
19+
写作与笔记能帮助我们长久的专注于一个领域、一个项目等(写作内容)。
20+
计划与写作
21+
规则 原则 通用的解决方案 vs 实践积累的经验
22+
没有完美通用的指导下一步是什么 依赖规则会陷入低效的状态 且缺乏获取事实的反馈 产生洞见的独立思考
23+
全身心的投入、快速推进以及通过恰当的例子对具体案例进行深入了解,是成为真正高手的先决条件
24+
对一个领域的专业 体现依赖实践经验对真实情况的直觉反应
25+
卡片笔记没有提供记笔记的技巧和流程,它提供的是多个层面的练习的机会,它强调自我阐述、建立联系、即时反馈。
26+
记忆力与写作
27+
蔡格尼克效应,短期记忆力会占据大脑
28+
释放短期记忆(GTD),未解决的事会占据短期记忆,在需求集中注意力时造成干扰
29+
建立事物间的联系,从而拥有长期记忆
30+
记录卡片笔记是将思考的结果记录下来,从而为了切换到其他事务或更为了随时能切换回记忆点;
31+
在卡片之间建立联系,成为提取记忆的线索;
32+
意志力与写作
33+
意志力是大脑中一种有限资源 消耗的快 恢复的慢
34+
称为自我损耗 各种个样的事情都会自我损耗 从而很容易降低学习工作的能力 意愿
35+
避免自我损耗 即避免消耗意志力 如自我暗示 欺骗
36+
工作生活中的决策很多 避免不必要的决策 将注意力放在更重要的事上
37+
及时完成工作 放心休息 再次开始 有助于恢复意志力 这是个良性循环
38+
卡片笔记有清晰的工作流程,避免记笔记本身这个行为的消耗;
39+
卡片笔记通过链接建立笔记的联系,如同人的大脑,系统在自然的记录以及建立联系的过程中行成;
40+
卡片笔记如同复利投资,ROI高,积累的越多,越能通过卡片和链接形成洞察。
41+
阅读与写作
42+
无记录不阅读
43+
读书没有记笔记相当于没有读过这本书
44+
单纯的摘抄、画线、评论不能够在长远的时间维度上发挥效用。
45+
笔记应当用自己的语言转述原文意思
46+
笔记不光记录论点,更可以是文本的框架,理论背景,方法论等
47+
笔记应当带有目的,即为你的知识系统服务
48+
卡片笔记是最终的永久笔记,恰是阅读的目的;
49+
卡片是阅读进行的生态系统,它为阅读提供养分,使阅读不无的放矢,又被阅读所充实,行成正向循环;
50+
文献笔记是贴近原文的理解思考,永久笔记是可以出版的、完全属于自身知识系统的写作产物
51+
避免确认偏差
52+
个人选择性地回忆、搜集有利细节,忽略不利或矛盾的资讯,来支持自己已有的想法或假设的趋势
53+
不应带着已有论点阅读和笔记,而是收集后总结归纳,再与已有论点建立联系。
54+
培养驾驭文本的能力</description></item><item><title>Go</title><link>https://yanhj93.github.io/go/</link><pubDate>Sat, 01 Oct 2022 12:24:46 +0800</pubDate><guid>https://yanhj93.github.io/go/</guid><description>Go</description></item><item><title>Java</title><link>https://yanhj93.github.io/java/</link><pubDate>Sat, 01 Oct 2022 12:24:46 +0800</pubDate><guid>https://yanhj93.github.io/java/</guid><description>Java</description></item></channel></rss>

0 commit comments

Comments
 (0)