HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.36k stars 2.91k forks source link

Provision to add google adsense #245

Closed sachin147 closed 7 years ago

sachin147 commented 7 years ago

Thanks for a lovely theme gcushen. I have a request, it would be great if there can be some sort of provision to add google adsense code to hugo website with the help of config.toml. Thanks.

gcushen commented 7 years ago

Glad you like the theme :) Advertising doesn't really fit the philosophy of the theme. However, you can add advert code by inserting the HTML into your content files or by using Hugo's inheritance principle - copy one of Academic's layouts and paste it in a similar path from your root e.g. your_website_root/layouts/partials/footer_container.html and edit your copy to include your advert HTML code as desired.

sachin147 commented 7 years ago

Thanks for the response. I will try doing it.

HRomie commented 6 years ago

@gcushen I am using your theme and i love it. Thank you

It would be good if we could also target the empty left/right are of the posts when viewed on the destktop, without requiring significant changes to the html/css files.

How would you approach this?