big change about name
37
change_time campare.py
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
import os
|
||||||
|
from rich.progress import track
|
||||||
|
from git import Repo
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
content_path = os.path.join(os.path.dirname(__file__))
|
||||||
|
prefix_path = os.path.join(content_path, "content")
|
||||||
|
|
||||||
|
for root, dirs, files in os.walk(content_path):
|
||||||
|
for file in files:
|
||||||
|
|
||||||
|
if '.' in root:
|
||||||
|
continue
|
||||||
|
|
||||||
|
# ignore bug and continue running
|
||||||
|
|
||||||
|
try:
|
||||||
|
|
||||||
|
if file.endswith(".md"):
|
||||||
|
file_path = os.path.join(root, file)
|
||||||
|
repo = Repo(content_path)
|
||||||
|
file_path = os.path.relpath(file_path, repo.working_dir)
|
||||||
|
commit = repo.iter_commits(paths=file_path, max_count=1).__next__()
|
||||||
|
# print(f"{file_path} - {str(commit.committed_datetime).split(' ')[0]}")
|
||||||
|
|
||||||
|
# check if path exists, no matter capital or not
|
||||||
|
print(os.path.join(prefix_path, file_path))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
except:
|
||||||
|
# output error message
|
||||||
|
print(f"Error: {file_path}")
|
||||||
|
pass
|
||||||
|
continue
|
||||||
@ -44,7 +44,7 @@ date: 2023-03-16
|
|||||||
|
|
||||||
* [📷 Photography](photography/photography_MOC.md)
|
* [📷 Photography](photography/photography_MOC.md)
|
||||||
|
|
||||||
* [📮文学](文学/文学_MOC.md)
|
* [📮文学](literature/literature_MOC.md)
|
||||||
|
|
||||||
* [🥐Food](food/MOC.md)
|
* [🥐Food](food/MOC.md)
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 424 KiB After Width: | Height: | Size: 424 KiB |
|
Before Width: | Height: | Size: 655 KiB After Width: | Height: | Size: 655 KiB |
@ -8,9 +8,9 @@ date: 2023-05-01
|
|||||||
|
|
||||||
In this MOC, it shows you the path to what I record for some interesting sentences, including Chinese and English, even Japanese.
|
In this MOC, it shows you the path to what I record for some interesting sentences, including Chinese and English, even Japanese.
|
||||||
|
|
||||||
[🌌句子](文学/句子/句子.md)
|
[🌌句子](literature/sentence/sentence_MOC.md)
|
||||||
|
|
||||||
[📜原创诗](文学/poem/Poem_by_me.md)
|
[📜原创诗](literature/poem/Poem_by_me.md)
|
||||||
|
|
||||||
[🎏我的文字](文学/article/article_MOC.md)
|
[🎏我的文字](literature/article/article_MOC.md)
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ date: 2023-05-01
|
|||||||
> 我咀嚼快乐<br>
|
> 我咀嚼快乐<br>
|
||||||
> 却尝到痛苦
|
> 却尝到痛苦
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -35,7 +35,7 @@ date: 2023-05-01
|
|||||||
> 一层给你看<br>
|
> 一层给你看<br>
|
||||||
> 一层给别人看
|
> 一层给别人看
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -66,7 +66,7 @@ date: 2023-05-01
|
|||||||
> 绣了
|
> 绣了
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -106,7 +106,7 @@ date: 2023-05-01
|
|||||||
> 知道那些舶来文字背后<br>
|
> 知道那些舶来文字背后<br>
|
||||||
> 悄悄地过往
|
> 悄悄地过往
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
14
content/literature/poem/Poem_by_me.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
title: My Poem
|
||||||
|
tags:
|
||||||
|
- 文学
|
||||||
|
- poem
|
||||||
|
date: 2023-05-01
|
||||||
|
---
|
||||||
|
|
||||||
|
* [2018](literature/poem/2018.md)
|
||||||
|
* [2022](literature/poem/2022.md)
|
||||||
|
* [2023](literature/poem/2023.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 212 KiB After Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 260 KiB After Width: | Height: | Size: 260 KiB |
|
Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 199 KiB |
|
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
|
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 918 KiB After Width: | Height: | Size: 918 KiB |
|
Before Width: | Height: | Size: 918 KiB After Width: | Height: | Size: 918 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
@ -65,7 +65,7 @@ date: 2023-05-01
|
|||||||
> <p style="text-align: right">——HOPICO 评价 「<a href="https://music.apple.com/cn/album/ubi/1507014129?i=1507014136">ubi</a>」</p>
|
> <p style="text-align: right">——HOPICO 评价 「<a href="https://music.apple.com/cn/album/ubi/1507014129?i=1507014136">ubi</a>」</p>
|
||||||
>
|
>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -134,7 +134,7 @@ date: 2023-05-01
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
> [!quote]
|
> [!quote]
|
||||||
> From 先知少女<br>
|
> From 先知少女<br>
|
||||||
@ -29,7 +29,7 @@ date: 2023-05-01
|
|||||||
> "I am too full of life to be half-loved"
|
> "I am too full of life to be half-loved"
|
||||||
>
|
>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ date: 2023-05-01
|
|||||||
> 只属于他。”<br>
|
> 只属于他。”<br>
|
||||||
> <a href="https://space.bilibili.com/2009238634"><p style="text-align:right">——祺白石</p></a>
|
> <a href="https://space.bilibili.com/2009238634"><p style="text-align:right">——祺白石</p></a>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ date: 2023-05-01
|
|||||||
> 标准是对不喜欢的人设定的,只有你才是例外和偏爱
|
> 标准是对不喜欢的人设定的,只有你才是例外和偏爱
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -46,7 +46,7 @@ date: 2023-05-01
|
|||||||
> <p style="text-align: right">——HOPICO 评价 「<a href="https://music.apple.com/cn/album/ubi/1507014129?i=1507014136">ubi</a>」</p>
|
> <p style="text-align: right">——HOPICO 评价 「<a href="https://music.apple.com/cn/album/ubi/1507014129?i=1507014136">ubi</a>」</p>
|
||||||
>
|
>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -58,7 +58,7 @@ date: 2023-05-01
|
|||||||
> 只属于他。”<br>
|
> 只属于他。”<br>
|
||||||
> <a href="https://space.bilibili.com/2009238634"><p style="text-align:right">——祺白石</p></a>
|
> <a href="https://space.bilibili.com/2009238634"><p style="text-align:right">——祺白石</p></a>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
18
content/literature/sentence/sentence_MOC.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
title: 句子
|
||||||
|
tags:
|
||||||
|
- 文学
|
||||||
|
- 摘抄
|
||||||
|
- MOC
|
||||||
|
date: 2023-05-01
|
||||||
|
---
|
||||||
|
|
||||||
|
* [🌸Love about](literature/sentence/love_about.md)
|
||||||
|
* [🌄Poem](literature/sentence/poem.md)
|
||||||
|
* [🧗🏻♂️Motivation](literature/sentence/motivation.md)
|
||||||
|
* [🧶Feeling](literature/sentence/feeling.md)
|
||||||
|
* [📽Movie](literature/sentence/movie.md)
|
||||||
|
* [🎹Novel](literature/sentence/novel.md)
|
||||||
|
* [🥐Comments](literature/sentence/comments.md)
|
||||||
|
* [🎺Music](literature/sentence/music.md)
|
||||||
|
* [🧙♂️Wisdom](literature/sentence/wisdom.md)
|
||||||
@ -1,14 +0,0 @@
|
|||||||
---
|
|
||||||
title: My Poem
|
|
||||||
tags:
|
|
||||||
- 文学
|
|
||||||
- poem
|
|
||||||
date: 2023-05-01
|
|
||||||
---
|
|
||||||
|
|
||||||
* [2018](文学/poem/2018.md)
|
|
||||||
* [2022](文学/poem/2022.md)
|
|
||||||
* [2023](文学/poem/2023.md)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
---
|
|
||||||
title: 句子
|
|
||||||
tags:
|
|
||||||
- 文学
|
|
||||||
- 摘抄
|
|
||||||
- MOC
|
|
||||||
date: 2023-05-01
|
|
||||||
---
|
|
||||||
|
|
||||||
* [🌸Love about](文学/句子/Love_about.md)
|
|
||||||
* [🌄Poem](文学/句子/Poem.md)
|
|
||||||
* [🧗🏻♂️Motivation](文学/句子/Motivation.md)
|
|
||||||
* [🧶Feeling](文学/句子/Feeling.md)
|
|
||||||
* [📽Movie](文学/句子/Movie.md)
|
|
||||||
* [🎹Novel](文学/句子/Novel.md)
|
|
||||||
* [🥐Comments](文学/句子/Comments.md)
|
|
||||||
* [🎺Music](文学/句子/Music.md)
|
|
||||||
* [🧙♂️Wisdom](文学/句子/Wisdom.md)
|
|
||||||