Comments (1)
Hi there,
The cover: "/img/cover.jpg"
is an image in the theme, please take a look on this issue (resolved) How to⦠insert image in my post?. Follow this solution, you should add images in theme
.
For me, this is not good way, because if we want to change the theme, we have to copy all images to new theme. I choose another way is upload images some where I can control and get the image url, then insert it to article.
The way to add image to article is via amp-img shortcodes
{{< amp-img width="width-value" height="height-value" layout="responsive" src="image-url" alt="image alt">}}
Replace value for width-value
, height-value
and image-url
by your image, the layout="responsive"
will display image full 100% width on mobile, take a look on AMP Layout & media queries.
Hope this help!
from hugo-lamp.
Related Issues (20)
- Robots.txt Enabling HOT 3
- please can you help me with relative path (fonts and images not found) HOT 3
- changing color [$green: #6aac0e] to $: #21abcd in variables.scss but does change color in theme HOT 6
- Stylesheet not serving HOT 4
- Fix icon for social networks HOT 1
- 1
- rss icon not showing up HOT 4
- Social media enhancements HOT 2
- Side bar menu icon cannot be loaded. HOT 3
- Can't seem to get resolution on #27 HOT 2
- Can't find markdown syntax demo markdown source HOT 1
- Yarn install fails on windows HOT 1
- Refactor Layout with Grid
- Chinese support?? HOT 10
- add emoji and a custom css HOT 4
- Add syntax highlighting HOT 4
- The mandatory text inside tag 'head > style[amp-boilerplate]' is missing or incorrect. HOT 2
- Error on build HOT 1
- Support Dark Mode Toggle
- Posts disappeared with update?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-lamp.