From 2c8e9a79313f91a55e5c99fd20f88acc4035bd2d Mon Sep 17 00:00:00 2001 From: Ahsanul Haque Date: Fri, 12 Dec 2014 02:57:25 +0600 Subject: [PATCH] Commenting helpers package --- helpers/content.go | 8 ++++++++ helpers/general.go | 3 +++ helpers/path.go | 9 +++++++-- helpers/url.go | 19 +++++++++++-------- 4 files changed, 29 insertions(+), 10 deletions(-) diff --git a/helpers/content.go b/helpers/content.go index 9b46bbe83..1b0aea326 100644 --- a/helpers/content.go +++ b/helpers/content.go @@ -11,6 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//Package helpers implements general utility functions that work with and on content. package helpers import ( @@ -26,9 +27,13 @@ import ( "strings" ) +// Length of the summary that Hugo extracts from a content. var SummaryLength = 70 + +// Custom divider "" let's user define where summarization ends. var SummaryDivider = []byte("") +//StripHTML accepts a string, strips out all HTML tags and returns it. func StripHTML(s string) string { output := "" @@ -61,10 +66,12 @@ func StripHTML(s string) string { return output } +// StripEmptyNav strips out empty