All Projects → holmesian → Typecho Amp

holmesian / Typecho Amp

Licence: mpl-2.0
A typecho plugin for Google AMP / Baidu MIP.

Projects that are alternatives of or similar to Typecho Amp

Milligram
A minimalist CSS framework.
Stars: ✭ 9,568 (+5430.64%)
Mutual labels:  amp
Amp Wp
Enable AMP on your WordPress site, the WordPress way.
Stars: ✭ 1,706 (+886.13%)
Mutual labels:  amp
Fantasy
一款极简Typecho 博客主题
Stars: ✭ 145 (-16.18%)
Mutual labels:  typecho
Ampify
Convert your HTML to Google AMP (Accelerated Mobile Pages)
Stars: ✭ 104 (-39.88%)
Mutual labels:  amp
Jstoxml
JavaScript object to XML converter (useful for RSS, podcasts, GPX, AMP, etc)
Stars: ✭ 127 (-26.59%)
Mutual labels:  amp
Comment2wechat
Typecho 插件——新评论微信通知
Stars: ✭ 136 (-21.39%)
Mutual labels:  typecho
Typecho Theme Icarus
Hexo 主题 Icarus (by Ruipeng Zhang) 的 Typecho 移植版本
Stars: ✭ 95 (-45.09%)
Mutual labels:  typecho
Accelerated Mobile Pages
Automatically add Accelerated Mobile Pages (AMP Project) functionality on your WordPress.
Stars: ✭ 167 (-3.47%)
Mutual labels:  amp
Fantasy
🍨 一个优美梦幻的动漫风 Typecho 博客主题
Stars: ✭ 128 (-26.01%)
Mutual labels:  typecho
Material
New Material —— A Material Design Theme for Typecho
Stars: ✭ 144 (-16.76%)
Mutual labels:  typecho
Laravel Amp
Package that helps you set up AMP (Accelerated Mobile Pages) using Laravel
Stars: ✭ 106 (-38.73%)
Mutual labels:  amp
Shortlinks
Typecho外链转内链插件,支持正文和评论者链接
Stars: ✭ 127 (-26.59%)
Mutual labels:  typecho
Typecho Theme Minimalism
🖥📱一款极简主义的typecho主题
Stars: ✭ 137 (-20.81%)
Mutual labels:  typecho
Amp Pwa Demo
A simple, dependency-free blog that uses a Progressive Web App (PWA) to show Accellerated Mobile Pages (AMP).
Stars: ✭ 104 (-39.88%)
Mutual labels:  amp
Telegramapiserver
Fast, simple, async php telegram api server: MadelineProto + Amp HTTP Server
Stars: ✭ 152 (-12.14%)
Mutual labels:  amp
Leaf Ui
🍃 Leaf-UI: A react component library built using styled-components
Stars: ✭ 98 (-43.35%)
Mutual labels:  amp
Oblog
An Auto Rendering 🔽 Blogging System Based on MarkDown & Vue.js | 自动渲染装载 MarkDown 内容的博客系统
Stars: ✭ 133 (-23.12%)
Mutual labels:  typecho
Amp Module
AMP Module for Nuxt
Stars: ✭ 171 (-1.16%)
Mutual labels:  amp
Echo
一套基于layui框架的Typecho主题Echo
Stars: ✭ 163 (-5.78%)
Mutual labels:  typecho
Bigfa
⚡Typecho简约精致的白色两栏主题。A Typecho Theme
Stars: ✭ 137 (-20.81%)
Mutual labels:  typecho

AMP for Typecho

A Typecho plugin for Google AMP / Baidu MIP

总览

这是款一键生成符合 Google AMP/Baidu MIP 标准页面的插件,开启后可以进一步优化谷歌和百度的搜索结果。

最初本插件的功能是直接通过暴力修改模板实现的,结果发现有不少 TX 需要这个功能,所以就整理了一下做成插件,方便有需要的 TX 使用,随着不断的改进变成了现在的样子。

如果在使用过程中遇到问题,还请反馈。

点击下载最新版

2020.09.23 修改缓存表名,修改hash字段属性,修正AMPpage中的变量名称。

2020.08.21 修复私密和隐藏文章跳过的问题。

2020.08.01 修复新发表文章不能自动提交的问题,删除部分不在使用的变量。 <- 已安装旧版本的 请先禁用插件! 在更新文件后再启用

2020.06.30 增加版本检查,修改sitemap分页数量。

2020.06.07 去除已下线的熊掌号相关功能,将自动提交和批量提交功能修改为 提交到快速收录接口和普通收录接口。 版本更新为0.7.6。


使用

安装

建议环境 PHP 5.6+

将文件夹重命名为 AMP,拷贝至 usr/plugins/ 下,然后在后台->插件处安装。

升级

注意:已安装旧版本的 请先禁用插件! 在更新文件后再启用。

非 MarkDown 编辑器书写的文章由于存在诸多不可预见的情况,生成的 AMP/MIP 页面可能不能完全符合标准,如果有遇到请及时反馈。


使用说明

  • 在插件后台设置默认 LOGO 以及选择是否开启 SiteMap、AMP 首页、自动提交到熊掌号等功能(除自动提交到熊掌号外的功能都默认开启)

  • 百度站长获取接口调用地址、熊掌号 APPID/TOKEN,填写到插件设置中(使用提交 URL功能时需要)。

  • AMP/MIP 的页面缓存默认关闭,可在插件设置页面修改缓存时间。修改文章会自动更新页面缓存,重建缓存开关在插件设置页,设置缓存时间的下方。

  • AMP/MIP 页面的模板已独立至 templates目录中,有个性化需要的 TX 可以自己进一步调整。

注意:

  • 服务器 PHP 环境未启用 cURL 扩展时,后台批量提交至百度的功能不可用。
  • 非 HTTPS 站点AMP-LIST 控件 的 src 参数限制,AMP 首页无法换页,建议关闭生成 AMP 首页功能。

启用重写功能后:

AMP 首页为: http(s)://xxx/ampindex/

AMP 页面为: http(s)://xxx/amp/slug/

MIP 页面为: http(s)://xxx/mip/slug/


功能

  • 生成符合 Google AMP/Baidu MIP 标准的 AMP/MIP 页面,并与标准页面建立关联。

  • 生成 AMP/MIP 的 SiteMap,及所有 URL 的纯文本列表(支持分页)。

  • 生成 AMP 版的首页。

  • 后台批量提交 URL 到百度站长平台,可选手动或自动。

  • MIP 页面完美支持百度熊掌号页面标准,新发表文章自动提交到熊掌号

  • (新增)用户决定是否只允许百度和谷歌的爬虫访问 MIP/AMP 页面。

  • (新增)插件版本判断。

  • (新增)自定义 MIP/AMP 页面样式。

  • (新增)缓存功能,缓存访问过的 MIP/AMP 页面,可显著提高性能(默认关闭)。

  • 自动解析自定义文章路径。


支持

如果本插件帮到了你,不妨给点赞赏鼓励一下作者 ^-^


效果预览

MIP内容页:

MIP内容页

AMP内容页:

AMP内容页

AMP首页:

AMP首页

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].