From 4ce793fae2dfb6fcdff11f76816759c84be5c81d Mon Sep 17 00:00:00 2001 From: garhve Date: Mon, 12 Dec 2022 15:47:03 +0800 Subject: change post content --- cn/index.html | 2 +- cn/index.xml | 2 +- cn/posts/1/index.html | 2 +- cn/posts/2/index.html | 20 +++++--------------- cn/posts/index.html | 2 +- cn/posts/index.xml | 2 +- index.html | 2 +- posts/1/index.html | 2 +- posts/2/index.html | 2 +- posts/3/index.html | 2 +- posts/4/index.html | 2 +- posts/5/index.html | 2 +- posts/6/index.html | 2 +- posts/7/index.html | 2 +- posts/8/index.html | 2 +- posts/index.html | 2 +- 16 files changed, 20 insertions(+), 30 deletions(-) diff --git a/cn/index.html b/cn/index.html index 2f2c3ca..601dba5 100644 --- a/cn/index.html +++ b/cn/index.html @@ -47,7 +47,7 @@ - + diff --git a/cn/index.xml b/cn/index.xml index a39b57b..c776e23 100644 --- a/cn/index.xml +++ b/cn/index.xml @@ -27,7 +27,7 @@ hugo new post -> vim 找到文章 -> 保存或者发布 -> 太麻烦了,我就写了个简单的脚本来简化一下流程,反正是自用的,所以也不用考虑 怎么处理不同的位置,并且原先由于发布比较繁琐,草稿就都存在本地了,现在 我也可以直接将草稿发布出来,看得见,我才有动力写~ 这片文章的出现,也只是我想确认一下能不能正确处理好中文内容。这样一说,突然想起来编辑也挺麻烦的。。 也许可以将代码优化下以后就省心了,哈哈。 更新:拖了三天,终于把代码补完了~ blog.sh -###################################################################### # @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? +# usage: prog new/edit/push [en/cn] push() { read -r -p "Do you want to push?[y/n] " ans . diff --git a/cn/posts/1/index.html b/cn/posts/1/index.html index 2c349f2..8967303 100644 --- a/cn/posts/1/index.html +++ b/cn/posts/1/index.html @@ -47,7 +47,7 @@ - + diff --git a/cn/posts/2/index.html b/cn/posts/2/index.html index 1224f45..0528316 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###################################################################### # @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?", + "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# usage: prog new\/edit\/push [en\/cn] push() { read -r -p \u0026#34;Do you want to push?[y\/n] \u0026#34; ans .", "inLanguage" : "en-US", "author" : "garhve", "creator" : "garhve", @@ -54,7 +54,7 @@ hugo new post -> vim 找到文章 -> 保存或者发布 -> 太麻烦了,我就写了个简单的脚本来简化一下流程,反正是自用的,所以也不用考虑 怎么处理不同的位置,并且原先由于发布比较繁琐,草稿就都存在本地了,现在 我也可以直接将草稿发布出来,看得见,我才有动力写~ 这片文章的出现,也只是我想确认一下能不能正确处理好中文内容。这样一说,突然想起来编辑也挺麻烦的。。 也许可以将代码优化下以后就省心了,哈哈。 更新:拖了三天,终于把代码补完了~ blog.sh -###################################################################### # @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?" /> +# usage: prog new/edit/push [en/cn] push() { read -r -p "Do you want to push?[y/n] " ans ." /> +# usage: prog new/edit/push [en/cn] push() { read -r -p "Do you want to push?[y/n] " ans ." /> - + @@ -185,21 +185,11 @@ push出去。

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

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

-
######################################################################
-# @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]
+
# 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"
diff --git a/cn/posts/index.html b/cn/posts/index.html
index 879cb34..f67ac10 100644
--- a/cn/posts/index.html
+++ b/cn/posts/index.html
@@ -47,7 +47,7 @@
   
 
   
-    
+    
   
   
     
diff --git a/cn/posts/index.xml b/cn/posts/index.xml
index 55e0741..08b1411 100644
--- a/cn/posts/index.xml
+++ b/cn/posts/index.xml
@@ -27,7 +27,7 @@ hugo new post -> vim 找到文章 -> 保存或者发布 ->
 太麻烦了,我就写了个简单的脚本来简化一下流程,反正是自用的,所以也不用考虑 怎么处理不同的位置,并且原先由于发布比较繁琐,草稿就都存在本地了,现在 我也可以直接将草稿发布出来,看得见,我才有动力写~
 这片文章的出现,也只是我想确认一下能不能正确处理好中文内容。这样一说,突然想起来编辑也挺麻烦的。。 也许可以将代码优化下以后就省心了,哈哈。
 更新:拖了三天,终于把代码补完了~ blog.sh
-###################################################################### # @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?
+# usage: prog new/edit/push [en/cn] push() { read -r -p "Do you want to push?[y/n] " ans .
     
     
     
diff --git a/index.html b/index.html
index 1002f90..c3e70ef 100644
--- a/index.html
+++ b/index.html
@@ -47,7 +47,7 @@
   
 
   
-    
+    
   
   
     
diff --git a/posts/1/index.html b/posts/1/index.html
index 3c61095..fcd8ef3 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
   
 
   
-    
+    
   
   
     
diff --git a/posts/2/index.html b/posts/2/index.html
index bbd9fbb..6f9df36 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
   
 
   
-    
+    
   
   
     
diff --git a/posts/3/index.html b/posts/3/index.html
index 8276ed6..058f7cf 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
   
 
   
-    
+    
   
   
     
diff --git a/posts/4/index.html b/posts/4/index.html
index 04a794d..d80112d 100644
--- a/posts/4/index.html
+++ b/posts/4/index.html
@@ -76,7 +76,7 @@ document.addEventListener("DOMContentLoaded", function() {
 
 
   
-    
+    
   
   
     
diff --git a/posts/5/index.html b/posts/5/index.html
index 1fd4c05..9b7b68d 100644
--- a/posts/5/index.html
+++ b/posts/5/index.html
@@ -55,7 +55,7 @@ Arguments are delimeted by semi colon (;)." />
   
 
   
-    
+    
   
   
     
diff --git a/posts/6/index.html b/posts/6/index.html
index 33edebb..4eaa148 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
   
 
   
-    
+    
   
   
     
diff --git a/posts/7/index.html b/posts/7/index.html
index 77bfa28..7d86643 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
   
 
   
-    
+    
   
   
     
diff --git a/posts/8/index.html b/posts/8/index.html
index 96b234c..c36c186 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 .
   
 
   
-    
+    
   
   
     
diff --git a/posts/index.html b/posts/index.html
index 22a0182..4eddd9e 100644
--- a/posts/index.html
+++ b/posts/index.html
@@ -47,7 +47,7 @@
   
 
   
-    
+    
   
   
     
-- 
cgit v1.2.3-70-g09d2