Skip to content
/ amp Public

AMP (Accelerated Mobile Pages) Material Design Theme for Hugo

License

Notifications You must be signed in to change notification settings

pdevty/amp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

AMP (Accelerated Mobile Pages) Material Design Theme for Hugo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages