AMP (Accelerated Mobile Pages) Material Design Theme for Hugo
HTML
Switch branches/tags
Nothing to show
Clone or download
Latest commit c28e332 Jun 10, 2017
Permalink
Failed to load latest commit information.
archetypes update README Sep 1, 2016
images update version Jun 10, 2017
layouts add site title to header Jun 10, 2017
static/img update version Jun 10, 2017
LICENSE.md first commit Sep 1, 2016
README.md add site title to header Jun 10, 2017
theme.toml update version Jun 10, 2017

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)
  • 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