feat: meta tags

This commit is contained in:
Jannat Patel
2024-03-28 16:20:53 +05:30
parent e6d3819092
commit 3525e4c90b
264 changed files with 103 additions and 96669 deletions

View File

@@ -1,17 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Frappe UI App</title>
</head>
<body>
<div id="app"></div>
<div id="modals"></div>
<div id="popovers"></div>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Frappe UI App</title>
<meta name="title" content="{{ meta.title }}" />
<meta name="image" content="{{ meta.image }}" />
<meta name="description" content="{{ meta.description }}" />
<meta name="keywords" content="{{ meta.keywords }}" />
<meta property="og:title" content="{{ meta.title }}" />
<meta property="og:image" content="{{ meta.image }}" />
<meta property="og:description" content="{{ meta.description }}" />
<meta name="twitter:title" content="{{ meta.title }}" />
<meta name="twitter:image" content="{{ meta.image }}" />
<meta name="twitter:description" content="{{ meta.description }}" />
</head>
<body>
<div id="app"></div>
<div id="modals"></div>
<div id="popovers"></div>
<script> window.csrf_token = '{{ csrf_token }}'; </script>
<script type="module" src="/src/main.js"></script>
</body>
<script>
window.csrf_token = '{{ csrf_token }}'
</script>
<script type="module" src="/src/main.js"></script>
</body>
</html>

View File

@@ -6,7 +6,7 @@
"dev": "vite",
"serve": "vite preview",
"build": "vite build --base=/assets/lms/frontend/ && yarn copy-html-entry",
"copy-html-entry": "cp ../lms/public/frontend/index.html ../lms/www/learning.html"
"copy-html-entry": "cp ../lms/public/frontend/index.html ../lms/www/lms.html"
},
"dependencies": {
"@editorjs/checklist": "^1.6.0",

View File

@@ -55,7 +55,7 @@ const communications = createListResource({
cache: ['batch', props.batch],
})
</script>
<style scoped>
<style>
.prose-sm p {
margin: 0 0 0.5rem;
}

View File

@@ -61,7 +61,7 @@ const props = defineProps({
},
})
</script>
<style scoped>
<style>
.short-introduction {
display: -webkit-box;
-webkit-line-clamp: 2;

View File

@@ -127,7 +127,7 @@ const props = defineProps({
},
})
</script>
<style scoped>
<style>
.course-image {
height: 168px;
width: 100%;

View File

@@ -158,7 +158,7 @@ const getCurrentChapter = () => {
return currentChapter.value
}
</script>
<style scoped>
<style>
.outline-lesson:has(.router-link-active) {
background-color: theme('colors.gray.100');
}

View File

@@ -3,6 +3,7 @@
<img
:src="job.company_logo"
class="w-12 h-12 rounded-lg object-contain mr-4"
:alt="job.company_name"
/>
<div>
<div class="text-xl font-semibold mb-2">

View File

@@ -136,7 +136,7 @@ const breadcrumbs = computed(() => {
return items
})
</script>
<style scoped>
<style>
.batch-description p {
margin-bottom: 1rem;
line-height: 1.7;

View File

@@ -144,7 +144,7 @@ const pageMeta = computed(() => {
updateDocumentTitle(pageMeta)
</script>
<style scoped>
<style>
.course-description p {
margin-bottom: 1rem;
line-height: 1.7;

View File

@@ -411,7 +411,7 @@ const breadcrumbs = computed(() => {
return crumbs
})
</script>
<style scoped>
<style>
.embed-tool__caption {
display: none;
}

View File

@@ -56,6 +56,7 @@
<img
:src="job.data.company_logo"
class="w-16 h-16 rounded-lg object-contain mr-4"
:alt="job.data.company_name"
/>
<div>
<div class="text-2xl font-semibold mb-2">

View File

@@ -339,7 +339,7 @@ const allowInstructorContent = () => {
return false
}
</script>
<style scoped>
<style>
.avatar-group {
display: inline-flex;
align-items: center;

View File

@@ -6,7 +6,7 @@
<Breadcrumbs class="h-7" :items="breadcrumbs" />
</header>
<div v-if="chartDetails.data" class="p-5">
<div class="grid grid-cols-2 lg:gridc-cols-5 gap-4">
<div class="grid grid-cols-2 lg:grid-cols-5 gap-4">
<div class="flex items-center shadow py-2 px-3 rounded-md">
<div class="p-2 rounded-md bg-gray-100 mr-3">
<BookOpen class="w-18 h-18 stroke-1.5 text-gray-700" />

View File

@@ -2,11 +2,13 @@ import { createRouter, createWebHistory } from 'vue-router'
import { usersStore } from './stores/user'
import { sessionStore } from './stores/session'
let defaultRoute = '/courses'
const routes = [
{
path: '/',
name: 'Home',
component: () => import('@/pages/Home.vue'),
redirect: {
name: 'Courses',
},
},
{
path: '/courses',
@@ -97,7 +99,7 @@ const routes = [
]
let router = createRouter({
history: createWebHistory('/learning'),
history: createWebHistory('/lms'),
routes,
})