diff options
author | Huy Nguyen <huyb.1991@gmail.com> | 2019-03-14 16:51:52 +0300 |
---|---|---|
committer | Huy Nguyen <huyb.1991@gmail.com> | 2019-03-14 16:51:52 +0300 |
commit | 1a7fdba99656223a1266502c941784736c721adc (patch) | |
tree | 8d675b22b38f865a312778f154ae8ad31fb1cddf /README.md | |
parent | 3e442a5b3e935766d3eb6ad8256e32797d849de0 (diff) |
Split document for Guides
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -17,27 +17,6 @@ $ rm -rf hugo-lamp/.git *For more information read the official [setup guide](https://gohugo.io/overview/installing/) of Hugo.* -## Guide -### Add image to article (content) -This is an AMP page, to add image, you have to use [amp-img shortcodes](https://github.com/huyb1991/hugo-lamp/blob/master/layouts/shortcodes/amp-img.html), the syntax is: -``` -{{< amp-img width="width-value" height="height-value" layout="responsive" src="image-url" alt="image alt" >}} -``` -Replace `width-value`, `height-value`, `image alt` and `image-url` by your image. - -A note: Hugo is static-site-generator, to add image to your site, please follow this solution [[SOlved] How to… insert image in my post?](https://discourse.gohugo.io/t/solved-how-to-insert-image-in-my-post/1473). - -### Content config for SEO -In Front Matter section for each post, you should add `title` and `description` for SEO, example: -```toml ---- -title: "Getting Started with AMP" -description: "Getting started with AMP. Implement these key steps to get up and running with AMP" ---- -``` -The `title` is the H1 tag on HTML page, and `<title>` in head section. -The `description` is the meta tag for description `<meta name="description" content="">` in head section. - ## Contributing If you found a bug or got an idea for a new feature feel free to add a new [issues](https://github.com/huyb1991/hugo-lamp/issues). |