Skip to content

Tags and other litlle features added#11

Open
Flyounet wants to merge 132 commits intotaylorchu:masterfrom
Flyounet:master
Open

Tags and other litlle features added#11
Flyounet wants to merge 132 commits intotaylorchu:masterfrom
Flyounet:master

Conversation

@Flyounet
Copy link

hi,

The 6 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
  • New feature : Tags

Not sure about the way you wanted the tags, but here is an implementation.

Each post could have more than one tag, and each tag links to an index where posts have the same tags.

This PR was the first done (now splitted in more little PRs).

Regards

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
@taylorchu
Copy link
Owner

This is nice. Could you break it down into many PRs? I want to review and merge them separately.

As requested the DRAFT_DIR and OUTPUT_DIR are removed and created in same command
Arguments are now also managed like flags
New feature : the -w flag force the use of this workingDir. With standard config, you could use a different working directory
Flyounet added 30 commits March 11, 2016 00:37
Merge branch 'openPage' into dev
Correct issue with -z flag
Markdown in summary is now converted in index.html.
Markdown also replaced in index_tags.html pages.
Finally, summary are also transformed when generating a post.
Adding color for draft/published and Hidden in list.
Markown parsed for Summary.
Color for list.
Correction for the Format:%h issue.
Template modifications
…post.

Adding a configuration variable to have a index layout for tags different from the main index.
A GENERATE_INDEX variable is set before generating index (and unset after) and a GENERATE_TAGS is set before doing tags.
Updating the configuration displayed to take into account last variables
Updating the README, the docs seems better.
Adding a config file file to generate the example site with the roiginal template.
Preparing the 1.2 release
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.

2 participants