All Projects → tea3 → Hexo Generator Amp

tea3 / Hexo Generator Amp

Licence: mit
AMP ⚡ HTML (Accelerated Mobile Pages) generator for Hexo.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hexo Generator Amp

picidaejs
🐦Picidae is a document generator which has gentle experience.
Stars: ✭ 24 (-81.4%)
Mutual labels:  static-site-generator, hexo
Post Scheduler
Schedule posts & content updates for static websites (Jekyll, Hugo, Gatsby, Phenomic etc)
Stars: ✭ 184 (+42.64%)
Mutual labels:  static-site-generator, hexo
Hexo Theme Anodyne
🌋 Original Bright Theme for Hexo
Stars: ✭ 140 (+8.53%)
Mutual labels:  static-site-generator, hexo
Awesome Docs With Static Site Generators
Pointers to all templates and implementations based on static site generators
Stars: ✭ 44 (-65.89%)
Mutual labels:  static-site-generator, hexo
Hexo Theme Clean Blog
Hexo implementation of Clean Blog http://blackrockdigital.github.io/startbootstrap-clean-blog/index.html
Stars: ✭ 362 (+180.62%)
Mutual labels:  static-site-generator, hexo
TechFusionFM
Static site for tech podcast built using Hexo.io with deployment script, XML escaper and iTunes rank tracking Telegram bot.
Stars: ✭ 20 (-84.5%)
Mutual labels:  static-site-generator, hexo
Vanilla Back To Top
Simple and smooth Back To Top button
Stars: ✭ 179 (+38.76%)
Mutual labels:  static-site-generator, hexo
Easy Hexo
🤘 Build your own website with Hexo, the easy way. | 轻松使用 Hexo 建站。
Stars: ✭ 314 (+143.41%)
Mutual labels:  static-site-generator, hexo
Hexo
A fast, simple & powerful blog framework, powered by Node.js.
Stars: ✭ 33,885 (+26167.44%)
Mutual labels:  static-site-generator, hexo
Meilidu Hexo
MeiliDu, beatuiful reading theme for Hexo.
Stars: ✭ 78 (-39.53%)
Mutual labels:  static-site-generator, hexo
Dropcaster
Simple Podcast Publishing with Dropbox
Stars: ✭ 112 (-13.18%)
Mutual labels:  static-site-generator
Moul
The minimalist publishing tool for photographers
Stars: ✭ 113 (-12.4%)
Mutual labels:  static-site-generator
Hexo Theme Bamboo
Hexo博客主题,国内访问https://yuang01.gitee.io
Stars: ✭ 121 (-6.2%)
Mutual labels:  hexo
Nest
Nest Pelican Template
Stars: ✭ 123 (-4.65%)
Mutual labels:  static-site-generator
Kulfon
👹 🐸 JavaScript static site generator with Org Mode & Markdown support (α) 💥
Stars: ✭ 112 (-13.18%)
Mutual labels:  static-site-generator
Generator Hexo Theme
Generate a hexo theme: ejs, pug, swig, nunjucks | Moved to https://tcrowe.commons.host/contact
Stars: ✭ 119 (-7.75%)
Mutual labels:  hexo
Next Cms Ghost
Publish flaring fast blogs with Next.js and Ghost CMS
Stars: ✭ 107 (-17.05%)
Mutual labels:  static-site-generator
Hexo Theme Xups
hexo主题xups
Stars: ✭ 111 (-13.95%)
Mutual labels:  hexo
Scaffold Static
Scaffolding utility for vanilla-js
Stars: ✭ 111 (-13.95%)
Mutual labels:  static-site-generator
Pelican
Static site generator that supports Markdown and reST syntax. Powered by Python.
Stars: ✭ 10,699 (+8193.8%)
Mutual labels:  static-site-generator

hexo-generator-amp

AMP ⚡ HTML (Accelerated Mobile Pages Project HTML) generator for Hexo.

DEMO: HTML | AMP HTML

Screenshot

Overview

You able to generate an AMP site with almost little effort.

Installation

$ npm install hexo-generator-amp --save

If you occur ERROR Plugin load failed: error or DTraceProviderBindings.node error , please see below.

To publish AMP HTML, please refer to the following simple procedure.

1. Edit your theme

You must add AMP HTML's link to non-AMP.

Accelerated Mobile Pages Project - Prepare Your Page for Discovery and Distribution

First, add the following in your template files. For example , Please edit themes/(your-theme)/layout/_partial/head.ejs as following . For example , in hexo-theme-landscape you will edit themes/landscape/layout/_partial/head.ejs.

<% if (is_post() && config.generator_amp){ %>
  <link rel="amphtml" href="<%= config.url %><%= config.root %><%= page.path %>/amp/index.html">
<% } %>

Please refer follow as about how to use this plugin with based other templates.

To change path of AMP HTML , please see wiki.

2. Set the quick option

Please set the following options. Please edit _config.yml.

# hexo-generator-amp
# The following settings is the quick start options.

generator_amp:
  templateDir:  amp-template
  assetDistDir: amp-dist
  logo:
    path:   sample/sample-logo.png
    width:  600
    height: 60
  substituteTitleImage:
    path:   sample/sample-substituteTitleImage.png
    width:  1024
    height: 800
  warningLog: false   # To display warning, please set true.

To set the detail option , please see wiki.

3. Run server

Starts a local server. By default, this is at http://localhost:4000/.

$ hexo clean
$ hexo server

This plugin generated the AMP HTML. Please open http://localhost:4000/your-posts-parmalink/amp/ in browser.

If occured plugin error , Please refer #17 and other issue .

4. Validate AMP HTML

This plugin generated the AMP HTML. Output file path is ./your-posts-parmalink/amp/. Next , you should validate AMP HTML with the following procedure.

  1. Please open your AMP HTML page in Chrome DevTools.
  2. The Chrome DevTools console can check for AMP HTML. please Append http://localhost:4000/your-posts-parmalink/amp/#development=1 to the URL. Please see below for the details.

Accelerated Mobile Pages Project - Validate AMP Pages

How to validate AMP - my blog (Japanese)

To validate automatically from commandline , please see wiki - Automatically Validate AMP HTML option.

5. Deploy

If no AMP HTML Validation error is displayed , verification is complete . Please deploy at the end.

$ hexo clean
$ hexo server
$ hexo generate
$ hexo deploy -g

When the deployment is completed , Please check the AMP report

Wiki

Please see the wiki for detailed usage.

License

MIT

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].