Skip to content

Commit

Permalink
use path_prefix in nav unless :// is used (#136)
Browse files Browse the repository at this point in the history
* use path_prefix in nav unless :// is used

* changelog
  • Loading branch information
WaylonWalker committed Mar 7, 2023
1 parent 1d9ee17 commit ed3b182
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
* Fix: snyk remove seuptools from requirements 0.6.0.dev14 #130
* Fix: Markata.filter was missing post and m 0.6.0.dev14 #133
* Feat: add `path_prefix` config for gh-pages deploy 0.6.0.dev15 #132 fixes #57
* Feat: created `markata plugin show` cli command #109
* Feat: created `markata plugin show` cli command 0.6.0.dev16 #109
* Feat: use `path_prefix` in nav entries 0.6.0.dev17 #136

## 0.5.2

Expand Down
2 changes: 1 addition & 1 deletion markata/plugins/default_post_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@

<nav>
{% for text, link in config.get('nav', {}).items() %}
<a href='{{link}}'>{{text}}</a>
<a href='{{"/" if link.startswith("/")}}{{"" if "://" in link else config["path_prefix"]}}{{link.lstrip("/")}}'>{{text}}</a>
{% endfor %}
</nav>

Expand Down

0 comments on commit ed3b182

Please sign in to comment.