diff --git a/controllers/web.py b/controllers/web.py index dd1b78d..f3a5779 100644 --- a/controllers/web.py +++ b/controllers/web.py @@ -40,6 +40,10 @@ def custom_static_js(filename): @web.route('//') def web_index(web_name, theme): ctx = {'web_name': web_name, 'key': '关键词', 'description': '描述'} + lsg = storage_service() + js0_password = lsg.getItem('JS0_PASSWORD') + ctx['pwd'] = js0_password + ctx['path'] = request.path try: return render_template(f'cms/{theme}/homeContent.html', ctx=ctx) except Exception as e: diff --git a/templates/cms/mxpro/homeContent.html b/templates/cms/mxpro/homeContent.html index 60aff0c..3b5e18e 100644 --- a/templates/cms/mxpro/homeContent.html +++ b/templates/cms/mxpro/homeContent.html @@ -54,17 +54,9 @@ @@ -77,23 +69,23 @@ - - - - - - - - - - - - - - - - - +
  • + + +
  • +
  • + +
  • +
  • + 公告 +
  • @@ -134,15 +126,15 @@
      • -
      • +
        • -
        • +
          • -
          • +
          • @@ -236,7 +228,7 @@
              -
            • +
            • @@ -261,7 +253,7 @@
                -
              • +
              • @@ -301,7 +293,7 @@ -

                Copyright © 2008-2022 技术支持:我爱电影网 

                +

                Copyright © 2008-2023 技术支持:{{ctx.web_name}}