Skip to content

Put config in a function#16

Open
Flyounet wants to merge 10 commits intotaylorchu:masterfrom
Flyounet:loadconfig
Open

Put config in a function#16
Flyounet wants to merge 10 commits intotaylorchu:masterfrom
Flyounet:loadconfig

Conversation

@Flyounet
Copy link

The 3 previous PRs are already included in this one :

  • DraftDir + manage accent for slug()
  • Prev and Next Post
  • Toggle status + list posts

The idea behind is to give baker the ability to load a config file. So to execute baker from anywhere.

Previously the slug function didn't handled accent :
echo 'Baker est très bien' | tr -cs '[:alnum:]\n' - | tr '[:upper:]' '[:lower:]' | sed 's|^-*||;s|-*$||'
baker-est-tr-s-bien

Now it handles them :
echo 'Baker est très bien' | iconv -f utf8 -t ascii//TRANSLIT | tr -cs '[:alnum:]\n' - | tr '[:upper:]' '[:lower:]' | sed 's|^-*||;s|-*$||'
baker-est-tres-bien
The idea is when you're on a Post, you can go to the older or the newer.
If the there is no newer or no older, you go to the index.
 pour expliquer en quoi cette fusion est
…verything we'll be able to send a config file to baker.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant