Skip to content
Website and blog of Simon Mayerhofer. Powered by GatsbyJS.
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
static
.babelrc.json Add json extension to babelrc Jul 7, 2019
.browserslistrc
.eslintignore
.eslintrc.json
.gitignore
.prettierignore
.prettierrc.json
.stylelintignore
.stylelintrc.json
LICENSE
README.md
gatsby-browser.js
gatsby-config.js
gatsby-node.js
package-lock.json
package.json

README.md

Logo

Simon Mayerhofer's website

Built with Gatsby

Netlify Status GitHub repo size GitHub Uptime Robot status Uptime Robot ratio (30 days)

Visit it at www.mayerhofer.it.


How to add a blog post

  1. Create a new folder in src/blog. The name of the folder is going to be the slug of the page.
  2. Create a file named index.md inside of this folder. Use markdown to format the post.

Possible frontmatter variables

To add some variables to the post like the date or a SEO description use the following format at the very top of the markdown file:

---
title: 'Title of the blog post'
date: '2015-05-28T22:40:32.169Z'
description: 'This is a custom description for SEO and Open Graph purposes, rather than the default generated excerpt. Simply add a description field to the frontmatter.'
featuredImage: './featured-image.jpg'
---

Content of the blog post goes here...

Add images to the blog post

If you want to add a image simply put it in the same folder like index.md file and link it in your blog post: ![Image Description](./image.jpg).

To add a featured image add the featuredImage variable to the frontmatter.

Note: the featured image should be 1024px wide. It's displayed with 1024px so save space by scaling it down if necessary.

You can’t perform that action at this time.