Skip to content

Commit

Permalink
update make.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ybasviel committed Nov 28, 2023
1 parent 2ca8d3f commit 3598f5e
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion blog/2021-04-01/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<meta property="og:title" content="春休み見た映画とアニメの話">
<!--置換用タグ2-->
<meta property="og:description" content="個人的な適当な記録です">
<meta property="og:image" content="https://lnln.dev/title.png">
<meta property="og:image" content="https://lnln.dev/img/title.png">

<title>春休み見た映画とアニメの話</title>
</head>
Expand Down
2 changes: 1 addition & 1 deletion blog/2021-12-18/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<meta property="og:title" content="このblogのリンクとかアーカイブとかの管理の話">
<!--置換用タグ2-->
<meta property="og:description" content="個人的な適当な記録です">
<meta property="og:image" content="https://lnln.dev/title.png">
<meta property="og:image" content="https://lnln.dev/img/title.png">

<title>このblogのリンクとかアーカイブとかの管理の話</title>
</head>
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta property="og:url" content="https://lnln.dev">
<meta property="og:title" content="りんりん">
<meta property="og:description" content="趣味の工作の記録">
<meta property="og:image" content="https://lnln.dev/title.png">
<meta property="og:image" content="https://lnln.dev/img/title.png">

<title>りんりん</title>
<link href="/css/lnln.css" rel="stylesheet">
Expand Down
18 changes: 18 additions & 0 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import glob
import re
import os
from shutil import copytree, copyfile

NUMBER_OF_LATEST_BLOG = 3

Expand Down Expand Up @@ -70,6 +72,22 @@
with open(url,mode="w") as file:
file.write(onew)

# mkdir dist
if not os.path.exists("./dist"):
os.mkdir("./dist")


for category in ["css", "works", "blog"]:
files = glob.glob(category)
for url in files:
copytree(url,"./dist/" + url)

copyfile("index.html","./dist/index.html")
copyfile("404.html","./dist/404.html")
copyfile("CNAME","./dist/CNAME")



print("Done!!")


1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
glob
2 changes: 1 addition & 1 deletion templates/blog-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<meta property="og:title" content="りんりん"> <!--記事のtitleをかいて makepy補完-->
<!--置換用タグ2-->
<meta property="og:description" content="個人的な適当な記録です">
<meta property="og:image" content="https://lnln.dev/title.png">
<meta property="og:image" content="https://lnln.dev/img/title.png">

<title>タイトル</title>
</head>
Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<meta property="og:title" content="りんりん"> <!--記事のtitleをかいて-->

<meta property="og:description" content="趣味の工作の記録">
<meta property="og:image" content="https://lnln.dev/title.png">
<meta property="og:image" content="https://lnln.dev/img/title.png">

<title>タイトル</title>
</head>
Expand Down

0 comments on commit 3598f5e

Please sign in to comment.