Skip to content

FerretCode-Freelancing/techrocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

techrocks

A CLI tool for generating beautiful blog posts based on markdown documents

example generated techrocks document


Image Source

usage

./techrocks -markdown post.md -output output.html -template template.html

It may also be used with these default values:

  • input=post.md
  • template=template.html
  • output=output.html
  • port=8080

Additionally, you can also watch and live reload the generated blog file by appending the -watch and -serve flags. The default URL is located at http://localhost:8080

Usage like:

./techrocks

template format

techrocks will replace {{.Content}} with the generated markdown HTML

<!DOCTYPE html>
<html>
    <head>
        <title>Markdown Rendered</title>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    </head>
    <body>
        {{ .Content }}
    </body>
</html>

building

go build -o techrocks ./main.go

About

A CLI tool for generating beautiful blog posts based on markdown documents

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages