From e91ec90aef977bfdf461cab51ddef6a8352aee95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Gonz=C3=A1lez?= Date: Sun, 31 Jul 2016 16:04:13 +0200 Subject: [PATCH] Remove slashes in code, not in template --- file/parser.go | 2 +- templates/assets.go | 4 ++-- templates/body/navbar.tmpl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/file/parser.go b/file/parser.go index 9971461..0bb1be5 100644 --- a/file/parser.go +++ b/file/parser.go @@ -129,7 +129,7 @@ func (pf *ParsedFile) parse() error { } if pf.Slug == "" { - pf.Slug = fmt.Sprintf("/%s.html", utils.Slugify(pf.Title)) + pf.Slug = fmt.Sprintf("%s.html", utils.Slugify(pf.Title)) } pf.scanner.Scan() // We don't want the title underlining diff --git a/templates/assets.go b/templates/assets.go index be49fa2..03aaf0c 100644 --- a/templates/assets.go +++ b/templates/assets.go @@ -344,7 +344,7 @@ func templatesBodyFooter_scriptsTmpl() (*asset, error) { return a, nil } -var _templatesBodyNavbarTmpl = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xcc\x55\x41\x8b\xdb\x3c\x10\xbd\xef\xaf\x10\xfa\x72\xf8\x16\x1a\xfb\x5e\x1c\xc3\x76\xa1\xf4\x58\xd8\xbd\x97\x71\xac\xc8\x02\xad\x64\x64\x79\x97\x60\xfc\xdf\x3b\x92\x25\x5b\x76\x92\x92\x43\x17\x7a\x72\x34\x7a\xf3\x66\xe6\xbd\xb1\x33\x0c\x35\x3b\x09\xc5\x08\x55\xf0\x5e\x81\xa1\xe3\xf8\x50\xd4\xe2\x9d\x1c\x25\x74\xdd\x21\x44\xc9\xf4\xd8\x23\x16\x7a\x69\xe3\xb1\xb3\x60\xc5\x71\x6f\x75\x4b\x89\xd1\x92\x79\xb8\xe0\x18\xd4\x8a\x96\x0f\x84\xa4\x4c\x47\xad\x2c\x60\x25\xe3\x6f\xd6\x77\x81\xaf\x61\x50\xcf\xf7\x88\xa8\x7a\x6b\xb5\x22\xf6\xdc\x22\xf5\x74\xa0\x9b\x14\xab\x39\x97\x8c\x92\x1a\x2c\x84\x83\x2b\x25\x25\xb4\xdd\x1c\x06\xc3\x99\x3d\xd0\x2c\xe4\xcc\xd7\xb1\x10\x96\xea\x5a\x50\x91\xba\x33\x7b\xad\xe4\x99\x96\xaf\x9e\x8f\x2c\x43\x15\xb9\xc3\xdd\x48\x13\x38\xe1\xde\x49\x58\x7e\x26\xac\xc8\x27\x21\xe6\x33\x6c\x14\xa9\x0c\xa8\x9a\x92\xc6\xb0\xd3\x81\xe6\xb4\x1c\x86\xec\x59\xab\x93\xe0\xd9\xab\xb0\x92\x8d\x63\x91\x43\x70\x20\x47\x0b\xa6\x9f\xc3\x20\x4e\x24\x7b\x69\xf4\xc7\x0f\xef\x01\x6e\xc1\x0d\x8f\xa2\x78\xe4\x42\x45\xcf\xa1\x0d\xc9\x7e\x02\x67\x1d\xf9\x1f\xdb\x20\xd9\x93\xc1\x0d\x91\x78\x8c\x4d\xb8\x1a\x4f\xe6\xd8\x88\x77\xf6\x18\xaa\x60\x9d\x5e\x26\x65\xe2\x7a\xe1\x23\xb1\x68\x6a\xf1\x92\x65\x26\x41\x1a\x29\x4a\xd4\x23\x8c\x0e\xd3\x7d\xd6\xd8\x37\x49\xcb\x80\xee\xdc\xf4\x45\x8e\xc0\x84\x98\xa9\x1a\x59\x92\x00\x4a\xc8\x19\xd9\xfd\xfa\x42\x76\x2d\x0e\x43\xbe\x1e\xc2\x54\x37\x8b\x39\x58\x37\x0c\x1e\x9e\xbd\xc8\x9e\x8f\xa3\x93\x7e\x3a\x27\xc2\x5f\x2f\x1d\xad\xed\xe5\x22\x26\xc1\x2b\xb2\xb4\x15\xd5\x9d\x64\x7d\x06\xcb\xb8\x36\x62\x23\xec\x12\x7e\x0c\xc0\x57\xe0\x6b\x88\x0b\xdc\x21\x7c\xfc\x69\x04\x6f\xec\xd6\x85\xfb\x5a\x58\x6b\x15\xcb\xd4\x46\xb7\xb5\xfe\x50\xe9\xcb\x17\x55\xfc\x6f\xf3\x1e\x2f\xd8\xa4\x58\x51\xcd\x5f\x14\x30\xcc\xba\xf7\xa3\x2a\xe7\x9d\xde\x0c\x15\x19\xf6\x6f\x4c\xf5\x49\xc9\x8d\xc9\xc7\x89\xfe\xec\x8d\xbe\x3a\x81\x4b\xd8\x41\x5c\x66\x84\xed\xb2\xef\x42\x5a\x66\xbe\x9d\x9f\x63\xf2\x4c\xb3\xca\x2b\x52\xc3\x93\x61\xf3\x88\xce\x91\x79\xc9\x0c\xeb\xba\x8a\xad\xbf\x0c\x15\xd4\xd8\x77\xdb\x4b\x19\xdd\x19\x06\xc9\x14\x99\xdb\x73\x9b\xe6\x3f\x19\x2b\x55\xdc\x7e\xad\x5b\x59\x6f\xdf\x7a\xff\xb6\xe8\x2b\x2f\x49\x5c\x84\xab\x2b\xf6\x37\xcd\xf7\x05\x3e\xc3\x76\x0b\xdc\x3b\xbe\x69\xf8\x0f\x5e\x23\xd2\xa7\xdd\xe7\x30\x02\x9d\xb9\x1e\xbf\xf8\xea\x8f\xff\x90\xa5\x97\xc8\xf4\x66\xf5\x27\x11\xc3\x21\x18\x1e\x31\xfe\x3b\x00\x00\xff\xff\xd3\x03\x6e\x75\x4c\x08\x00\x00") +var _templatesBodyNavbarTmpl = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xcc\x55\x41\x8b\xdb\x3c\x10\xbd\xef\xaf\x10\xfa\x72\xf8\x16\x1a\xfb\x5e\x1c\xc3\x76\xa1\xf4\x58\xd8\xbd\x97\x71\xac\xc8\x02\xad\x64\x64\x79\x97\x60\xfc\xdf\x3b\x92\x25\x5b\x76\x92\x92\x43\x17\x7a\x72\x34\x7a\x33\x6f\xe6\xbd\xb1\x33\x0c\x35\x3b\x09\xc5\x08\x55\xf0\x5e\x81\xa1\xe3\xf8\x50\xd4\xe2\x9d\x1c\x25\x74\xdd\x21\x44\xc9\xf4\xd8\x23\x16\x7a\x69\xe3\xb1\xb3\x60\xc5\x71\x6f\x75\x4b\x89\xd1\x92\x79\xb8\xe0\x18\xd4\x8a\x96\x0f\x84\xa4\x95\x8e\x5a\x59\x40\x26\xe3\x6f\xd6\x77\xa1\x5e\xc3\xa0\x9e\xef\x11\x51\xf5\xd6\x6a\x45\xec\xb9\xc5\xd2\xd3\x81\x6e\x52\xac\xe6\x5c\x32\x4a\x6a\xb0\x10\x0e\x8e\x4a\x4a\x68\xbb\x39\x0c\x86\x33\x7b\xa0\x59\xc8\x99\xaf\x23\x11\x52\x75\x2d\xa8\x58\xba\x33\x7b\xad\xe4\x99\x96\xaf\xbe\x1e\x59\x86\x2a\x72\x87\xbb\x91\x26\x70\xc2\xbd\x93\xb0\xfc\x4c\x58\x91\x4f\x42\xcc\x67\xd8\x28\x52\x19\x50\x35\x25\x8d\x61\xa7\x03\xcd\x69\x39\x0c\xd9\xb3\x56\x27\xc1\xb3\x57\x61\x25\x1b\xc7\x22\x87\xe0\x40\x8e\x16\x4c\x3f\x87\x41\x9c\x48\xf6\xd2\xe8\x8f\x1f\xde\x03\xdc\x82\x1b\x1e\x45\xf1\xc8\x85\x8a\xbe\x86\x36\x24\xfb\x09\x9c\x75\xe4\x7f\x6c\x83\x64\x4f\x06\x37\x44\xe2\x31\x36\xe1\x38\x9e\xcc\xb1\x11\xef\xec\x31\xb0\x20\x4f\x2f\x13\x9a\xb8\x5e\xf8\x48\x2c\x9a\x5a\xbc\xac\x32\x17\xc1\x32\x52\x94\xa8\x47\x18\x1d\xa6\xfb\xac\xb1\x6f\x92\x96\x01\xdd\xb9\xe9\x8b\x1c\x81\x49\x61\xa6\x6a\xac\x92\x04\x50\x42\xce\xc8\xee\xd7\x17\xb2\x6b\x71\x18\xf2\xf5\x10\xa6\xba\x49\xe6\x60\x5d\x3e\x0c\x1e\x9f\xbd\xc8\x9e\x8f\xa3\xd3\x7e\x3a\x27\xca\x5f\xe7\x8e\xde\xf6\x72\x51\x93\xe0\x15\x59\xfa\x8a\xf2\x4e\xba\x3e\x83\x65\x5c\x1b\xb1\x51\x76\x09\x3f\x06\xe0\x2b\xf0\x35\xc4\x05\xee\x50\x3e\xfe\x34\x82\x37\x76\x6b\xc3\x7d\x2d\xac\xc5\x8a\x34\xb5\xd1\x6d\xad\x3f\x54\xfa\xf6\x45\x19\xff\xdb\xbc\xc8\x0b\x36\x21\x2b\xaa\xf9\x93\x02\x86\x59\xf7\x82\x54\xe5\xbc\xd4\x9b\xa1\x62\x85\xfd\x1b\x53\x7d\x42\xb9\x71\xf9\x38\x95\x3f\x7b\xa7\xaf\x4e\xe0\x12\x76\x10\xb7\x19\x61\xbb\xec\xbb\x90\x96\x99\x6f\xe7\xe7\x98\x3c\x97\x59\xe5\x15\xa9\xe1\xc9\xb0\x79\x44\xbb\xb5\x59\x32\xc3\xbe\xae\x62\xeb\x4f\x43\x05\x35\xf6\xdd\xf6\x52\x46\x77\x86\x41\x32\x45\xe6\xf6\xdc\xa6\xf9\x6f\xc6\x4a\x15\xb7\x5f\xeb\x56\xd6\xdb\xb7\xde\xbf\x2d\xfa\xca\x5b\x12\x17\xe1\xea\x8a\xfd\x4d\xf3\x3d\xc1\x67\xd8\x6e\x81\x7b\xc7\x37\x0d\xff\xc1\x6b\x44\xfa\xb4\xfb\x1c\x46\xa0\x33\xd7\xe3\x17\x5f\xfd\xf1\x1f\xb2\xf4\x12\x99\xde\xac\xfe\x25\x62\x38\x04\xc3\x23\xc6\x7f\x07\x00\x00\xff\xff\x72\xd5\x84\x3f\x4d\x08\x00\x00") func templatesBodyNavbarTmplBytes() ([]byte, error) { return bindataRead( @@ -359,7 +359,7 @@ func templatesBodyNavbarTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/body/navbar.tmpl", size: 2124, mode: os.FileMode(420), modTime: time.Unix(1469970211, 0)} + info := bindataFileInfo{name: "templates/body/navbar.tmpl", size: 2125, mode: os.FileMode(420), modTime: time.Unix(1469973721, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/templates/body/navbar.tmpl b/templates/body/navbar.tmpl index f489344..2bdddb3 100644 --- a/templates/body/navbar.tmpl +++ b/templates/body/navbar.tmpl @@ -19,7 +19,7 @@ {{end}} {{range $_, $page := .Pages}} -
  • {{$page.Title}}
  • +
  • {{$page.Title}}
  • {{end}} {{ end }}