fix: changed course and batch meta description
This commit is contained in:
@@ -23,17 +23,6 @@
|
|||||||
<p>
|
<p>
|
||||||
{{ meta.description }}
|
{{ meta.description }}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
|
||||||
The content here is just for seo purposes. The actual content will be loaded in a few seconds.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Seo checks if a page has more than 300 words. So, here are some more words to make it more than 300 words.
|
|
||||||
Page descriptions are the HTML meta tags that provide a brief summary of a web page.
|
|
||||||
Search engines use meta descriptions to help identify the page's topic - they don't use them to rank the page, but they do use them to determine whether or not to display the page in search results.
|
|
||||||
Meta descriptions are important because they're often the first thing people see when they're deciding which search result to click on.
|
|
||||||
They're also important because they can help improve your click-through rate (CTR) from search results.
|
|
||||||
A good meta description can entice people to click on your page instead of someone else's.
|
|
||||||
</p>
|
|
||||||
<a href="{{ meta.link }}">Know More</a>
|
<a href="{{ meta.link }}">Know More</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -44,13 +44,13 @@ def get_meta(app_path):
|
|||||||
course = frappe.db.get_value(
|
course = frappe.db.get_value(
|
||||||
"LMS Course",
|
"LMS Course",
|
||||||
course_name,
|
course_name,
|
||||||
["title", "image", "short_introduction", "tags"],
|
["title", "image", "description", "tags"],
|
||||||
as_dict=True,
|
as_dict=True,
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
"title": course.title,
|
"title": course.title,
|
||||||
"image": course.image,
|
"image": course.image,
|
||||||
"description": course.short_introduction,
|
"description": course.description,
|
||||||
"keywords": course.tags,
|
"keywords": course.tags,
|
||||||
"link": f"/courses/{course_name}",
|
"link": f"/courses/{course_name}",
|
||||||
}
|
}
|
||||||
@@ -68,13 +68,13 @@ def get_meta(app_path):
|
|||||||
batch = frappe.db.get_value(
|
batch = frappe.db.get_value(
|
||||||
"LMS Batch",
|
"LMS Batch",
|
||||||
batch_name,
|
batch_name,
|
||||||
["title", "meta_image", "description", "category", "medium"],
|
["title", "meta_image", "batch_details", "category", "medium"],
|
||||||
as_dict=True,
|
as_dict=True,
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
"title": batch.title,
|
"title": batch.title,
|
||||||
"image": batch.meta_image,
|
"image": batch.meta_image,
|
||||||
"description": batch.description,
|
"description": batch.batch_details,
|
||||||
"keywords": f"{batch.category} {batch.medium}",
|
"keywords": f"{batch.category} {batch.medium}",
|
||||||
"link": f"/batches/details/{batch_name}",
|
"link": f"/batches/details/{batch_name}",
|
||||||
}
|
}
|
||||||
@@ -92,13 +92,13 @@ def get_meta(app_path):
|
|||||||
batch = frappe.db.get_value(
|
batch = frappe.db.get_value(
|
||||||
"LMS Batch",
|
"LMS Batch",
|
||||||
batch_name,
|
batch_name,
|
||||||
["title", "meta_image", "description", "category", "medium"],
|
["title", "meta_image", "batch_details", "category", "medium"],
|
||||||
as_dict=True,
|
as_dict=True,
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
"title": batch.title,
|
"title": batch.title,
|
||||||
"image": batch.meta_image,
|
"image": batch.meta_image,
|
||||||
"description": batch.description,
|
"description": batch.batch_details,
|
||||||
"keywords": f"{batch.category} {batch.medium}",
|
"keywords": f"{batch.category} {batch.medium}",
|
||||||
"link": f"/batches/{batch_name}",
|
"link": f"/batches/{batch_name}",
|
||||||
}
|
}
|
||||||
@@ -117,13 +117,13 @@ def get_meta(app_path):
|
|||||||
job_opening = frappe.db.get_value(
|
job_opening = frappe.db.get_value(
|
||||||
"Job Opportunity",
|
"Job Opportunity",
|
||||||
job_opening_name,
|
job_opening_name,
|
||||||
["job_title", "company_logo", "company_name"],
|
["job_title", "company_logo", "description"],
|
||||||
as_dict=True,
|
as_dict=True,
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
"title": job_opening.job_title,
|
"title": job_opening.job_title,
|
||||||
"image": job_opening.company_logo,
|
"image": job_opening.company_logo,
|
||||||
"description": job_opening.company_name,
|
"description": job_opening.description,
|
||||||
"keywords": "Job Openings, Jobs, Vacancies",
|
"keywords": "Job Openings, Jobs, Vacancies",
|
||||||
"link": f"/job-openings/{job_opening_name}",
|
"link": f"/job-openings/{job_opening_name}",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user