AMP页面

如果之前已经用过模板暴力修改法的TX(尤其是已经被Google收录了的),请做如下修改:

post.php增加跳转

    <?php if (isset($_GET['amp'])){;
        header('HTTP/1.1 301 Moved Permanently');
        Header("Location: https://holmesian.org/amp/{$this->request->slug}");
        exit();
        ?>
    ...

header.php中删除下列内容

    <?php if ($this->is('post')): ?>
    <link rel="amphtml" href="<?php $this->permalink() ?>?amp=1">
    <?php endif; ?>

Github:https://github.com/holmesian/Typecho-AMP
作者:https://holmesian.org/AMP-for-Typecho
本地:Typecho-AMP-master.zip

:D 少女祈祷中...