Add support for big title images
(e6cb0a4f54).
Several bugfixes including pygment_highlights.css dependency, Index page
alignment/containers, and Index page site title. Also renamed
description to subtitle, in line with the original theme.
17 lines
No EOL
440 B
Markdown
17 lines
No EOL
440 B
Markdown
---
|
|
title: Code Sample
|
|
subtitle: Using Pygments
|
|
date: 2016-03-08
|
|
---
|
|
|
|
The following is a code sample using the "highlight" shortcode provided in Hugo.
|
|
|
|
<!--more-->
|
|
|
|
{{< highlight javascript >}}
|
|
var num1, num2, sum
|
|
num1 = prompt("Enter first number")
|
|
num2 = prompt("Enter second number")
|
|
sum = parseInt(num1) + parseInt(num2) // "+" means "add"
|
|
alert("Sum = " + sum) // "+" means combine into a string
|
|
{{</ highlight >}} |