My goal is to find a way to adapt/co-opt Hugo templates into an .NET driven static site generator.
Right now the two main candidates are Statiq and Fornax
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"console_title_template": "{{ if .Root }}root @ {{.HostName}} {{ end }}{{ .Shell }} in {{ .Folder }}", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#575656", | |
"foreground": "#D6DEEB", |
<UserControl xmlns="https://github.com/avaloniaui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:ic="using:FluentIcons.Avalonia" | |
mc:Ignorable="d" d:DesignWidth="1400" d:DesignHeight="800" | |
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.Avalonia;assembly=LiveChartsCore.SkiaSharpView.Avalonia" | |
xmlns:vm="using:AidenDesktop.ViewModels" | |
Design.DataContext="{Binding Source={x:Static vm:ChartViewModel.DesignVM}}" | |
x:DataType="vm:ZoomViewModel" |
<UserControl xmlns="https://github.com/avaloniaui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" d:DesignWidth="1200" d:DesignHeight="850" | |
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia" | |
xmlns:vm="using:AvaloniaExample.ViewModels" | |
xmlns:avalonia="clr-namespace:LiveChartsCore.SkiaSharpView.Avalonia;assembly=LiveChartsCore.SkiaSharpView.Avalonia" | |
Design.DataContext="{Binding Source={x:Static vm:DoughnutViewModel.DesignVM}}" | |
x:DataType="vm:DoughnutViewModel" |
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, |
#r "nuget: CoordinateSharp" | |
open System | |
open CoordinateSharp | |
let find_Closest_TimeUnit addTimeFn rangeStart rangeEnd (c : Coordinate) azimuth adjustNegatively = | |
let el = EagerLoad(EagerLoadType.Celestial) | |
el.Extensions <- EagerLoad_Extensions(EagerLoad_ExtensionsType.Solar_Cycle) |
module ConfigFileModule | |
type Device = { | |
Name: string | |
} | |
type Coprocessor = { | |
AutomaticallyStartNetwork: bool | |
AutomaticallyReconnect: bool | |
MaximumRetryCount: int |
module BluetoothModule | |
open System | |
open Plugin.BLE | |
open Plugin.BLE.Abstractions.Contracts | |
open Plugin.BLE.Abstractions.EventArgs | |
type BLEConnectionResult = | |
| Success of unit | |
| Failure of string |
#r "nuget: CoordinateSharp" | |
open System | |
open CoordinateSharp | |
let calculateSolarNoon latitude longitude (date: DateTime) = | |
let celestialTimes = Celestial.CalculateCelestialTimes(latitude, longitude, date, 0.0) | |
celestialTimes.SolarNoon.Value.ToLocalTime() | |
// Helper function to convert degrees to radians |
namespace AzurefnSecret | |
open Microsoft.Azure.KeyVault | |
open Microsoft.IdentityModel.Clients.ActiveDirectory | |
module Example = | |
let getSecret (appKeyDescription:string) (appKeyValue:string) (secretUrl:string) = | |
async { | |
use keyVault = new KeyVaultClient(fun authority resource (_:string) -> | |
async { |