about summary refs log tree commit diff homepage
path: root/_layout
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-16 14:19:41 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-16 14:19:41 +0900
commit602652b13cb1d2a737d094558fbef4cb8e2a1110 (patch)
tree84fade966d187f267e1633c31b923697bb768bfa /_layout
parent058269e94ead1c6b567fb18f8809ade12f4f92cc (diff)
downloadsite-602652b13cb1d2a737d094558fbef4cb8e2a1110.tar.gz
Proofread and update metadata
Diffstat (limited to '_layout')
-rw-r--r--_layout/footer.html2
-rw-r--r--_layout/hair.html2
-rw-r--r--_layout/head.html6
3 files changed, 7 insertions, 3 deletions
diff --git a/_layout/footer.html b/_layout/footer.html
index c8c3838..5ba0bd1 100644
--- a/_layout/footer.html
+++ b/_layout/footer.html
@@ -4,7 +4,7 @@
   terms</a></span><br>
 
   {{isnotpage /tag/*}}Last modified: {{author_date}};  <span class=nowrap>View
-  <a href=https://trong.loang.net/~cnx/site/tree/file/{{fd_rpath}}>page
+  <a href=https://trong.loang.net/~cnx/site/tree/{{fd_rpath}}>page
   source</a></span><br>{{end}}
 
   Part of <a href=https://fediring.net>Fediring</a>; <span class=nowrap>Visit
diff --git a/_layout/hair.html b/_layout/hair.html
index dc79374..ffebb85 100644
--- a/_layout/hair.html
+++ b/_layout/hair.html
@@ -2,8 +2,6 @@
 <html lang=en>
 <meta charset=utf-8>
 <meta name=viewport content='width=device-width, initial-scale=1'>
-{{isnotempty rss}}<meta name=description content='{{rss_description}}'>{{end}}
-
 <link rel='alternate' type='application/rss+xml' title='{{website_title}}'
       href='/{{ispage /tag/*}}tag/{{fd_tag}}/{{end}}{{rss_file}}.xml'>
 <link rel='icon' href='/assets/favicon.png'>
diff --git a/_layout/head.html b/_layout/head.html
index d6b043e..70779f7 100644
--- a/_layout/head.html
+++ b/_layout/head.html
@@ -1,4 +1,10 @@
 {{insert hair.html}}
+{{isnotempty rss}}<meta name=description content='{{rss_description}}'>{{end}}
+{{isdef title}}<meta property=og:title content='{{title}}'>{{end}}
+<meta property=og:site_name content={{website_title}}>
+<meta property=og:type content=article>
+<meta property=og:url content={{fd_full_url}}>
+<meta property=og:image content={{website_url}}/assets/favicon.png>
 {{if hasmath}}<link rel=stylesheet href=/css/katex.min.css>{{end}}
 {{isdef title}}<title>{{title}} - McSinyx</title>{{end}}
 <body>