Commit f9bfb9f0 authored by Rohan Sakhale's avatar Rohan Sakhale 💻

AMP support

parent 7b458229
Pipeline #78769402 passed with stage
in 2 minutes and 41 seconds
......@@ -63,6 +63,22 @@ default_category: uncategorized
category_map:
tag_map:
# hexo-generator-amp
# The following settings is the quick start options.
generator_amp:
templateDir: amp-template
assetDistDir: amp-dist
logo:
path: /images/rohan-sakhale.jpg
width: 600
height: 60
substituteTitleImage:
path: /images/rohan-sakhale.jpg
width: 1024
height: 800
warningLog: false # To display warning, please set true.
search:
path: search.xml
field: post
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -21,7 +21,9 @@
{%- if theme.favicon.ms_browserconfig %}
<meta name="msapplication-config" content="{{ url_for(theme.favicon.ms_browserconfig) }}">
{%- endif %}
{% if is_post() && config.generator_amp %}
<link rel="amphtml" href="./amp/index.html">
{% endif %}
{%- if theme.disable_baidu_transformation %}
<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment