Initial Checkin of Beautiful Hugo Theme
Initial Checkin of Beautiful Hugo Theme
This commit is contained in:
parent
c962a38399
commit
ff7cd6fd91
42 changed files with 10950 additions and 0 deletions
17
exampleSite/content/post/2016-03-08-code-sample.md
Normal file
17
exampleSite/content/post/2016-03-08-code-sample.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: Code Sample
|
||||
description: 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 >}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue