M2vH

The GitHub Website of Marco M. von Hagen

View on GitHub My GitHub profile Follow me on Mastodon

18 December 2019

My layout post!

by M2vH

Hello World!

A new <h3> title

The quick brown Fox jumps over the Lorem Ipsum warum auch immer.

tags: test - helloWorld - m2vh
17 December 2019

Passed Azure Fundamentals Certification

by M2vH

After attending `Microsoft Azure Training Day` on Dec, 3rd in Cologne I had the opportunity to register for the certification for free. Now I'm a liitle bit proud to announce that I passed the exam. A special `Thank You` goes to Microsoft for offering this event and the Instructors

How to do it

Follow the Learning Path and register for an Exam.

Additional check some of the free Trainings on PluralSight like this one here.

tags: azure - certificate - pages - m2vh
16 December 2019

Serve GitHub Jekyll locally

by M2vH

Guess, we want to debug a GitHub website locally. Therefore I installed Jekyll for Windows.

About How to install Ruby on Windows is topic of another post.

Add a Gemfile to repository

We need some Ruby gems locally. We add a Gemfile with the following content:

# file: ./Gemfile

source "https://rubygems.org"

gem "github-pages", group: :jekyll_plugins

Then we run bundle install.

Now we receive a bunch of gems, including the build-in themes for GitHub pages.

Add a branch to repository

Because I want to check everything locally before pushing to origin/master I created a seperate branch serveLocally.

Command to build the local GitHub page

bundle exec jekyll serve

I can reach the GitHub page locally at localhost:4000.

Whats next

Next step is switching back to master branch, merge the serveLocally and push to GitHub.

Check your Activity log on Github. It should be found like so:

https://github.com/<YourAccount>/<YourAccount>.github.io/deployments
tags: jekyll - github - pages - m2vh
12 December 2019

My first post!

by M2vH

This is the first post to check the functionality of Jekyll blog mechanism.

I hope I will understand it ;-)

Hello World!

The title of this post is set using page.title as shown here

## {{ page.title }}

Writing about code id pretty easy.
Highlight some code or a complete codeblock like the following:

highlight inline code like so: `code` 

Use lexer inside a codeblock to get the code coloured output

```csharp
// your code goes here
```

will look this way:

// lexer: csharp  <- add comment

using System;
namespace M2vH{
    class Me{
        string name = "Marco M. von Hagen";
    }
}

Example of lexers.html.XmlLexer and XAML

<!-- lexer: xml -->
<Page
    x:Class="Prototype_UWP_CS.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Prototype_UWP_CS"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <Grid>

    </Grid>
</Page>

tags: test - helloWorld - m2vh