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

Added excerpt function. #56

Merged
merged 4 commits into from
Oct 9, 2015
Merged

Added excerpt function. #56

merged 4 commits into from
Oct 9, 2015

Conversation

krpors
Copy link
Contributor

@krpors krpors commented Oct 8, 2015

Also removed two redundant returns.

BTW, added one test file for that function (and probably others). I tested it locally to see if that excerpt did the trick.

Also removed two redundant returns.
@piranha
Copy link
Owner

piranha commented Oct 9, 2015

Can you please add it to README.md? And merge with master to resolve conflicts. :-)

Also, with such a signature, it can be used as {{ .Raw | markdown | strip_html | excerpt 7 }}.

@krpors
Copy link
Contributor Author

krpors commented Oct 9, 2015

I think it's correctly merged with your master. Also: I'm not that quite into those template functions yet, so thanks for that extra information :)

@piranha
Copy link
Owner

piranha commented Oct 9, 2015

Excellent, thanks!

piranha added a commit that referenced this pull request Oct 9, 2015
Added excerpt function.
@piranha piranha merged commit b615ee1 into piranha:master Oct 9, 2015
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.

None yet

2 participants