YML is a document (plain text file) that is used generally as configuration file, just like json file would be used. It is meant to be more human readable and have minimal syntax. Refer this Quickstart guide on YML.
You can write strings without " " and I wanted to write a multiline string, but faced a problem.
I tried this SO, first problem I faced is - in yml corrent indentation is important else you get errors like:...
How to create a new Post in a Hugo blog
Method 1 hugo new posts/<name-of-post-file.md> Method 2 Directly create a MD file under content/posts and add frontmatter manually / copy from a existing md file.
Method 3 Learnt from a hugo theme(PaperMod) documentation here
Create new post md file based on a archetype.
Before doing this, add the archetype md file at archetypes/post.md
hugo new --kind post <name> # name must have .md or
hugo new -k post <name> # use -k instead of --kind But above creates new md file directly in content whereas I want it in content/posts/ (I could not see md files appear as posts in this theme until the md files are in content/posts/)....
How to add image to a Hugo blogpost
Adding image in body of your post in Markdown in Hugo.
You can add the image file say image.png to static folder, and then reference it in your md file which is at content/posts/ just like following:
![alt-text](/image.png) Reference: page
Also see: Add image in markdown file in VSCode using plugin Paste Image
Create Blog With Hugo
Hugo is one of the most popular open-source static site generators. Static sites can be created with Markdown files using Hugo.
This article outlines the steps to generate a blog(static site) using Hugo and hosting it on GitHub.
Installing Hugo Hugo is available as an executable binary for all platforms, so no ‘installation’ is required as such. Just download and add its location to your Path to access it from anywhere in your terminal....
Creating a Blog with Next.js and Markdown - Part 2
This is in continuation to Part 1 What is great about the way we did this (using Next.js) is - we can now export this as a static website. The static website can be deployed anywhere now!
Update build script - use next export Notice in package.json, there is a command called build. This is build script.
npm run build npm run build will build for production, but there is one more command called next export that will export you site as a static website....