TaoLer/view/taoler/index/public/base.html

78 lines
3.1 KiB
HTML
Raw Normal View History

2022-08-02 20:48:54 +08:00
<!--
* @Author: TaoLer <alipay_tao@qq.com>
* @Date: 2021-12-06 16:04:51
2022-08-16 15:21:08 +08:00
* @LastEditTime: 2022-08-10 16:50:38
2022-08-02 20:48:54 +08:00
* @LastEditors: TaoLer
* @Description: 搜索引擎SEO优化设置
2022-08-02 21:13:36 +08:00
* @FilePath: \github\TaoLer\view\taoler\index\public\base.html
2022-08-02 20:48:54 +08:00
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
-->
2020-01-01 13:17:19 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
2022-08-02 21:13:36 +08:00
<meta name="applicable-device" content="pc,mobile" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit" />
<meta name="force-rendering" content="webkit" />
<!-- seo -->
2020-01-01 13:17:19 +08:00
<title>{block name="title"}标题{/block}</title>
2022-08-02 21:13:36 +08:00
<meta name="keywords" content="{block name='keywords'}关键词{/block}" />
<meta name="description" content="{block name='description'}描述{/block}" />
<meta name="Copyright" content="{$sysInfo.webname}" />
2022-09-23 11:03:10 +08:00
{block name="ogtitle"}{/block}
2022-08-02 20:47:28 +08:00
{block name="ogdescription"} {/block}
2022-08-02 21:13:36 +08:00
<meta property="og:url" content="{$Request.domain}{$Request.url}" />
<meta property="og:site_name" content="{$sysInfo.webname}" />
2022-08-02 20:47:28 +08:00
{block name="ogimage"} {/block}
2022-08-02 21:13:36 +08:00
{block name="meta"}{/block}
2022-08-16 15:21:08 +08:00
<script src="/static/jquery-3.6.0.min.js"></script>
<script src="{$Request.domain}/static/layui/layui.js" charset="utf-8"></script>
2022-12-25 17:13:13 +08:00
<script src="/static/notify.js"></script>
2022-08-02 21:13:36 +08:00
<!-- 样式 -->
2022-08-02 20:47:28 +08:00
<link rel="canonical" href="{$Request.domain}{$Request.url}">
2022-11-18 10:31:44 +08:00
<link rel="stylesheet" href="https://at.alicdn.com/t/font_24081_qs69ykjbea.css" />
2022-08-02 20:47:28 +08:00
<link rel="stylesheet" href="{$Request.domain}/static/layui/css/layui.css" charset="utf-8">
<link rel="stylesheet" href="{$Request.domain}/static/res/css/global.css" charset="utf-8">
2021-05-24 15:05:30 +08:00
{block name="link"}{/block}
2022-09-23 11:03:10 +08:00
<!-- 5+ 引擎环境下自动隐藏无关元素,适配App -->
<style>
.html5plus .html5plus-hide {display: none}
{if strpos($Request.SERVER.HTTP_USER_AGENT,"Html5Plus") !== false} html body{margin-top: 1px;} {/if}
2020-05-29 18:17:46 +08:00
</style>
2022-08-02 20:47:28 +08:00
<script src="{$Request.domain}/static/share/plusShare.js" type="text/javascript" charset="utf-8"></script>
2020-01-01 13:17:19 +08:00
</head>
<body >
2022-09-23 11:03:10 +08:00
<script> if(navigator.userAgent.indexOf("Html5Plus") > -1) {document.body.classList.add("html5plus")} </script>
2020-06-02 17:41:56 +08:00
{if strpos($Request.SERVER.HTTP_USER_AGENT,"Html5Plus") === false}
2020-01-01 13:17:19 +08:00
{include file="public/header" /}
2020-06-02 17:41:56 +08:00
{/if}
2020-01-01 13:17:19 +08:00
{block name="column"}导航{/block}
{block name="content"}内容{/block}
{include file="public/footer" /}
2022-08-02 21:13:36 +08:00
{include file="public/js" /}
2021-05-20 11:52:40 +08:00
<script>
2022-12-25 17:13:13 +08:00
var element = layui.element;
var notify = layui.notify;
2022-08-02 21:13:36 +08:00
layui.cache.page = "{$jspage}";
2022-08-02 20:48:54 +08:00
layui.cache.user = {
2022-08-02 21:13:36 +08:00
username: "{$user.name ?? '游客'}"
2022-08-02 20:48:54 +08:00
,uid: "{$user.id ?? -1}"
,avatar: '/static/res/images/avatar/00.jpg'
2022-08-02 21:13:36 +08:00
,experience: "{$user.point ?? 0}"
2022-08-02 20:48:54 +08:00
,sex: "{$user.sex ? '女':'男'}"
};
layui.config({
version: "3.0.0"
2022-08-02 21:13:36 +08:00
,base: "{$Request.domain}/static/res/mods/"
2022-08-02 20:48:54 +08:00
}).extend({
2022-08-02 21:13:36 +08:00
fly: 'index'
2022-08-02 20:48:54 +08:00
}).use('fly');
2021-05-20 11:52:40 +08:00
</script>
2022-09-23 11:03:10 +08:00
{block name="script"}{/block}
2020-01-01 13:17:19 +08:00
</body>
</html>