🧸 A fork of the Hugo Bear Blog theme with added AMP ⚡️ support. Best for mobile SEO 🤌
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.
- 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.
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-consciousyoutube-nocookie
domain.
See it in action, honey: https://therohitdas.github.io/hugo-bearblog-amp/ 🎯
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.
Please check out the hugo.toml included in the exampleSite of this theme.
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.
The contents of the index
-page may be changed by editing your content/_index.md
-file.
You can add a new page via running
hugo new my-new-page.md
You can add a new blog-post via running
hugo new blog/my-new-post.md
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.
Please use GitHub issues and Pull Requests.
Run the exampleSite
locally via
hugo server --source ./exampleSite --themesDir ../..
A huge thank you to Jan Raasch, for creating the original Hugo ʕ•ᴥ•ʔ Bear Blog. Your work inspired this AMPlified version!