uniapp展示在h5端的seo关键词与摘要

首先引入html,并修改h5配置。

html内容为:

<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <title>中国好故事</title>
        <meta name="keywords" content="中国好故事,中国好故事数据库,好故事,习近平的故事,外宣故事" />
        <meta name="description" content="中国好故事是旨在“讲好中国故事,传播好中国声音”的数据库,是展现真实、立体、全面中国形象的国家级平台。" />
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">    
        <script>
            document.addEventListener('DOMContentLoaded', function() {
                document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
            })
        </script>
        <link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
        <style type="text/css">
        </style>
    </head>
    <body>
     <!--   <noscript>
            <strong>Please enable JavaScript to continue.</strong>
        </noscript> -->
        <div id="app">
        
        </div>
        <!-- built files will be auto injected -->
    </body>
</html>

 

摘要和关键词自行添加

 

uniapp展示在h5端的seo关键词与摘要