잉여개발기 (SPDV) 2 лет назад
Родитель
Сommit
35cf1e059a
3 измененных файлов с 3 добавлено и 3 удалено
  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('/')
         split_path = flask.request.path.split('/')
         if len(split_path) > 1:
         if len(split_path) > 1:
-            split_path = split_path[1]
+            split_path = split_path[1:]
         else:
         else:
             split_path = 0
             split_path = 0
 
 

+ 1 - 1
views/ringo/index.html

@@ -27,7 +27,7 @@
             <meta name="title" content="{{imp[0]}} - {{imp[1][0]}}">
             <meta name="title" content="{{imp[0]}} - {{imp[1][0]}}">
         {% endif %}
         {% endif %}
         <meta name="keywords" content="{{imp[0]}}">
         <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}}">
             <meta name="description" content="{{data|cut_100}}">
         {% endif %}
         {% endif %}
         <meta name="viewport" content="width=device-width, initial-scale=1">
         <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]}}">
             <meta name="title" content="{{imp[0]}} - {{imp[1][0]}}">
         {% endif %}
         {% endif %}
         <meta name="keywords" content="{{imp[0]}}">
         <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}}">
             <meta name="description" content="{{data|cut_100}}">
         {% endif %}
         {% endif %}
         <meta name="viewport" content="width=device-width, initial-scale=1">
         <meta name="viewport" content="width=device-width, initial-scale=1">