pelican-obsidian/README.md

87 lines
2.7 KiB
Markdown
Raw Normal View History

2021-07-03 17:27:06 +00:00
Obsidian: A Plugin for Pelican
============================
<!-- [![Build Status](https://img.shields.io/github/workflow/status/pelican-plugins/series/build)](https://github.com/pelican-plugins/series/actions)
[![PyPI Version](https://img.shields.io/pypi/v/pelican-series)](https://pypi.org/project/pelican-series/)
![License](https://img.shields.io/pypi/l/pelican-series?color=blue) -->
Obsidian is a pelican plugin that allows you to use the syntax used within Obsidian and when pelican then renders these posts it won't look weird or out of place.
Phrased differently, if you don't like that `#` is included in the name of the tag when you name it `#my-tag` and you think that internal pelican links are difficult to remember and would like to use `[[ my link ]]` as an internal link instead this plugin would be for you.
2021-07-03 18:11:48 +00:00
If the article doesn't exist it will return text only. That way, there is a possibility of clearly separating posts that should belong on the blog and linked as such vs posts that should only belong inside Obsidian.
2021-07-03 17:27:06 +00:00
Installation
------------
This plugin can be installed via:
# not yet on pypi, but when it is you can install it with.
pip install pelican-obsidian
2021-07-05 10:34:45 +00:00
# meanwhile you can install using this repo.
pip install git+git://github.com/jonathan-s/pelican-obsidian@main#egg=pelican-obsidian
2021-07-03 17:27:06 +00:00
2022-04-22 22:16:17 +00:00
Add `'obsidian'` to the `PLUGINS` list in your Pelican config:
```
PLUGINS = [
'obsidian',
]
```
2021-07-03 17:27:06 +00:00
Usage
-----
In the tags section you will be able to use `#` without that being reflected in the actual name of the tag. In other words.
```
Tags: #my-tag
# reflects as
my-tag in the html output.
```
2022-04-22 22:16:17 +00:00
Links follow this format:
```
[[note name]]
[[note name | custom link text]]
```
Files are similar:
```
![[photo.jpg]]
![[photo.jpg | custom alt text]]
```
2021-07-03 17:27:06 +00:00
2022-04-22 22:16:17 +00:00
They explain more about the syntax in the section on [how to embed files](https://help.obsidian.md/How+to/Embed+files)
2021-07-03 17:27:06 +00:00
Future features
---------------
- Embed files or sections as described [here](https://help.obsidian.md/How+to/Format+your+notes)
- Task list?
2021-07-03 18:11:48 +00:00
- Support .rst?
- don't generate links for drafts
- Apply the same linking for pages.
2021-07-03 17:27:06 +00:00
<!-- Contributing
------------
Contributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on [existing issues][].
To start contributing to this plugin, review the [Contributing to Pelican][] documentation, beginning with the **Contributing Code** section.
[existing issues]: https://github.com/pelican-plugins/series/issues
[Contributing to Pelican]: https://docs.getpelican.com/en/latest/contribute.html -->
License
-------
2021-07-03 18:11:48 +00:00
This project is licensed under the MIT license.