Add new function to create excerpts for the sharing button