Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle status + list posts #14

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Flyounet
Copy link

This PR include the 2 previous : *DraftDir + manage accent for slug() * and *Prev and Next Post *.

The features added by this PR are :

  • Printing the list of Posts with their id, title and Status
    and
  • with the toggle keyword + id (or title) change the status (true/false) of a post.

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
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