Skip to content

Commit c1120f1

Browse files
authored
Merge pull request #251 from dynamsoft-docs/preview
seo description bug fixed
2 parents 706b3d4 + a784878 commit c1120f1

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

_layouts/default-layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
{%- if seo_group != '' -%}
2222
{%- assign seo_slug = page.url | split: '/' | last | replace: '.html', '' -%}
23-
{%- if seo_slug == '' -%}
23+
{%- if seo_slug == '' or seo_slug == 'license' -%}
2424
{%- assign seo_slug = 'index' -%}
2525
{%- endif -%}
2626

@@ -33,7 +33,7 @@
3333
{%- endif -%}
3434
{%- endif -%}
3535
<title>{{ seo_title }}</title>
36-
<meta name="description" content="{{ seo_description }}">
36+
<meta name="description" content="{{ seo_description | escape_once }}">
3737
<meta name="keywords" content="{{ page.keywords }}" />
3838
{%- include head.html -%}
3939
{%- if site.useVersionTreeV2 -%}

_layouts/home-page.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<html lang="en-US">
33
<head>
44
<title>{{ page.title }}</title>
5+
<meta name="description" content="{{ page.description | escape_once }}">
6+
<meta name="keywords" content="{{ page.keywords }}" />
57
<meta charset="UTF-8">
68
<meta http-equiv="X-UA-Compatible" content="IE=edge">
79
<meta name="viewport" content="width=device-width, initial-scale=1">

_layouts/search-layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>{% if site.firstLevelUrl contains 'web-twain' %}Dynamic Web TWAIN SDK Documentation Search{% else %}{{ page.title }}{% endif %}</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8-
<meta name="description" content="{% if site.firstLevelUrl contains 'web-twain' %}Dynamic Web TWAIN SDK Documentation Search{% else %}{{ page.description }}{% endif %}">
8+
<meta name="description" content="{% if site.firstLevelUrl contains 'web-twain' %}Dynamic Web TWAIN SDK Documentation Search{% else %}{{ page.description | escape_once }}{% endif %}">
99
<meta name="keywords" content="{{page.keywords}}">
1010

1111
{%- assign docFullPath = site.docFullPath -%}

0 commit comments

Comments
 (0)