Skip to content

Commit 82cff19

Browse files
committed
feature: SEO, share meta태그들 업데이트
1 parent 6d27695 commit 82cff19

File tree

10 files changed

+173
-15
lines changed

10 files changed

+173
-15
lines changed

nginx/dummy/temp-meta.html

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<!------------------------------------------------------------------------------>
2+
<!-- META / SEO -->
3+
<!------------------------------------------------------------------------------>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>velog dashboard</title>
7+
<meta
8+
name="description"
9+
content="Dashboard page for velog. It is third party for https://velog.io that developer's blog website"
10+
/>
11+
<meta
12+
name="keywords"
13+
content="velog, velog dashboard, dashboard, developer blog, blog dashboard"
14+
/>
15+
<meta name="robots" content="index, follow" />
16+
<meta name="author" content="https://github.com/nuung" />
17+
18+
19+
20+
<!------------------------------------------------------------------------------>
21+
<!-- Open Graph 프로토콜 -->
22+
<!------------------------------------------------------------------------------>
23+
<meta property="og:title" content="velog dashboard" />
24+
<meta property="og:description" content="Dashboard page for velog. It is third party for https://velog.io that developer's blog website" />
25+
<meta property="og:image" content="https://velog-dashboard.kro.kr/imgs/velog-dashboard-thumnail.png" />
26+
<meta property="og:url" content="https://velog-dashboard.kro.kr/" />
27+
<meta property="og:type" content="website" />
28+
29+
30+
31+
<!------------------------------------------------------------------------------>
32+
<!-- CDN / common thrid party -->
33+
<!------------------------------------------------------------------------------>
34+
<link rel="preconnect" href="https://fonts.googleapis.com" />
35+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
36+
<link
37+
href="https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700&family=Nunito+Sans:ital,wght@1,400;1,900&display=swap"
38+
rel="stylesheet"
39+
/>
40+
<!-- Channel Talk -->
41+
<script>
42+
(function () {
43+
var w = window;
44+
if (w.ChannelIO) {
45+
return w.console.error("ChannelIO script included twice.");
46+
}
47+
var ch = function () {
48+
ch.c(arguments);
49+
};
50+
ch.q = [];
51+
ch.c = function (args) {
52+
ch.q.push(args);
53+
};
54+
w.ChannelIO = ch;
55+
function l() {
56+
if (w.ChannelIOInitialized) {
57+
return;
58+
}
59+
w.ChannelIOInitialized = true;
60+
var s = document.createElement("script");
61+
s.type = "text/javascript";
62+
s.async = true;
63+
s.src = "https://cdn.channel.io/plugin/ch-plugin-web.js";
64+
var x = document.getElementsByTagName("script")[0];
65+
if (x.parentNode) {
66+
x.parentNode.insertBefore(s, x);
67+
}
68+
}
69+
if (document.readyState === "complete") {
70+
l();
71+
} else {
72+
w.addEventListener("DOMContentLoaded", l);
73+
w.addEventListener("load", l);
74+
}
75+
})();
76+
77+
ChannelIO("boot", {
78+
pluginKey: "9bf7ef35-5a3a-410a-b69a-67ef1fd9ed6b",
79+
});
80+
</script>
81+
<!-- Sweetalert2 -->
82+
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
83+
<!-- GA / Google tag (gtag.js) -->
84+
<script
85+
async
86+
src="https://www.googletagmanager.com/gtag/js?id=G-8G3N74JV82"
87+
></script>
88+
<script>
89+
window.dataLayer = window.dataLayer || [];
90+
function gtag() {
91+
dataLayer.push(arguments);
92+
}
93+
gtag("js", new Date());
94+
95+
gtag("config", "G-8G3N74JV82");
96+
</script>

nginx/pages/dashboard/index.html

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,28 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Dashboard</title>
6+
<title>velog dashboard</title>
7+
<meta
8+
name="description"
9+
content="Dashboard page for velog. It is third party for https://velog.io that developer's blog website"
10+
/>
11+
<meta
12+
name="keywords"
13+
content="velog, velog dashboard, dashboard, developer blog, blog dashboard"
14+
/>
15+
<meta name="robots" content="index, follow" />
16+
<meta name="author" content="https://github.com/nuung" />
17+
<meta property="og:title" content="velog dashboard" />
18+
<meta
19+
property="og:description"
20+
content="Dashboard page for velog. It is third party for https://velog.io that developer's blog website"
21+
/>
22+
<meta
23+
property="og:image"
24+
content="https://velog-dashboard.kro.kr/imgs/velog-dashboard-thumnail.png"
25+
/>
26+
<meta property="og:url" content="https://velog-dashboard.kro.kr/" />
27+
<meta property="og:type" content="website" />
728
<link rel="preconnect" href="https://fonts.googleapis.com" />
829
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
930
<link

nginx/pages/globaldashboard/index.css

Whitespace-only changes.

nginx/pages/globaldashboard/index.html

Whitespace-only changes.

nginx/pages/globaldashboard/index.js

Whitespace-only changes.
69.1 KB
Loading

nginx/pages/index.html

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,28 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Login</title>
6+
<title>velog dashboard</title>
7+
<meta
8+
name="description"
9+
content="Dashboard page for velog. It is third party for https://velog.io that developer's blog website"
10+
/>
11+
<meta
12+
name="keywords"
13+
content="velog, velog dashboard, dashboard, developer blog, blog dashboard"
14+
/>
15+
<meta name="robots" content="index, follow" />
16+
<meta name="author" content="https://github.com/nuung" />
17+
<meta property="og:title" content="velog dashboard" />
18+
<meta
19+
property="og:description"
20+
content="Dashboard page for velog. It is third party for https://velog.io that developer's blog website"
21+
/>
22+
<meta
23+
property="og:image"
24+
content="https://velog-dashboard.kro.kr/imgs/velog-dashboard-thumnail.png"
25+
/>
26+
<meta property="og:url" content="https://velog-dashboard.kro.kr/" />
27+
<meta property="og:type" content="website" />
728
<link rel="preconnect" href="https://fonts.googleapis.com" />
829
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
930
<link

nginx/pages/index/index.html

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,28 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Login</title>
6+
<title>velog dashboard</title>
7+
<meta
8+
name="description"
9+
content="Dashboard page for velog. It is third party for https://velog.io that developer's blog website"
10+
/>
11+
<meta
12+
name="keywords"
13+
content="velog, velog dashboard, dashboard, developer blog, blog dashboard"
14+
/>
15+
<meta name="robots" content="index, follow" />
16+
<meta name="author" content="https://github.com/nuung" />
17+
<meta property="og:title" content="velog dashboard" />
18+
<meta
19+
property="og:description"
20+
content="Dashboard page for velog. It is third party for https://velog.io that developer's blog website"
21+
/>
22+
<meta
23+
property="og:image"
24+
content="https://velog-dashboard.kro.kr/imgs/velog-dashboard-thumnail.png"
25+
/>
26+
<meta property="og:url" content="https://velog-dashboard.kro.kr/" />
27+
<meta property="og:type" content="website" />
728
<link rel="preconnect" href="https://fonts.googleapis.com" />
829
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
930
<link

worker/main.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import asyncio
22
import os
3-
import sys
43

54
from dotenv import load_dotenv
6-
from logger import LOGGER as log
5+
from logger import MAIN_LOGGER as log
76
from pymongo.results import BulkWriteResult
87
from src.db import Repository
98
from src.models import PostStats, Stats, UserInfo
109
from src.modules.velog_apis import fetch_posts, fetch_stats
1110

1211
load_dotenv()
13-
DB_URL = os.getenv("DB_URL", sys.argv[0])
14-
PERIOD_MIN = int(os.getenv("PERIOD_MIN", sys.argv[1]))
12+
DB_URL = os.getenv("DB_URL")
13+
PERIOD_MIN = int(os.getenv("PERIOD_MIN"))
1514

1615
if not DB_URL:
1716
raise Exception("There is no DB_URL value in env value")
@@ -87,13 +86,13 @@ async def main():
8786
continue
8887

8988

90-
# async def run_periodically():
91-
# while True:
92-
# await main() # 메인 함수를 실행
93-
# await asyncio.sleep(600) # 10분(600초) 동안 대기
89+
async def run_periodically():
90+
while True:
91+
await main() # 메인 함수를 실행
92+
await asyncio.sleep(180) # 10분(600초) 동안 대기
9493

9594

96-
# # 이벤트 루프를 사용하여 run_periodically 함수 실행
97-
# asyncio.run(run_periodically())
95+
# 이벤트 루프를 사용하여 run_periodically 함수 실행
96+
asyncio.run(run_periodically())
9897

99-
asyncio.run(main())
98+
# asyncio.run(main())

worker/src/modules/velog_apis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22

33
from aiohttp_retry import ExponentialRetry, RetryClient
4-
from logger import LOGGER as log
4+
from logger import MAIN_LOGGER as log
55

66

77
def get_header(access_token: str, refresh_token: str) -> dict:

0 commit comments

Comments
 (0)