Congelato 1.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Congelato --version 1.3.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Congelato --version 1.3.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Congelato&version=1.3.0
nuke :add-package Congelato --version 1.3.0

Congelato

Razor based static site generator

Parameters

-i input directory

-o output directory

-c site config

-a comma seperated list of assemblies you want to add to the build

Example usage

congelato -i _stevenpearsdev -o stevenpearsdev -c _tshapeddev.yml -a newfeature.dll

Site structure

Congelato tries to run similar to other site generators so that it's easy to transfer.

So from the input directory it expects a structure like this

inputDir
  _posts
  _pages
  _layouts

all other files and directories are copied as-is

Site Config

The config file also tries to adhere to rules set by other generators. There is a data property for adhoc information too

url: tshaped.dev
title: tshaped.dev
description: >
  The geeky ramblings of Steven Pears.<br/>
  Mostly .NET and Alexa based.
data:
  steve: pears

Layouts

Layouts can be nested - everything after the yaml block at the top is the .NET template, so using statements go after the yaml, not at the very top.

As a base layout or page - the next piece of content in the chain is always rendered by the statement @await Content()

An example layout:

---
layout: default
---
<%
using AddedAssemblyNamespace;
%>
<div class="container">
    <div class="row">
      <div class="col-lg-8 col-md-10 mx-auto">
        @await Content()
      </div>
    </div>
  </div>

  <hr>

Posts

posts are a similar thing with most popular config options applied, they also have the data element for other information. If posts have a markdown extension they will be converted to HTML for you

example post

---
title: Introducing Alexa.NET - Screencasts
date: 2019-12-30T12:22:00
author: Steven Pears
layout: post
permalink: /2019/12/30/introducing-alexa-net-screencasts
tags:
  - alexa
  - video
  - 'c#'
---
So I got a request on [Twitter](https://twitter.com) from a user ...
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.4.0 1,200 8/25/2020
1.3.0 553 7/29/2020
1.2.3 486 5/10/2020
1.2.2 435 5/10/2020
1.1.3 506 5/10/2020
1.0.12 476 3/7/2020
1.0.11 540 3/6/2020
1.0.10 475 3/6/2020
1.0.9 450 3/6/2020
1.0.8 481 3/6/2020
1.0.7 516 3/4/2020
1.0.5 498 3/1/2020
1.0.4 463 3/1/2020
1.0.3 486 3/1/2020
1.0.2 478 3/1/2020
1.0.1 476 3/1/2020
1.0.0 491 3/1/2020

Added indexed property to page model - hidden from post list if set to false