Răsfoiți Sursa

imp[2][12] 사양 변경

잉여개발기 (SPDV) 2 ani în urmă
părinte
comite
69555b5d0e
3 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 1 1
      route/tool/func.py
  2. 1 1
      views/ringo/index.html
  3. 1 1
      views/tenshi/index.html

+ 1 - 1
route/tool/func.py

@@ -1243,7 +1243,7 @@ def wiki_custom():
         
         split_path = flask.request.path.split('/')
         if len(split_path) > 1:
-            split_path = split_path[1]
+            split_path = split_path[1:]
         else:
             split_path = 0
 

+ 1 - 1
views/ringo/index.html

@@ -27,7 +27,7 @@
             <meta name="title" content="{{imp[0]}} - {{imp[1][0]}}">
         {% endif %}
         <meta name="keywords" content="{{imp[0]}}">
-        {% if imp[2][12] != 0 and imp[2][12] == 'w' %}
+        {% if imp[2][12] != 0 and imp[2][12][0] == 'w' %}
             <meta name="description" content="{{data|cut_100}}">
         {% endif %}
         <meta name="viewport" content="width=device-width, initial-scale=1">

+ 1 - 1
views/tenshi/index.html

@@ -25,7 +25,7 @@
             <meta name="title" content="{{imp[0]}} - {{imp[1][0]}}">
         {% endif %}
         <meta name="keywords" content="{{imp[0]}}">
-        {% if imp[2][12] != 0 and imp[2][12] == 'w' %}
+        {% if imp[2][12] != 0 and imp[2][12][0] == 'w' %}
             <meta name="description" content="{{data|cut_100}}">
         {% endif %}
         <meta name="viewport" content="width=device-width, initial-scale=1">