From 75f656f5d35b6975070e52b8ac9110e5e3a0dfc1 Mon Sep 17 00:00:00 2001 From: garhve Date: Mon, 12 Dec 2022 14:55:11 +0800 Subject: add chinese font and modified some blog --- cn/index.html | 4 ++-- cn/index.xml | 2 +- cn/posts/1/index.html | 4 ++-- cn/posts/2/index.html | 32 ++++++++++++++++++++++++++------ cn/posts/index.html | 4 ++-- cn/posts/index.xml | 2 +- index.html | 4 ++-- posts/1/index.html | 4 ++-- posts/2/index.html | 4 ++-- posts/3/index.html | 4 ++-- posts/4/index.html | 4 ++-- posts/5/index.html | 4 ++-- posts/6/index.html | 4 ++-- posts/7/index.html | 4 ++-- posts/8/index.html | 4 ++-- posts/index.html | 4 ++-- 16 files changed, 54 insertions(+), 34 deletions(-) diff --git a/cn/index.html b/cn/index.html index 43dac12..bf40401 100644 --- a/cn/index.html +++ b/cn/index.html @@ -47,7 +47,7 @@ - + @@ -59,7 +59,7 @@ title="blog | garhve's hub"> - + diff --git a/cn/index.xml b/cn/index.xml index 0a7bbb9..a39b57b 100644 --- a/cn/index.xml +++ b/cn/index.xml @@ -27,7 +27,7 @@ hugo new post -> vim 找到文章 -> 保存或者发布 -> 太麻烦了,我就写了个简单的脚本来简化一下流程,反正是自用的,所以也不用考虑 怎么处理不同的位置,并且原先由于发布比较繁琐,草稿就都存在本地了,现在 我也可以直接将草稿发布出来,看得见,我才有动力写~ 这片文章的出现,也只是我想确认一下能不能正确处理好中文内容。这样一说,突然想起来编辑也挺麻烦的。。 也许可以将代码优化下以后就省心了,哈哈。 更新:拖了三天,终于把代码补完了~ blog.sh -以后只需要在文件夹里./blog.sh action language 即可。 大大方便了使用呀。 也许以后就能多写写了(bushi) +###################################################################### # @author : garhve (dev@garhve.com) # @file : blog # @created : Friday Dec 09, 2022 16:09:42 CST # # @description : simplify blog publishing, it only can use in blog dir ###################################################################### # usage: prog new/edit/push [en/cn] push() { read -r -p "Do you want to push? diff --git a/cn/posts/1/index.html b/cn/posts/1/index.html index 4482e4d..bb69bf3 100644 --- a/cn/posts/1/index.html +++ b/cn/posts/1/index.html @@ -47,7 +47,7 @@ - + @@ -59,7 +59,7 @@ title="blog | garhve's hub"> - + diff --git a/cn/posts/2/index.html b/cn/posts/2/index.html index 844e8f8..aaed952 100644 --- a/cn/posts/2/index.html +++ b/cn/posts/2/index.html @@ -23,7 +23,7 @@ "articleSection" : "posts", "name" : "测试自动创建博客", "headline" : "测试自动创建博客", - "description" : "hugo挺不错的,就是太麻烦了。以下几点都是在使用时遇到的一些问题:\n写作 编辑器随便用个支持MD的就行了,这句陈述挺好。\n但现实是,我家里一台MacBook,一台arch Linux的Thinkpad,公司一台MacBook。 所以跨平台对我来说就很重要了。我有点洁癖,家目录我都在努力的把config和local 文件整合在各自不同的区域名以至于不那么乱。在每台电脑上下个markdown editor, 同步文件再在每台电脑上额外加个云,想想我都受不了。\n不过目前我试过了一个软件marktext,功能和UI都很不错,但由于同步 问题我不太想用。\n其实我比较倾向于下载个web app搭在我raspberry pi上,再通过公网挂出去, 达到我在任意地方都能使用的目的来着,但目前的app总有这样那样的问题 使我不是很满意,也就一直耽搁着了,现在也就是通过ssh直接到我的arch里 直接使用vim写文章,有点别扭\u0026hellip; 用vim写markdown。并且由于通过ssh到电脑里写的文章,预览比较困难\u0026hellip; 先将就一下吧,看看有没有什么好的办法解决它。\n图片 图片怎么管理原本也是个问题,我买入了一个存储桶并配置好了nginx, 但这比较适合fetch图片,当我截了新图要上传时,要么登录存储桶要么scp到 服务器去上传,而且传好后的url也是一个麻烦事。试了各种方法都不太行之后。\n在Mac端我用了uPic,这个比较方便的是不止可以传图片,其他文件需要 保存了也可以通过它上传,并且,它支持上传后直接拿到自定义对url,对于 我自定义了域名去匹配nginx的规则很方便。而且只需第一次配置好, 后面使用即可。\nLinux端呢,则暂时没有什么好办法,只能老老实实打开网页上传了~\n发布 Hugo的发布其实也是一个问题。在上面说过,我有洁癖,其实我还有一些强迫症。 自从GitHub被微软收购后,我很少使用了。虽然我只是一介平民,但我还是希望 尽可能将我不同的指纹分散隔离开来。我用了我自有的服务器去托管我的一些服务, 其中便包括这个博客。 Hugo我是安装在我的Linux上,我并没有让它接入公网。我有在服务器上托管了一个 cgit来当我的私人仓库,于是理所当然的,我把public给git到服务器上了。\n原先,发布一篇博客我的流程为,\nhugo new post -\u0026gt; vim 找到文章 -\u0026gt; 保存或者发布 -\u0026gt; 然后到public文件夹 push出去。\n太麻烦了,我就写了个简单的脚本来简化一下流程,反正是自用的,所以也不用考虑 怎么处理不同的位置,并且原先由于发布比较繁琐,草稿就都存在本地了,现在 我也可以直接将草稿发布出来,看得见,我才有动力写~\n这片文章的出现,也只是我想确认一下能不能正确处理好中文内容。这样一说,突然想起来编辑也挺麻烦的。。 也许可以将代码优化下以后就省心了,哈哈。\n更新:拖了三天,终于把代码补完了~ blog.sh\n以后只需要在文件夹里.\/blog.sh action language 即可。 大大方便了使用呀。 也许以后就能多写写了(bushi)", + "description" : "hugo挺不错的,就是太麻烦了。以下几点都是在使用时遇到的一些问题:\n写作 编辑器随便用个支持MD的就行了,这句陈述挺好。\n但现实是,我家里一台MacBook,一台arch Linux的Thinkpad,公司一台MacBook。 所以跨平台对我来说就很重要了。我有点洁癖,家目录我都在努力的把config和local 文件整合在各自不同的区域名以至于不那么乱。在每台电脑上下个markdown editor, 同步文件再在每台电脑上额外加个云,想想我都受不了。\n不过目前我试过了一个软件marktext,功能和UI都很不错,但由于同步 问题我不太想用。\n其实我比较倾向于下载个web app搭在我raspberry pi上,再通过公网挂出去, 达到我在任意地方都能使用的目的来着,但目前的app总有这样那样的问题 使我不是很满意,也就一直耽搁着了,现在也就是通过ssh直接到我的arch里 直接使用vim写文章,有点别扭\u0026hellip; 用vim写markdown。并且由于通过ssh到电脑里写的文章,预览比较困难\u0026hellip; 先将就一下吧,看看有没有什么好的办法解决它。\n图片 图片怎么管理原本也是个问题,我买入了一个存储桶并配置好了nginx, 但这比较适合fetch图片,当我截了新图要上传时,要么登录存储桶要么scp到 服务器去上传,而且传好后的url也是一个麻烦事。试了各种方法都不太行之后。\n在Mac端我用了uPic,这个比较方便的是不止可以传图片,其他文件需要 保存了也可以通过它上传,并且,它支持上传后直接拿到自定义对url,对于 我自定义了域名去匹配nginx的规则很方便。而且只需第一次配置好, 后面使用即可。\nLinux端呢,则暂时没有什么好办法,只能老老实实打开网页上传了~\n发布 Hugo的发布其实也是一个问题。在上面说过,我有洁癖,其实我还有一些强迫症。 自从GitHub被微软收购后,我很少使用了。虽然我只是一介平民,但我还是希望 尽可能将我不同的指纹分散隔离开来。我用了我自有的服务器去托管我的一些服务, 其中便包括这个博客。 Hugo我是安装在我的Linux上,我并没有让它接入公网。我有在服务器上托管了一个 cgit来当我的私人仓库,于是理所当然的,我把public给git到服务器上了。\n原先,发布一篇博客我的流程为,\nhugo new post -\u0026gt; vim 找到文章 -\u0026gt; 保存或者发布 -\u0026gt; 然后到public文件夹 push出去。\n太麻烦了,我就写了个简单的脚本来简化一下流程,反正是自用的,所以也不用考虑 怎么处理不同的位置,并且原先由于发布比较繁琐,草稿就都存在本地了,现在 我也可以直接将草稿发布出来,看得见,我才有动力写~\n这片文章的出现,也只是我想确认一下能不能正确处理好中文内容。这样一说,突然想起来编辑也挺麻烦的。。 也许可以将代码优化下以后就省心了,哈哈。\n更新:拖了三天,终于把代码补完了~ blog.sh\n###################################################################### # @author : garhve (dev@garhve.com) # @file : blog # @created : Friday Dec 09, 2022 16:09:42 CST # # @description : simplify blog publishing, it only can use in blog dir ###################################################################### # usage: prog new\/edit\/push [en\/cn] push() { read -r -p \u0026#34;Do you want to push?", "inLanguage" : "en-US", "author" : "garhve", "creator" : "garhve", @@ -54,7 +54,7 @@ hugo new post -> vim 找到文章 -> 保存或者发布 -> 太麻烦了,我就写了个简单的脚本来简化一下流程,反正是自用的,所以也不用考虑 怎么处理不同的位置,并且原先由于发布比较繁琐,草稿就都存在本地了,现在 我也可以直接将草稿发布出来,看得见,我才有动力写~ 这片文章的出现,也只是我想确认一下能不能正确处理好中文内容。这样一说,突然想起来编辑也挺麻烦的。。 也许可以将代码优化下以后就省心了,哈哈。 更新:拖了三天,终于把代码补完了~ blog.sh -以后只需要在文件夹里./blog.sh action language 即可。 大大方便了使用呀。 也许以后就能多写写了(bushi)" /> +###################################################################### # @author : garhve (dev@garhve.com) # @file : blog # @created : Friday Dec 09, 2022 16:09:42 CST # # @description : simplify blog publishing, it only can use in blog dir ###################################################################### # usage: prog new/edit/push [en/cn] push() { read -r -p "Do you want to push?" /> +###################################################################### # @author : garhve (dev@garhve.com) # @file : blog # @created : Friday Dec 09, 2022 16:09:42 CST # # @description : simplify blog publishing, it only can use in blog dir ###################################################################### # usage: prog new/edit/push [en/cn] push() { read -r -p "Do you want to push?" /> - + @@ -87,7 +87,7 @@ hugo new post -> vim 找到文章 -> 保存或者发布 -> title="blog | garhve's hub"> - + @@ -185,7 +185,27 @@ push出去。

这片文章的出现,也只是我想确认一下能不能正确处理好中文内容。这样一说,突然想起来编辑也挺麻烦的。。 也许可以将代码优化下以后就省心了,哈哈。

更新:拖了三天,终于把代码补完了~ blog.sh

-

以后只需要在文件夹里./blog.sh action language 即可。 +

######################################################################
+# @author      : garhve (dev@garhve.com)                                                                               
+# @file        : blog     
+# @created     : Friday Dec 09, 2022 16:09:42 CST  
+#                                                                                                                      
+# @description : simplify blog publishing, it only can use in blog dir
+######################################################################                                            
+                                                           
+# usage: prog new/edit/push [en/cn]
+                                                           
+push() {   
+    read -r -p "Do you want to push?[y/n] " ans                                                                        
+
+...
+
+[ $# -lt 1 ] && echo "usage: $(basename $0) new/edit/push [en/cn]"
+
+[ $1 == "new" ] && new "$2"
+[ $1 == "edit" ] && edit "$2"
+[ $1 == "push" ] && push
+

以后只需要在文件夹里./blog.sh action language 即可。 大大方便了使用呀。 wIAgJv 也许以后就能多写写了(bushi)

diff --git a/cn/posts/index.html b/cn/posts/index.html index e0086f7..4c8544f 100644 --- a/cn/posts/index.html +++ b/cn/posts/index.html @@ -47,7 +47,7 @@ - + @@ -59,7 +59,7 @@ title="blog | garhve's hub"> - + diff --git a/cn/posts/index.xml b/cn/posts/index.xml index c17ae9d..55e0741 100644 --- a/cn/posts/index.xml +++ b/cn/posts/index.xml @@ -27,7 +27,7 @@ hugo new post -> vim 找到文章 -> 保存或者发布 -> 太麻烦了,我就写了个简单的脚本来简化一下流程,反正是自用的,所以也不用考虑 怎么处理不同的位置,并且原先由于发布比较繁琐,草稿就都存在本地了,现在 我也可以直接将草稿发布出来,看得见,我才有动力写~ 这片文章的出现,也只是我想确认一下能不能正确处理好中文内容。这样一说,突然想起来编辑也挺麻烦的。。 也许可以将代码优化下以后就省心了,哈哈。 更新:拖了三天,终于把代码补完了~ blog.sh -以后只需要在文件夹里./blog.sh action language 即可。 大大方便了使用呀。 也许以后就能多写写了(bushi) +###################################################################### # @author : garhve (dev@garhve.com) # @file : blog # @created : Friday Dec 09, 2022 16:09:42 CST # # @description : simplify blog publishing, it only can use in blog dir ###################################################################### # usage: prog new/edit/push [en/cn] push() { read -r -p "Do you want to push?
diff --git a/index.html b/index.html index 1924de1..8c34fdd 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,7 @@ - + @@ -59,7 +59,7 @@ title="blog | garhve's hub"> - + diff --git a/posts/1/index.html b/posts/1/index.html index 1839247..c2bf861 100644 --- a/posts/1/index.html +++ b/posts/1/index.html @@ -51,7 +51,7 @@ Due to personal interest, I didn’t choose frame to base my website. I - + @@ -63,7 +63,7 @@ Due to personal interest, I didn’t choose frame to base my website. I title="blog | garhve's hub"> - + diff --git a/posts/2/index.html b/posts/2/index.html index e7a53cc..675c670 100644 --- a/posts/2/index.html +++ b/posts/2/index.html @@ -51,7 +51,7 @@ abroad provider because they don’t have to register.. the the budget&a - + @@ -63,7 +63,7 @@ abroad provider because they don’t have to register.. the the budget&a title="blog | garhve's hub"> - + diff --git a/posts/3/index.html b/posts/3/index.html index bef5f11..e6fafb8 100644 --- a/posts/3/index.html +++ b/posts/3/index.html @@ -53,7 +53,7 @@ delete file foo every minute * * * * * rm foo delete file foo every 15 minutes 1 - + @@ -65,7 +65,7 @@ delete file foo every minute * * * * * rm foo delete file foo every 15 minutes 1 title="blog | garhve's hub"> - + diff --git a/posts/4/index.html b/posts/4/index.html index 0b7b950..fccc894 100644 --- a/posts/4/index.html +++ b/posts/4/index.html @@ -76,7 +76,7 @@ document.addEventListener("DOMContentLoaded", function() { - + @@ -88,7 +88,7 @@ document.addEventListener("DOMContentLoaded", function() { title="blog | garhve's hub"> - + diff --git a/posts/5/index.html b/posts/5/index.html index ee99aa3..fe71c30 100644 --- a/posts/5/index.html +++ b/posts/5/index.html @@ -55,7 +55,7 @@ Arguments are delimeted by semi colon (;)." /> - + @@ -67,7 +67,7 @@ Arguments are delimeted by semi colon (;)." /> title="blog | garhve's hub"> - + diff --git a/posts/6/index.html b/posts/6/index.html index 4baa0c6..5805af9 100644 --- a/posts/6/index.html +++ b/posts/6/index.html @@ -55,7 +55,7 @@ Redirection File Redirection 0 is standard input, 1 is standard output, 2 is sta - + @@ -67,7 +67,7 @@ Redirection File Redirection 0 is standard input, 1 is standard output, 2 is sta title="blog | garhve's hub"> - + diff --git a/posts/7/index.html b/posts/7/index.html index 1b575c9..5f68a09 100644 --- a/posts/7/index.html +++ b/posts/7/index.html @@ -49,7 +49,7 @@ First is in the movie Midnight in Paris, directed by Woody Allen, which I just f - + @@ -61,7 +61,7 @@ First is in the movie Midnight in Paris, directed by Woody Allen, which I just f title="blog | garhve's hub"> - + diff --git a/posts/8/index.html b/posts/8/index.html index 3389da1..6c46696 100644 --- a/posts/8/index.html +++ b/posts/8/index.html @@ -53,7 +53,7 @@ Here’s a brief description: all configuration files I want to put in . - + @@ -65,7 +65,7 @@ Here’s a brief description: all configuration files I want to put in . title="blog | garhve's hub"> - + diff --git a/posts/index.html b/posts/index.html index 46d0ce7..c654fca 100644 --- a/posts/index.html +++ b/posts/index.html @@ -47,7 +47,7 @@ - + @@ -59,7 +59,7 @@ title="blog | garhve's hub"> - + -- cgit v1.2.3-70-g09d2