Skip to content

squidfacts/obsidiantohugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

the current behavior is to publish everything from the folder with draft = false.

cargo run -- --obsidian-dir ~/Desktop/vault/Publish --obsidian-dir-imgs ~/Desktop/vault/Imgs/ --hugo-path ~/blag/
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/blogger --obsidian-dir /Users/exit/Desktop/vault/Publish --obsidian-dir-imgs /Users/exit/Desktop/vault/Imgs/ --hugo-path /Users/exit/blag/`
created static folder /Users/exit/blag/static/lockbit2
Creating hugo md file /Users/exit/blag/content/posts/lockbit2.md
copied /Users/exit/Desktop/vault/Imgs/Pasted image 20241127141342.png to /Users/exit/blag/static/lockbit2/lockbit20.png
copied /Users/exit/Desktop/vault/Imgs/Pasted image 20241127141604.png to /Users/exit/blag/static/lockbit2/lockbit21.png
copied /Users/exit/Desktop/vault/Imgs/Pasted image 20241127143642.png to /Users/exit/blag/static/lockbit2/lockbit22.png

Example obsidian Properties

---
staticPath: lockbit2
Title: "Hack the Box: Lockbit 2.0"
Description: Analysis of a UPX protected malware sample from HTB
Date: 2024-11-27
tags:
  - HTB
  - CTF
  - Malware
---
  • staticPath this path is used for the image path and hugo file name
  • Title this is the title set in the hugo file
  • Description this is the description of the page in the hugo file
  • Date this is the date for the hugo publish date
  • tags converts obsidian tags to hugo tags

Generated hugo header

+++
title = 'Hack the Box: Lockbit 2.0'
date =  2024-11-27T00:13:48-05:00
draft = false
summary = 'Analysis of a UPX protected malware sample from HTB'
tags = ['HTB','CTF','Malware']
+++

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages