Forráskód Böngészése

캐노니컬 태그 추가 (스킨)

https://github.com/openNAMU/openNAMU/issues/1696
잉여개발기 2 hónapja
szülő
commit
ef9889958f
3 módosított fájl, 5 hozzáadás és 1 törlés
  1. 3 0
      route/tool/func.py
  2. 1 0
      views/ringo/index.html
  3. 1 1
      views/ringo/info.json

+ 3 - 0
route/tool/func.py

@@ -107,6 +107,9 @@ async def render_template(name, data, sub, menu, other = []):
     other_set["data"] = data
     other_set["data"] = data
     other_set["sub"] = [sub] + other
     other_set["sub"] = [sub] + other
     other_set["menu"] = menu
     other_set["menu"] = menu
+    other_set["option"] = {
+        "path" : flask.request.path
+    }
 
 
     return await python_to_golang("post", other_set = other_set, path = "template")
     return await python_to_golang("post", other_set = other_set, path = "template")
 
 

+ 1 - 0
views/ringo/index.html

@@ -30,6 +30,7 @@
         <meta name="keywords" content="{{title}}">
         <meta name="keywords" content="{{title}}">
         <meta name="description" content="{{description_doc}}">
         <meta name="description" content="{{description_doc}}">
         <meta name="viewport" content="width=device-width, initial-scale=1">
         <meta name="viewport" content="width=device-width, initial-scale=1">
+        <link rel="canonical" href="{{user_path}}" />
     </head>
     </head>
     <body>
     <body>
         <header id="main">
         <header id="main">

+ 1 - 1
views/ringo/info.json

@@ -1,5 +1,5 @@
 {
 {
     "name" : "Ringo",
     "name" : "Ringo",
-    "skin_ver" : "v1.2.0",
+    "skin_ver" : "v1.2.1",
     "require_ver" : "20240426"
     "require_ver" : "20240426"
 }
 }