Jad's blog

Variables scope in Golang & the compilation process

As I started this blog, I thought that I should really understand Hugo for my personal interest and for some upcoming projects, and while digging further, I found myself delving into Go and I started consuming the content of random sites, YouTube videos of Go introductions and plenty of Gopher conferences but and started some spaghetti code and built my own Go RSS to Hugo Markdown, which I’m planning to release some time soon, in order to build a news aggregator based on Hugo! Well, what was not the goal but to test chemistry with the language before delving further.

Then I decided to take it step up and read a book, particularly after watching a couple of videos for Dave Cheney where he explains the philosophy behind things in Go, which resonated well with me. There are many books on Go but the one which luckily was available to me and then is highly recommended by the community, is The Go Programming Language by Alan Donovan and the great Brian Kernighan.

Content Security Policy (CSP) with Hugo & CodeIT theme

Blog setup

I’m fairly new to Hugo but getting used to it and loving it isn’t that hard with generous documentation and active community.

What is Content Security Policy (CSP)

CSP1 is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement to distribution of malware. CSP can be implemented through your HTTP response header or meta tag, and you can use the default-src as fallback to source reference or go further in detailing source types like (images, media, fonts js, css etc..) and origin servers. Content Security Policy Level 2 is a Candidate Recommendation and Level 3 is a working draft

baseof.html