WebSite X5Help Center

 
Dima Kornevich
Dima Kornevich
User

Как подключить технологию AMP  ru

Автор: Dima Kornevich
Просмотрено 1577, Подписчики 1, Размещенный 0  

Здравствуйте

Я хочу подключить к своему сайту технологию AMP (Google) Сайт: https://www.ampproject.org/ru/

КАК ПОДКЛЮЧИТЬ ДАННУЮ ТЕХНОЛОГИЮ:?

1. Дайте пример кода или описание как его правильно внедрить в программу/ страницу

Описание как создать AMP страницу:   https://www.ampproject.org/ru/docs/tutorials/create/basic_markup

2. Я прочитал но не могу понять куда и как вставлять код как указывают в инструкции

3. Я прикрепил вам в файле тестовую страницу для просмотра html

КОД ДЛЯ СОЗДАНИЯ AMP (HTML)

!doctype html><htmlamplang="en"><head><metacharset="utf-8"><title>Hello, AMPstitle><linkrel="canonical"href="http://example.ampproject.org/article-metadata.html"><metaname="viewport"content="width=device-width,minimum-scale=1,initial-scale=1"><scripttype="application/ld+json">{"@context":"http://schema.org","@type":"NewsArticle","headline":"Open-source framework for publishing content","datePublished":"2015-10-07T12:02:41Z","image":["logo.jpg"]}script><styleamp-boilerplate>body{-webkit-animation:-amp-start8ssteps(1,end)0s1normalboth;-moz-animation:-amp-start8ssteps(1,end)0s1normalboth;-ms-animation:-amp-start8ssteps(1,end)0s1normalboth;animation:-amp-start8ssteps(1,end)0s1normalboth}@-webkit-keyframes-amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes-amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes-amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes-amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes-amp-start{from{visibility:hidden}to{visibility:visible}}style><noscript><styleamp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}style>noscript><scriptasyncsrc="https://cdn.ampproject.org/v0.js">script>head><body><h1>Welcome to the mobile webh1>body>html>

Прошу помочь с подключением данной технологии

Размещено
1 Ответы
Incomedia
Riccardo P.
Incomedia

Hello Andrey,

i am sorry but i can not help you for the custom code. Wait more information by another user of this community.

Thank you.

***** Google Translation:

Привет, Андрей,

я сожалею, но я не могу помочь вам для пользовательского кода.Подождите больше информации от другого пользователя этого сообщества.

Спасибо.

Читать больше
Размещено От Riccardo P.