Blog Post Title From First Header
Due to a plugin called jekyll-titles-from-headings
which is supported by GitHub Pages by default. The above header (in the markdown file) will be automatically used as the pages title.
If the file does not start with a header, then the post title will be derived from the filename.
This is a sample blog post. You can talk about all sorts of fun things here.
This is a header
Some T-SQL Code
SELECT This, [Is], A, Code, Block -- Using SSMS style syntax highlighting
, REVERSE('abc')
FROM dbo.SomeTable s
CROSS JOIN dbo.OtherTable o;
Some PowerShell Code
Write-Host "This is a powershell Code block";
# There are many other languages you can use, but the style has to be loaded first
ForEach ($thing in $things) {
Write-Output "It highlights it using the GitHub style"
}
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Hello World!");
app.Run();
/// <summary>
/// Main class of the project
/// </summary>
class Program
{
/// <summary>
/// Main entry point of the program
/// </summary>
/// <param name="args">Command line args</param>
static void Main(string[] args)
{
//Do stuff
}
}