AMP (Accelerated Mobile Pages) Material Design Theme for Hugo
HTML

README.md

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)
  • Pagination
  • 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"
paginate = 10
copyright = "© 2016 Copyright Text"
canonifyurls = true
googleAnalytics = "Your Tracking Id" # optional

# optional
[[menu.header]]
  name = "ABOUT"
  weight = 1
  url = "/about/"
[[menu.header]]
  name = "Tag"
  weight = 2
  url = "/tags/"
[[menu.header]]
  name = "Category"
  weight = 3
  url = "/categories/"

# 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"]
+++

content here

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