All Projects → khalednassar → obyde

khalednassar / obyde

Licence: other
A minimal tool to convert a "standardly" configured Obsidian vault to a Jekyll or Hugo blog.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to obyde

Obsidian-Markdown-Parser
This repository will give you tools to parse and fetch useful informations of your notes in your Obsidian vault.
Stars: ✭ 32 (-15.79%)
Mutual labels:  obsidian, obsidian-md, obsidian-vault
life-disciplines-projects
Life-Disciplines-Projects (LDP) is a life-management framework built within Obsidian. Feel free to transform it for your own personal needs.
Stars: ✭ 130 (+242.11%)
Mutual labels:  obsidian, obsidian-md, obsidian-vault
obsidian-publish-mkdocs
A Template to Publish Obsidian/Foam Notes on Github Pages (uses MkDocs)
Stars: ✭ 219 (+476.32%)
Mutual labels:  obsidian, obsidian-md, obsidian-vault
obsidian-search-on-internet
Add context menu items in Obsidian to search the internet.
Stars: ✭ 79 (+107.89%)
Mutual labels:  obsidian, obsidian-md
Bubble-Space-Theme
A theme for https://obsidian.md/ inspired by Bubbles for Light Mode and Outer Space for Dark Mode!
Stars: ✭ 86 (+126.32%)
Mutual labels:  obsidian, obsidian-md
twenty-twenty-hugo
Twenty Twenty Hugo is forked from WordPress Twenty Twenty theme. It's fully functional like the WordPress theme.
Stars: ✭ 48 (+26.32%)
Mutual labels:  hugo, hugo-blog
obsidian-convert-url-to-iframe
Plugin for Obsidian.md to convert a selected URL to an iframe.
Stars: ✭ 132 (+247.37%)
Mutual labels:  obsidian, obsidian-md
obsidian-metatemplates
Take advantage of YAML front-matter in generating notes from templates (for obsidian.md)
Stars: ✭ 68 (+78.95%)
Mutual labels:  obsidian, obsidian-md
obsidian-pangu
为 Obsidian 笔记加上「盘古之白」,排版强迫症者的福音。 | A small plugin aims to add space between Chinese Characters and English Alphabet, and it is a boon for typographically compulsive people.
Stars: ✭ 40 (+5.26%)
Mutual labels:  obsidian, obsidian-md
persian-hugo
Persian is a box design personal blog theme based on Bootstrap and powered by Hugo. It is very responsive and perfectly fits on any sized screen device.
Stars: ✭ 32 (-15.79%)
Mutual labels:  hugo, hugo-blog
obsidian-core-search-assistant-plugin
An Obsidian plugin to enhance built-in search: keyboard interface, card preview, bigger preview
Stars: ✭ 59 (+55.26%)
Mutual labels:  obsidian, obsidian-md
obsidian-url-into-selection
Paste URLs into selected text "notion style"
Stars: ✭ 129 (+239.47%)
Mutual labels:  obsidian, obsidian-md
obsidian-spaced-repetition
Fight the forgetting curve by reviewing flashcards & entire notes on Obsidian.md
Stars: ✭ 667 (+1655.26%)
Mutual labels:  obsidian, obsidian-md
obsidian-query2table
Represent files returned by a query as a table of their YAML frontmatter (for obsidian.md)
Stars: ✭ 24 (-36.84%)
Mutual labels:  obsidian, obsidian-md
obsidian-link-archive
Link Archive plugin for Obsidian
Stars: ✭ 94 (+147.37%)
Mutual labels:  obsidian, obsidian-md
liva-hugo
Liva is a personal blog template powered by Hugo.
Stars: ✭ 192 (+405.26%)
Mutual labels:  hugo, hugo-blog
hugo-theme-texify
A minimal, latex-style hugo theme for personal blogging
Stars: ✭ 91 (+139.47%)
Mutual labels:  hugo, hugo-blog
zotero-obsidian-citations
Zotero plugin that links your Markdown database to Zotero. Jump directly from Zotero Items to connected Markdown files. Automatically tags Zotero Items so you can easily see which papers you've made notes for.
Stars: ✭ 129 (+239.47%)
Mutual labels:  obsidian, obsidian-md
obsidian-icon-swapper
Allows swapping out Obsidian's icons
Stars: ✭ 30 (-21.05%)
Mutual labels:  obsidian, obsidian-md
obsidian-california-coast-theme
A minimalist obsidian theme inspired by macOS Big Sur
Stars: ✭ 421 (+1007.89%)
Mutual labels:  obsidian, obsidian-md

obyde

A minimal tool to convert a "standardly" configured Obsidian vault to a Jekyll or Hugo blog.

Installation

Install obyde using pip:

pip install git+https://github.com/khalednassar/obyde

Or using pipenv:

pipenv install git+https://github.com/khalednassar/obyde#egg=obyde

Caveat

obyde is mainly meant to support easy "default" Obsidian vault to Jekyll or Hugo blog conversions and it does so in an opinionated way. In order to create posts in an easy fashion, it requires that post filenames have a "post date", this is mainly to align with Jekyll, but it is also nice to use for Hugo. This is done by utilizing frontmatter in the Obsidian markdown notes, which means that each note must have a frontmatter section with at least a date key-value pair as such:

---
date: 2021-02-13

---

Additionally, currently only dates of the format YYYY-MM-DD are supported.

Usage

Copy the config.yaml.sample file and change the paths to align with your set up or copy this sample configuration:

vault:
        path: "/path/to/vault/root/" # Path to the Obsidian vault root. Markdown file discovery will start at this directory recursively.
        asset_path: "/path/to/vault/attachments/" # Path to the Obsidian vault attachments folder
        excluded_subdirectories: # Optional: list of excluded subdirectories of the Obsidian vault root
                - .trash
output:
        post_output_path: "/path/to/jekyll/_posts/" # Path to the Jekyll or Hugo posts directory
        asset_output_path: "/path/to/jekyll/assets/" # Path to the blog assets directory, copied from the Obsidian attachments folder
        relative_asset_path_prefix: "{{ site.blog_assets_location }}" # Optional: a relative URL prefix for blog assets without a trailing slash. Can also be a liquid template substitution for Jekyll.
        post_link_mode: "jekyll" # Optional, values can be either "jekyll" or "hugo" and the default is "jekyll". Sets the way post references are output.

Write your posts in the Obsidian vault then move the vault to the configured Jekyll or Hugo blog directory using

obyde -c <path to config.yaml>

Options

Regex-based find and replace transformations: (see PR #1) can be done through the frontmatter by specifying a find regex list and a corresponding replace string list of the same length. Each find regex will be compiled to search and replace matching instances with the string that is at the same index in the replace list.

For example, the following frontmatter configuraiton will replace every instance of foo with baz and every instance of bar and bak with qux:

---
find:
  - foo
  - ba(r|k)
replace:
  - baz
  - qux
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].