Add condition for address elements on tex template

This commit is contained in:
Arnaud Ysmal 2018-05-11 00:27:50 +02:00
parent d29a155fd0
commit 4febbd2488
4 changed files with 8 additions and 8 deletions

View File

@ -85,7 +85,7 @@ func themesKendallResumeTemplate() (*asset, error) {
return nil, err return nil, err
} }
info := bindataFileInfo{name: "themes/kendall/resume.template", size: 12017, mode: os.FileMode(420), modTime: time.Unix(1525988367, 0)} info := bindataFileInfo{name: "themes/kendall/resume.template", size: 12017, mode: os.FileMode(420), modTime: time.Unix(1525989620, 0)}
a := &asset{bytes: bytes, info: info} a := &asset{bytes: bytes, info: info}
return a, nil return a, nil
} }

View File

@ -84,7 +84,7 @@ func themesStackoverflowResumeTemplate() (*asset, error) {
return nil, err return nil, err
} }
info := bindataFileInfo{name: "themes/stackoverflow/resume.template", size: 14110, mode: os.FileMode(420), modTime: time.Unix(1525988393, 0)} info := bindataFileInfo{name: "themes/stackoverflow/resume.template", size: 14110, mode: os.FileMode(420), modTime: time.Unix(1525989620, 0)}
a := &asset{bytes: bytes, info: info} a := &asset{bytes: bytes, info: info}
return a, nil return a, nil
} }

View File

@ -12,11 +12,11 @@
\par{\centering {\Large {{.Basic.Name -}} }\par} \par{\centering {\Large {{.Basic.Name -}} }\par}
\par{\centering {\large {{.Basic.Label -}} }\par} \par{\centering {\large {{.Basic.Label -}} }\par}
\par{\centering \par{\centering
{{.Basic.Location.Address}}\\ {{if .Basic.Location.Address}}{{.Basic.Location.Address}}\\{{end}}
{{.Basic.Location.PostalCode}} {{.Basic.Location.City}}\\ {{if .Basic.Location.PostalCode}}{{.Basic.Location.PostalCode}} {{end}}{{.Basic.Location.City}}\\
{{.Basic.Location.CountryCode}}\\ {{.Basic.Location.CountryCode}}\\
{{.Basic.Phone}}\\ {{if .Basic.Phone}}{{.Basic.Phone}}\\{{end}}
{{.Basic.Email}}\\ {{if .Basic.Email}}{{.Basic.Email}}\\{{end}}
\href{ {{- .Basic.URL -}} }{ {{- .Basic.URL -}} } \href{ {{- .Basic.URL -}} }{ {{- .Basic.URL -}} }
\par} \par}
{{if .Skills -}} {{if .Skills -}}

View File

@ -68,7 +68,7 @@ func (fi bindataFileInfo) Sys() interface{} {
return nil return nil
} }
var _themesTexResume_templateTex = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x56\xdb\x6e\x24\x35\x10\x7d\x66\xbe\xc2\x0f\xad\x68\x17\x65\x5a\x93\xcd\x46\x42\x48\x20\x85\x10\x44\x44\x80\x88\x5d\x40\xab\x38\x0f\x8e\xbb\xa6\xdb\x3b\x6e\x77\x63\xbb\x67\x33\x98\xfa\x77\xe4\x4b\xdf\x66\x92\x88\x00\x2f\x51\xda\x75\x71\xd5\x39\xa7\xca\x43\x8b\x86\x77\x35\x28\xcb\x25\x33\xe6\x96\xbd\x6d\x59\x0b\xfa\xf8\x64\xd5\xda\x3b\xc7\xb4\x15\x5c\x02\x2e\x68\x67\xa0\x65\x7c\xc3\x4a\x70\x2d\xd3\x66\x23\xda\xd9\xe1\x2d\xaf\xef\xdc\xba\x93\xb2\x65\xe5\x9e\xbb\x15\x56\x82\x01\x3e\x3f\x65\x5a\xb3\xdd\x3c\x45\x25\x0a\x90\x42\x6d\xcc\x9d\xab\x76\x2d\x68\x0d\x6b\x5c\xd0\x10\xbe\x6e\x74\xcd\xac\xa3\x06\xb8\x15\x8d\x42\x47\xaf\x99\x2e\x81\x1a\x6e\x2a\xd6\x02\xd5\xac\x2c\xa1\xd0\xa2\xac\x2c\x3a\x74\x2b\xa8\xd1\xe1\x6d\x8c\xd5\x9d\x84\xbb\x94\xc7\xb4\x8c\x0b\x55\x4e\x12\xad\x5a\x8b\xee\xb4\xff\xb3\xa0\xac\x28\x6c\x23\x41\x95\xb6\x72\xd4\xc2\x83\xad\x20\x66\x3d\xe5\x35\x2e\xa8\x6f\xcf\xd8\x9d\x04\x07\x75\x6b\x7d\x03\xf7\x50\x0a\xe5\x7a\x10\x83\x8b\x76\x94\x83\xb2\xa0\x85\x2a\x49\x2a\x95\x38\x97\x7f\xc3\x8c\xe0\xf9\x4f\xac\x06\xb2\x44\x24\xe8\x5d\x1f\x0b\x90\xf3\x80\x6b\x76\x0f\xf2\x99\x88\xc5\xe8\xd9\x70\xe6\xdb\xca\xcf\x8b\x42\x83\x31\x88\x94\x3e\x62\xbd\x69\x8c\x65\xf2\xa2\x29\x00\x91\x1c\x9a\x2f\x84\xdd\x3d\x11\x79\xd1\x74\xca\xea\x5d\x0c\x9d\x7a\xdc\x54\x8d\xda\x3b\xba\xac\x99\x90\xe1\x88\x56\x1a\xd6\x8e\x38\xb7\x24\xc9\xf6\xeb\x2f\xd7\xb1\xa1\xc7\x4f\x17\xb1\x4f\xe7\xc4\x9a\xe4\xef\x36\x42\x4a\xe3\x0d\x8b\x9e\xb6\x14\x75\xcd\x54\x39\x31\xfb\x38\x0d\x0a\x3e\xf1\xa6\xae\x99\x2a\x1c\x0d\x22\x33\x56\x83\xe5\x15\xba\x55\x7e\x36\xf0\x65\xd9\x7d\x27\x99\x46\xf7\xf5\x04\x48\x6c\xdd\x9b\xfc\x8c\xd7\xf8\x57\xeb\x4e\xde\xe6\x5f\xf0\x1a\x7d\x11\x9a\xa9\x12\x66\x75\x7c\x16\xae\xf7\x44\x22\x1e\x85\x2a\x4b\x4b\x5e\x49\x50\xf1\xf0\x35\x39\x59\x21\xd2\xad\x57\x1b\x7c\xee\x68\xaa\xc0\x9d\x20\x3a\x07\xaa\x18\x73\xc4\xd4\x99\x38\x26\xd9\x86\x7c\xf9\x15\xc9\x7f\x80\xdd\xa7\x46\x17\xc6\x7b\x8a\x35\x81\x3f\x48\x26\xc8\xca\x7f\x65\x9b\x10\x2d\x0d\x20\x1e\x93\xe1\x5b\x15\x07\x49\x5f\x50\x0e\x49\x19\x3c\x49\x75\x27\xad\xe0\x8d\xec\x6a\xe5\xde\xa0\xe3\xe8\x90\x04\x3e\xfb\xe4\x14\x54\x31\x00\xf7\x3c\xd4\x27\x1e\xb7\x25\x09\xb9\x13\x8d\x9e\xac\xce\x4f\x4f\xcc\xf5\x72\x1a\x22\xdd\x43\x1a\xc4\xa3\x03\x0c\x65\xc0\x70\x7e\xd3\x04\x92\x08\xe5\x31\xd9\xc3\x6b\x08\x40\x24\xaf\x9c\xcb\xbf\x93\x1d\x28\xbe\x43\x7c\x1d\xed\xc9\xf9\x19\x8c\xe6\xc8\x8c\x9d\xa7\xd6\x7f\x6f\xf4\xe6\x49\xfd\x7a\xe3\xe5\x43\x0b\x5a\x80\xe2\xd0\xeb\xf8\x5f\xab\x74\xb8\xcb\xb9\xb8\x34\xbf\x65\x16\x7e\xfc\x40\xf2\x4b\x55\xf8\x7f\x11\x8f\xc2\x5a\xbb\xef\x07\x72\x5c\x47\xc7\x64\x6e\xb9\x69\x8c\xf0\xd5\xa6\x49\x8d\x2c\xa6\x4d\x10\x61\xac\x8b\x37\x16\x1e\xa6\xa7\xa3\x9e\xf6\xef\x7f\x67\x99\x0e\x1f\xa9\xba\x09\x6d\x55\xa0\xed\x7b\x51\x56\xd2\xef\xda\xc8\xdb\x50\xe6\x72\xe9\x65\x9a\x55\xf9\x7b\xbf\xc1\x53\xee\x14\x5d\xe5\x57\x16\xea\x3e\xa0\x0a\x0a\xf7\x73\xce\x6b\xec\xc3\xa9\xf4\xeb\x53\x58\xa8\xc5\x36\x6c\xbb\x94\xa1\x97\xc0\x44\xdf\x2f\x9c\x80\x03\x9e\x2f\x8b\x2e\xe2\xf0\x24\xd9\x33\x8f\xff\xc2\x73\xc0\x0d\x02\x6e\xf3\x5b\xfb\x6d\x14\xb5\x4e\xeb\xee\x91\x8e\xa6\xcd\x8f\x24\x7d\x20\x19\x8c\x2c\x21\x92\x25\x39\x30\x8f\x22\x72\x2e\x78\x77\xc5\xee\xfd\xae\x8d\xef\x48\x16\x7b\xbc\x52\xf1\x0b\xf2\x73\x0d\x6c\x6a\x39\xb7\xe1\x2b\xa9\x26\x83\xfc\x4a\x19\x2b\x6c\x17\xa5\xf3\x12\xa4\x7f\x6b\x64\xa7\x2c\x80\x7e\x12\xe9\x99\xc7\x3f\x41\xfa\x34\x21\x7d\x76\x88\xf3\x36\xe0\x3c\xbf\xf3\x00\xe7\xc7\xa4\x33\x05\x5a\xac\x49\xb6\xed\x9f\xb8\xe9\x93\x38\x9e\xf6\xcf\x61\xb6\xcd\x7f\xd6\x25\x53\xe2\xcf\x89\x56\x3c\xe2\xdb\x61\x26\x13\x5c\x4b\xe2\x1f\x84\x74\xc3\x5e\x18\x3e\x19\x92\xb6\x72\xea\xf0\x63\x3f\x81\xd9\x76\x7f\x06\x87\x26\x3f\xfa\x26\x8f\x66\x1d\xed\xcd\x67\xbf\x0a\x0e\x87\xf4\x7f\x1a\x51\x1c\x64\xf0\xac\x40\xc2\xf9\xf8\x6b\xec\xef\x00\x00\x00\xff\xff\xa6\xb3\x84\x05\xde\x0a\x00\x00") var _themesTexResume_templateTex = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x56\xdf\x6f\xe4\x34\x10\x7e\x66\xff\x0a\x3f\x44\xd5\x1d\xea\x46\xbb\xed\x55\x42\x48\x20\x95\xa3\x88\x8a\x02\x15\x77\x80\x4e\x75\x1f\x5c\x67\x36\xf1\xad\xe3\x04\xdb\xd9\xeb\x62\xe6\x7f\x47\xfe\x91\x4d\xb2\xbb\xad\x28\xf0\x52\xd5\x9e\x99\x6f\x66\xbe\xf9\xc6\x59\x5a\x34\xbc\xab\x41\x59\x2e\x99\x31\x77\xec\x4d\xcb\x5a\xd0\xa7\xcb\x45\x6b\xef\x1d\xd3\x56\x70\x09\x38\xa3\x9d\x81\x96\xf1\x35\x2b\xc1\xb5\x4c\x9b\xb5\x68\x27\x97\x77\xbc\xbe\x77\xab\x4e\xca\x96\x95\x7b\xee\x56\x58\x09\x06\xf8\xf4\x96\x69\xcd\xb6\x53\x88\x4a\x14\x20\x85\x5a\x9b\x7b\x57\x6d\x5b\xd0\x1a\x56\x38\xa3\x21\x7c\xd5\xe8\x9a\x59\x47\x0d\x70\x2b\x1a\x85\x8e\xde\x30\x5d\x02\x35\xdc\x54\xac\x05\xaa\x59\x59\x42\xa1\x45\x59\x59\x74\xe8\x16\x50\xa3\xc3\xbb\x18\xab\x3b\x09\xf7\x09\xc7\xb4\x8c\x0b\x55\x8e\x80\x16\xad\x45\x77\xde\xff\x99\x51\x56\x14\xb6\x91\xa0\x4a\x5b\x39\x6a\xe1\xd1\x56\x10\x51\xcf\x79\x8d\x33\xea\xdb\x33\x76\x2b\xc1\x41\xdd\x5a\xdf\xc0\x03\x94\x42\xb9\x9e\xc4\xe0\xa2\x1d\xe5\xa0\x2c\x68\xa1\x4a\x92\x4a\x25\xce\xe5\xdf\x30\x23\x78\xfe\x13\xab\x81\xcc\x11\x09\x7a\xd7\x63\x01\x72\x1a\x70\xc3\x1e\x40\x3e\x13\x31\x73\x4e\xac\x48\xef\xdc\x70\xe6\x3b\xcb\x2f\x8b\x42\x83\x31\x88\x03\xce\x81\x89\x52\xe7\x40\x15\x88\xc7\x21\x6e\x1b\x63\x99\x7c\xdb\x14\x70\x0c\x65\x6c\x25\x09\xe7\xd0\xeb\xad\xb0\x5b\x9f\x68\x76\xc4\xd4\x74\xca\xea\x6d\x44\x08\x1e\x43\x0d\xb7\x55\xa3\xc6\x59\xd3\xf9\x78\xc1\x57\x35\x13\x72\xe4\x9c\xce\x83\x33\xad\x34\xac\x1c\x71\x6e\xde\x87\xfc\xfa\xcb\x4d\x64\xf4\xf8\xed\x2c\x12\x1d\x93\xbc\x5b\x0b\x29\x8d\x37\xcc\x7a\xdd\xa4\xa8\x1b\xa6\xca\x91\xd9\xc7\x69\x50\xf0\x89\x37\x75\xcd\x54\xe1\x68\x50\xb9\xb1\x1a\x2c\xaf\xd0\x2d\xf2\x8b\x9d\x60\x2c\x7b\xe8\x24\xd3\xe8\xbe\x1e\x4d\x12\x5b\x77\x96\x5f\xf0\x1a\xff\x6a\xdd\xf2\x4d\xfe\x05\xaf\x43\xa7\x9a\xa9\x12\x26\x75\x7c\x16\xd2\x7b\x25\x21\x9e\x84\x2a\x4b\x4b\x5e\x49\x50\xf1\xf2\x35\x59\x2e\x10\xe9\xc6\xcb\x1d\x3e\x77\x34\x55\xe0\x96\x9e\x24\x50\xc5\x80\x11\xa1\x33\x71\x4a\xb2\x35\xf9\xf2\x2b\x92\xff\x00\xdb\x4f\x8d\x2e\x82\x6e\xc4\x8a\xc0\x1f\x24\x13\x64\xe1\x4f\xd9\x3a\x44\x4b\x03\x88\xa7\x64\x77\x8e\x63\x9f\x80\xbe\xa0\x9c\x5e\x38\x94\xce\x68\xdd\x49\x2b\x78\x23\xbb\x5a\xb9\x33\x74\x1c\x1d\x92\x20\x8b\x1e\x9c\x82\x2a\x76\xc4\x3d\x4f\xf5\xd2\xf3\x36\x27\x63\xad\xf8\x61\x75\x7e\x7d\x23\xd6\xcb\xc7\x10\xc7\xbd\x83\x41\x3c\x39\xe0\x50\x06\x0e\xa7\x99\x46\x94\x44\x2a\x4f\xc9\x1e\x5f\xbb\x00\x44\xf2\xca\xb9\xfc\x3b\xd9\x81\xe2\x5b\xc4\xd7\xd1\x9e\x9c\x9f\xe1\x68\xca\xcc\xd0\x79\x6a\xfd\xf7\x46\xaf\x9f\xd4\xaf\x37\x5e\x3d\xb6\xa0\x05\x28\x0e\xbd\x8e\xff\xb5\x4a\x77\xb9\x9c\x8b\xaf\xf6\xb7\xcc\xc2\x8f\x1f\x48\x7e\xa5\x0a\xff\x2f\xe2\x49\x78\x57\x1f\xfa\x85\x1c\xde\xc3\x53\x32\xb5\xdc\x36\x46\xf8\x6a\xd3\xa6\xc6\x29\xa6\xd7\x23\xd2\x58\x17\x67\x16\x1e\xc7\xb7\x83\x9e\xf6\xf3\xbf\xb3\x4c\x87\x43\xaa\x6e\x34\xb6\x2a\x8c\xed\x7b\x51\x56\xd2\x3f\xf6\x71\x6e\xbb\x32\xe7\x73\x2f\xd3\xac\xca\xdf\xfb\x4f\x48\xc2\x4e\xd1\x55\x7e\x6d\xa1\xee\x03\xaa\xa0\x70\xbf\xe7\xbc\xc6\x3e\x9c\x4a\xff\x7e\x0b\x0b\xb5\xd8\x78\xa0\x3c\x21\xf4\x12\x18\xe9\xfb\x85\x1b\x70\x30\xe7\xab\xa2\x8b\x3c\x3c\x39\xec\x89\xc7\x7f\x99\x73\xe0\x0d\x02\x6f\xd3\xac\xfd\x6b\x14\xb5\x4e\xeb\xee\x48\x47\xe3\xe6\x87\x21\x7d\x20\x19\x0c\x53\x42\x24\x73\x72\x60\x1e\x44\xe4\x5c\xf0\xee\x8a\xed\xfb\x6d\x1b\x3f\x41\x59\xec\xf1\x5a\xc5\x13\xe4\x97\x1a\xd8\xd8\x72\x69\xc3\x29\xa9\x26\x83\xfc\x5a\x19\x2b\x6c\x17\xa5\xf3\x12\xa6\x7f\x6b\x64\xa7\x2c\x80\x7e\x92\xe9\x89\xc7\x3f\x61\xfa\x3c\x31\x7d\x71\xc8\xf3\x26\xf0\x3c\xcd\x79\xc0\xf3\x31\xe9\x8c\x89\x16\x2b\x92\x6d\xfa\x4f\xdc\xf8\x93\x38\xdc\xf6\x9f\xc3\x6c\x93\xff\xac\x4b\xa6\xc4\x9f\x23\xad\x78\xc6\x37\xbb\x9d\x4c\x74\xcd\x89\xff\x20\xa4\x0c\x7b\x61\xf8\x64\x48\x7a\x95\x53\x87\x1f\xfb\x0d\xcc\x36\xfb\x3b\xb8\x6b\xf2\xa3\x6f\xf2\x64\xd2\xd1\xde\x7e\xf6\x4f\xc1\xe1\x92\xfe\x4f\x2b\x8a\x3b\x19\x3c\x2b\x90\x70\x3f\xfc\x1c\xfc\x3b\x00\x00\xff\xff\x52\xbc\x3d\x68\x5f\x0b\x00\x00")
func themesTexResume_templateTexBytes() ([]byte, error) { func themesTexResume_templateTexBytes() ([]byte, error) {
return bindataRead( return bindataRead(
@ -83,7 +83,7 @@ func themesTexResume_templateTex() (*asset, error) {
return nil, err return nil, err
} }
info := bindataFileInfo{name: "themes/tex/resume_template.tex", size: 2782, mode: os.FileMode(420), modTime: time.Unix(1525989483, 0)} info := bindataFileInfo{name: "themes/tex/resume_template.tex", size: 2911, mode: os.FileMode(420), modTime: time.Unix(1525990888, 0)}
a := &asset{bytes: bytes, info: info} a := &asset{bytes: bytes, info: info}
return a, nil return a, nil
} }