Awesome Open Source
Awesome Open Source

AMP

AMP is a simple AMP (Accelerated Mobile Pages) material design theme for Hugo.

Features

  • Simple AMP (Accelerated Mobile Pages) Material Design by ampproject
  • Google Analytics (optional)
  • Menu
  • Twitter, Facebook, GitHub, Google+, LinkedIn links (optional)
  • Tags (optional)
  • Categories (optional)

Installation

$ mkdir themes && cd themes
$ git clone https://github.com/pdevty/amp

Usage

$ hugo server -t amp 

Configuration

config.toml

theme="amp"
baseurl = "Your Site URL"
title = "Your Site Title"
copyright = "© 2016 Copyright Text"
canonifyurls = true

[params]
  description = "Your Site description for top page" #optional
  googleanalytics = "Your Tracking Id" # optional

# optional
[social]
  twitter = "Your Twitter Name"
  github = "Your Github Name"
  facebook = "Your facebook Name"
  gplus = "Your Google+ profile name"
  linkedin = "Your LinkedIn Name"
$ hugo new post/my-new-post.md

content/post/my-new-post.md

---
title: "my new post"
date: "2016-09-01"
tags: ["x", "y"]
categories: ["x", "y"]
menu:
  main:
    parent: tutorials
---

content here

Shortcodes

{{< img src="/img/img.png" width="320" height="50" >}}

{{< youtube lBTCB7yLs8YTTTTT >}}

{{< twitter 6387934905210019852222 >}}

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
html (11,273
theme (861
material (391
hugo (189
amp (28