Output Using Some Liquid Functions

Site Date and Time: 2020-01-07 13:38:51 +0530

Site URL: https://sachingpta.gitlab.io

Convert to XML Schema (ISO 8601): 2020-01-07T13:38:51+05:30

Convert to RFC-822 Format : Tue, 07 Jan 2020 13:38:51 +0530

Convert to Short Date : 07 Jan 2020

Convert to Long Date : 07 January 2020

Title (SmartQuotes): Templating Functionality in Jekyll!!

String to Lowercase URL: the-config-yml-file

Whitespace to Space: a \n b

XML Escape: <name>XML DATA</name>

CGI Escape: foo%2Cbar%3Bbaz%3F

URL Escape: foo,%20bar%20%5Cbaz?

Bypassing Liquid Templating Engine

this {{ site.time }} will not be processed by liquid templating as put raw tags

Highlight code using highlighter (no line numbers)

Two types are present Rouge (default) and Pygments (over 100 languages), its (defined in _config.yml).

    def foo
        puts 'foo'
    end

Highlight code using highlighter (using line numbers)

1
2
3
4
5
6
7
	def show
  	 @widget = Widget(params[:id])
  	 respond_to do |format|
    	   format.html # show.html.erb
    	   format.json { render json: @widget }
	   end
	end