mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-23 18:35:11 +00:00
Fix trivial typos in code
This commit is contained in:
parent
452ffab461
commit
18a29964fa
4 changed files with 6 additions and 6 deletions
|
@ -43,7 +43,7 @@ var disableLiveReload bool
|
||||||
var serverCmd = &cobra.Command{
|
var serverCmd = &cobra.Command{
|
||||||
Use: "server",
|
Use: "server",
|
||||||
Short: "A high performance webserver",
|
Short: "A high performance webserver",
|
||||||
Long: `Hugo provides it's own webserver which builds and serves the site.
|
Long: `Hugo provides its own webserver which builds and serves the site.
|
||||||
While hugo server is high performance, it is a webserver with limited options.
|
While hugo server is high performance, it is a webserver with limited options.
|
||||||
Many run it in production, but the standard behavior is for people to use it in development
|
Many run it in production, but the standard behavior is for people to use it in development
|
||||||
and use a more full featured server such as Nginx or Caddy.
|
and use a more full featured server such as Nginx or Caddy.
|
||||||
|
|
|
@ -78,7 +78,7 @@ func Undraft(cmd *cobra.Command, args []string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// undraftContent: if the content is a draft, change it's draft status to
|
// undraftContent: if the content is a draft, change its draft status to
|
||||||
// 'false' and set the date to time.Now(). If the draft status is already
|
// 'false' and set the date to time.Now(). If the draft status is already
|
||||||
// 'false', don't do anything.
|
// 'false', don't do anything.
|
||||||
func undraftContent(p parser.Page) (bytes.Buffer, error) {
|
func undraftContent(p parser.Page) (bytes.Buffer, error) {
|
||||||
|
|
|
@ -164,7 +164,7 @@ type pagelexer struct {
|
||||||
currLeftDelimItem itemType
|
currLeftDelimItem itemType
|
||||||
currRightDelimItem itemType
|
currRightDelimItem itemType
|
||||||
currShortcodeName string // is only set when a shortcode is in opened state
|
currShortcodeName string // is only set when a shortcode is in opened state
|
||||||
closingState int // > 0 = on it's way to be closed
|
closingState int // > 0 = on its way to be closed
|
||||||
elementStepNum int // step number in element
|
elementStepNum int // step number in element
|
||||||
paramElements int // number of elements (name + value = 2) found first
|
paramElements int // number of elements (name + value = 2) found first
|
||||||
openShortcodes map[string]bool // set of shortcodes in open state
|
openShortcodes map[string]bool // set of shortcodes in open state
|
||||||
|
|
|
@ -66,14 +66,14 @@ func T() Template {
|
||||||
return tmpl
|
return tmpl
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resets the internal template state to it's initial state
|
// InitializeT resets the internal template state to its initial state
|
||||||
func InitializeT() Template {
|
func InitializeT() Template {
|
||||||
tmpl = New()
|
tmpl = New()
|
||||||
return tmpl
|
return tmpl
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return a new Hugo Template System
|
// New returns a new Hugo Template System
|
||||||
// With all the additional features, templates & functions
|
// with all the additional features, templates & functions
|
||||||
func New() Template {
|
func New() Template {
|
||||||
var templates = &GoHTMLTemplate{
|
var templates = &GoHTMLTemplate{
|
||||||
Template: *template.New(""),
|
Template: *template.New(""),
|
||||||
|
|
Loading…
Reference in a new issue