Skip to content

🧸 A fork of hugo-bearblog theme with AMP ⚡️ Best for mobile SEO 🤌

License

Notifications You must be signed in to change notification settings

therohitdas/hugo-bearblog-amp

Repository files navigation

Hugo ʕ•ᴥ•ʔ Bear Blog - AMPlified! ⚡️

🧸 A fork of the Hugo Bear Blog theme with added AMP ⚡️ support. Best for mobile SEO 🤌

Why AMP?

We all know mobile is where it's at these days! This theme takes the simplicity and speed of the original Bear Blog and gives it an extra boost with AMP, so you can capture all that sweet, sweet mobile SEO traffic.

Features

  • AMP Support: Get those lightning-fast page load times that Google loves, especially on mobile.
  • amp-img Integration: Images are automatically optimized for AMP with responsive sizing and layout.

Anti-Features Branch

Want to add some more spice to your AMPlified Bear Blog? Check out the anti-features branch:

  • amp-ad Support: Monetize your content with AdSense ads.
  • amp-analytics Integration: Track your traffic with Google Analytics.
  • amp-iframe for YouTube Embeds: Easily add YouTube videos to your pages while using the privacy-conscious youtube-nocookie domain.

Demo

See it in action, honey: https://therohitdas.github.io/hugo-bearblog-amp/ 🎯

Installation

If you already have a Hugo site on your machine, you can simply add this theme via

git submodule add https://github.com/therohitdas/hugo-bearblog-amp.git themes/hugo-bearblog-amp

Then, add theme='hugo-bearblog-amp' to the hugo.toml-file.

For more information, read the official setup guide of Hugo.

Adjust configuration / hugo.toml

Please check out the hugo.toml included in the exampleSite of this theme.

Content & structure

Starting fresh

If you are starting fresh, simply copy over the contents of the exampleSite-directory included in this theme to your source directory. That should give you a good idea about how things work, and then you can go on from there to make the site your own.

Adding / editing content

Index-Page

The contents of the index-page may be changed by editing your content/_index.md-file.

Page

You can add a new page via running

hugo new my-new-page.md

Blog-Post

You can add a new blog-post via running

hugo new blog/my-new-post.md

Adding your branding / colors / css

Add a custom_head.html-file to your layouts/partials-directory. In there you may add a <style>-tag, or you may add a <link>-tag referencing your own custom.css (in case you prefer to have a separate .css-file). Check out the style.html-file to find out which CSS-styles are applied by default.

Issues / Feedback / Contributing

Please use GitHub issues and Pull Requests.

Development

Run the exampleSite locally via

hugo server --source ./exampleSite --themesDir ../..

Special Thanks 🎁

A huge thank you to Jan Raasch, for creating the original Hugo ʕ•ᴥ•ʔ Bear Blog. Your work inspired this AMPlified version!

License

MIT License © Rohit Das

About

🧸 A fork of hugo-bearblog theme with AMP ⚡️ Best for mobile SEO 🤌

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages