GitXplorerGitXplorer
z

jtoh

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
d33f2bbc79a685cde7b057581b53b9fe714eae92

corrected youtube shortcode

zzanshin committed 2 years ago
Unverified
81c7a9059de829f86ccb9f890c9d3f8798f0e251

updated code comments

zzanshin committed 2 years ago
Unverified
b5fede2d1faa5c296b64e844e4245d6403825218

README output example updated

zzanshin committed 2 years ago
Unverified
c709ddafa4df50bb32a7741ae8c12eb5a0ee8460

updated README

zzanshin committed 2 years ago
Unverified
915e3e7b16d900631349a027f160f48b0635aabc

Added image parsing and updated comments

zzanshin committed 2 years ago
Unverified
985c8a5fdc116ea6946546c5a82171d79ed6a835

not going to track executable

zzanshin committed 2 years ago

README

The README file for this repository.

Name

jtoh - Convert Jekyll-formatted blog posts to Hugo-formatting

Synopsis

jtoh -i source -o destination [-t true]

Description

jtoh converts a number of front matter elements, as well as some shortcodes from Jekyll formatting to Hugo formatting. See DETAILS for more information.

Options

-i - The path to the postings to convert

-o - The path were the converted postings should be written

-t - OPTIONAL - If true, will convert front matter from YAML to TOML

Installing

Clone the repository to your $GOPATH.

git clone https://github.com/zanshin/jtoh.git $GOPATH/src/github/zanshin/jtoh

Building

The repository does not contain a pre-built executable. One can be made for the current platform using:

go build .

Running

$ jtoh -i source -o dest
Files to process: 2248

Front Matter conversions
Date and Time formats converted:    479
Date only converted:                1767
Quotes stripped from dates:         282
Leading zero added to M:            1351
Leading zero added to D:            527
Categories converted to tags:       2248

Shortcods converted
YouTube shortcodes converted:       70
Highlight shortcodes converted:     66
End Highlight shortcodes converted: 66
Image shortcodes converted:         88

Total number of bytes processed:    4214704

Post counter : 2248
Parse counter: 2248