Restful web services

Restful web services are your web services that are implemented using HTTP and the principles of REST, which means that they have a base URI. They support a data exchange format like XML or JSON and possibly others. And they support a set of HTTP operations like GET and POST.

Demo of shortcodes

Shortcodes in Hugo allow us to achieve common tasks. For example, to link to another post or page in our site, we will use the “ref” shortcode. An example of embedding a GitHub gist:

Syntax highlighting code

I learned about how to post syntax highlighted code in a post. Hugo has two options when it comes to syntax highlighting - server side and client side. This is an example of client side highlighting. You can read all about it here. # A line of Python print('Hello world') // A simple program in Golang package main import ( "fmt" ) func main() { fmt.Println("Hello world") }

Hugo Live Reload

Hugo has a live reload feature which means, the moment I save this page, not only is my site content regenerated, but the browser also reloads the site. This means, I can see my new post without needing to refresh the site myself.

hello world

Hello World! This is the first blog post in my brand new blog which was built by an Amit Saha’s article in Linux Voice. I will be using this blog as a place to post my notes on everyday things I learn. I hope you will like it.