Merge pull request #760 from pateljannat/fix-templates

fix: web templates
This commit is contained in:
Jannat Patel
2024-04-04 15:41:14 +05:30
committed by GitHub
3 changed files with 40 additions and 34 deletions

View File

@@ -18,6 +18,7 @@
</head> </head>
<body> <body>
<div id="app"> <div id="app">
<div id="seo-content">
<h1>{{ meta.title }}</h1> <h1>{{ meta.title }}</h1>
<p> <p>
{{ meta.description }} {{ meta.description }}
@@ -35,11 +36,13 @@
</p> </p>
<a href="{{ meta.link }}">Know More</a> <a href="{{ meta.link }}">Know More</a>
</div> </div>
</div>
<div id="modals"></div> <div id="modals"></div>
<div id="popovers"></div> <div id="popovers"></div>
<script> <script>
window.csrf_token = '{{ csrf_token }}' window.csrf_token = '{{ csrf_token }}'
document.getElementById('seo-content').style.display = 'none';
</script> </script>
<script type="module" src="/src/main.js"></script> <script type="module" src="/src/main.js"></script>
</body> </body>

View File

@@ -17,7 +17,7 @@ app_license = "AGPL"
# app_include_js = "/assets/lms/js/lms.js" # app_include_js = "/assets/lms/js/lms.js"
# include js, css files in header of web template # include js, css files in header of web template
# web_include_css = "lms.bundle.css" web_include_css = "lms.bundle.css"
# web_include_css = "/assets/lms/css/lms.css" # web_include_css = "/assets/lms/css/lms.css"
web_include_js = ["website.bundle.js"] web_include_js = ["website.bundle.js"]

View File

@@ -15,13 +15,14 @@
<meta name="twitter:title" content="{{ meta.title }}" /> <meta name="twitter:title" content="{{ meta.title }}" />
<meta name="twitter:image" content="{{ meta.image }}" /> <meta name="twitter:image" content="{{ meta.image }}" />
<meta name="twitter:description" content="{{ meta.description }}" /> <meta name="twitter:description" content="{{ meta.description }}" />
<script type="module" crossorigin src="/assets/lms/frontend/assets/index-CY-7ZjXP.js"></script> <script type="module" crossorigin src="/assets/lms/frontend/assets/index-BVArU1VY.js"></script>
<link rel="modulepreload" crossorigin href="/assets/lms/frontend/assets/frappe-ui-h_6W7zSS.js"> <link rel="modulepreload" crossorigin href="/assets/lms/frontend/assets/frappe-ui-h_6W7zSS.js">
<link rel="stylesheet" crossorigin href="/assets/lms/frontend/assets/frappe-ui-DzKBfka9.css"> <link rel="stylesheet" crossorigin href="/assets/lms/frontend/assets/frappe-ui-DzKBfka9.css">
<link rel="stylesheet" crossorigin href="/assets/lms/frontend/assets/index-B5SBTRQU.css"> <link rel="stylesheet" crossorigin href="/assets/lms/frontend/assets/index-B5SBTRQU.css">
</head> </head>
<body> <body>
<div id="app"> <div id="app">
<div id="seo-content">
<h1>{{ meta.title }}</h1> <h1>{{ meta.title }}</h1>
<p> <p>
{{ meta.description }} {{ meta.description }}
@@ -39,11 +40,13 @@
</p> </p>
<a href="{{ meta.link }}">Know More</a> <a href="{{ meta.link }}">Know More</a>
</div> </div>
</div>
<div id="modals"></div> <div id="modals"></div>
<div id="popovers"></div> <div id="popovers"></div>
<script> <script>
window.csrf_token = '{{ csrf_token }}' window.csrf_token = '{{ csrf_token }}'
document.getElementById('seo-content').style.display = 'none';
</script> </script>
</body> </body>
</html> </html>