Skip to content

New feature : Tags#17

Open
Flyounet wants to merge 21 commits intotaylorchu:masterfrom
Flyounet:categories
Open

New feature : Tags#17
Flyounet wants to merge 21 commits intotaylorchu:masterfrom
Flyounet:categories

Conversation

@Flyounet
Copy link

The 5 previous PRs are already included in this one :

  • DraftDir + manage accent for slug()
  • Prev and Next Post
  • Toggle status + list posts
  • Put config in a function
  • Remove from the main and create functions

The Tags are read in each posts (if there are some), then added in the post.md.
It also generates a new index file (named index_slug(tagName).html) with the post only the post that have this categoryTag.
A post could have as many tag as it wants.

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.
All actions list, post, bake, toggle are now functions.
Conflicts:
	baker
…ts).

Added the draft directory to .gitignore
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