Skip to content

Instantly share code, notes, and snippets.

@recumbent

recumbent/post-04.md Secret

Created Mar 19, 2020
Embed
What would you like to do?
A sample blog post with a code block
---
layout: post
title: Post with a code block
published: 2020-03-19
author: @recumbent
---

A final example

This is the last sample post, this time with code so we can show highlighting

#r "../_lib/Fornax.Core.dll"

open System.IO

let generate (ctx : SiteContents) (projectRoot: string) (page: string) =
    let inputPath = Path.Combine(projectRoot, page)
    File.ReadAllText inputPath

And we're all done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment