diff --git a/assets/public/js/application.js b/assets/public/js/application.js index 2bb54df6..0b0d8b8a 100644 --- a/assets/public/js/application.js +++ b/assets/public/js/application.js @@ -1,7 +1,8 @@ 'use strict'; document.addEventListener('DOMContentLoaded', event => { - document.getElementById('logout').insertAdjacentHTML('beforebegin', ` + let link = document.querySelector('header > div:first-child a:first-child').getAttribute('href') + "/settings/" + document.getElementById('logout').insertAdjacentHTML('beforebegin', `
settings
diff --git a/binary.go b/binary.go index 8d066f29..893ab9fe 100644 --- a/binary.go +++ b/binary.go @@ -89,7 +89,7 @@ func publicJsJsbeautifyrc() (*asset, error) { return a, nil } -var _publicJsApplicationJs = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xac\x58\x6d\x6f\xdb\x36\x10\xfe\x9c\x00\xf9\x0f\x9c\x06\x54\x12\xe6\xc8\x49\x36\x60\x40\x62\x07\xe8\x9a\x0e\xe9\x96\x2c\x43\x93\x01\x03\x86\x01\xa1\xc5\xb3\xcd\x46\xa2\x3c\x8a\x4a\x66\xac\xfe\xef\xbb\xd3\x9b\xdf\x28\x5b\x6a\xaa\x2f\x56\x44\x3e\x0f\xef\x1e\xde\x5b\xeb\x66\x29\xb0\xd4\x68\x19\x1a\xf7\xe2\xe8\xf0\xe8\x50\x24\x61\x16\x83\x32\x01\x17\xe2\xfd\x33\xbe\xdc\xc8\xd4\x80\x02\xed\xb9\x57\x77\xb7\xef\x12\x65\xe8\x5b\xc2\x05\x08\xb7\xc7\x80\x76\xb0\xe1\x25\xfb\xef\xe8\x90\xe1\x53\xa3\x27\x60\xde\x47\x40\xaf\x3f\xcd\x3f\x08\xcf\x8d\x92\x49\x92\x19\xd7\x0f\xa4\x4a\x41\x9b\xb7\xe2\x13\x0f\x71\xf1\xfa\xe1\xf6\xc6\x73\x47\x30\x4e\x34\x8c\x60\x22\x15\x72\x3e\x0e\x38\x9b\x6a\x18\x0f\x9d\x3e\x17\xb1\x54\xfd\x14\x8c\x91\x6a\x92\xf6\x9d\xcb\xe2\x14\xc6\x06\x42\x3e\xb3\x30\xe2\x69\x3a\x74\x78\x68\x64\xa2\x96\x6b\x6c\x20\xab\xa5\x98\x1b\xd0\x92\x47\xc7\x32\x4c\x54\xea\x5c\x56\x4c\x83\xbe\x5c\x52\xf5\x91\xab\xfa\x6b\xd0\xe7\x97\x8f\x3e\x0a\xb1\xf0\xf7\xa9\x11\xe1\x1b\x72\x59\x44\x90\x63\xe6\xbd\x48\x25\x92\x97\x20\x4a\x42\x4e\xd6\x05\x33\x6e\xa6\x8a\xc7\x80\xfe\x87\x51\x26\x20\xf5\xdc\x7e\x58\x88\xd9\x77\x7d\xbf\x82\xee\xd4\x50\xc1\x8b\x90\x1a\x35\x9c\x45\x28\xde\x34\x89\x04\x68\x36\x64\xce\x58\x46\xf0\xd7\x39\xd7\xe1\x14\xcc\x7c\x06\x7f\x07\x41\xe0\x5c\x74\xe1\xd3\x10\x27\xcf\xb0\xe1\xdf\x13\xcc\xd1\x03\xba\x10\xdc\x77\x25\x75\xbe\xec\x77\xe2\xdd\x16\x6d\x49\xba\x2a\xda\x92\xb3\x92\x2f\x5f\x0d\x70\xf7\xbb\x44\x00\x1b\x0e\xd9\xd9\x8f\x6b\x1a\xb5\xb7\x21\x8f\x04\x32\x20\x30\xc9\x64\x12\x81\xe7\x82\xe2\xa3\x08\xa3\x77\xd5\x97\xea\xc1\x00\x79\x90\x31\x60\xa8\x7a\x9e\xbf\x72\xa5\xdd\xcf\x7d\xe6\x51\x86\x96\x33\xd7\xb5\x1c\xb3\xe8\xb1\xb3\x93\x93\x4d\x03\x16\xad\x94\x38\xfd\xde\xaa\x44\xb1\x6f\xa6\xf3\xdf\x2b\x18\xf3\x2c\x32\x5e\x11\xc4\x9b\x5b\x23\x30\xac\x32\xaf\xa5\x23\x16\x1f\x88\x05\x83\x1c\xfe\x45\x96\x7c\x4f\x80\x4a\x9b\x0f\xf4\xe5\x6e\xec\xb9\xe7\x56\x7d\x09\x44\x69\x50\x63\xd2\x6c\x44\xd5\x47\x4d\xbc\x93\x5e\x41\xd7\x04\xab\xe3\xdb\x82\x2d\xec\xf8\x8e\x9d\xf6\x2a\x53\x40\x4d\xcc\xd4\x46\x45\x9a\x16\x16\x60\xe6\x38\x7e\x65\x4d\xcd\xde\x00\x29\x3d\x1d\xb2\xe3\x53\x7f\xcd\x14\xc7\x69\xd4\x78\x94\x19\x93\xa8\x3d\x22\x37\xca\x34\x35\x71\x84\xd8\x82\x24\x08\xa7\x5c\x4d\xe0\x21\xa1\xca\x4b\x1e\x37\xa1\x34\xfc\x93\x41\x8a\x89\x45\x59\xcb\xfe\xbc\xbd\xb9\x36\x66\xf6\xb1\xf8\x68\x05\x95\x80\x20\x99\x81\xf2\x9c\xdf\xef\xee\x1f\x9c\x1e\xdb\xa8\x5e\xbb\x70\x98\x31\x25\xfd\x35\x60\x53\xc0\x1c\xff\x19\xcb\x11\xa9\x4a\x95\x03\x7f\xba\x81\xdf\x56\xd2\x22\xba\x96\x79\x37\x85\x12\xbb\x1d\x53\x1a\xb9\xe7\xa9\xc1\x5e\x50\xa8\x88\xe2\x8c\x33\x95\x77\x0d\xcf\x9a\x4b\xf4\xd0\xa5\x57\x14\x39\xc1\x3d\x11\x50\x04\xfc\xd0\x88\xa1\x67\xe3\xbe\xae\x12\x05\x5e\x4d\x44\x46\x64\x29\xfb\x66\x98\xa7\x7f\x2f\xbf\x63\x9b\xed\x36\x23\x4a\xec\xb0\xc0\xee\x32\x81\x9e\x8d\x1b\x44\x97\x9b\x3a\x12\xa6\x0d\xfd\xec\xb0\x62\x61\x5f\xb2\x7c\x5e\x6c\x15\xb4\xfa\xb5\x72\x73\xd1\xa6\xb7\x82\x90\x26\xd1\x5d\xe6\x0b\xac\x05\xb1\x6c\x9a\x2f\xf8\x18\xc7\x00\x8c\x93\x7c\xb8\x58\x99\x1c\xb4\x9c\x4c\x0d\x0d\x0e\x07\x6c\x50\x26\xab\x14\x43\x67\x96\x8d\xb0\xb9\x4f\xf3\x05\x5c\x49\x67\x5c\xe5\xaf\x07\xbb\x06\x0b\x25\x8a\xa1\x82\x10\xfd\x1a\x52\xa2\x4b\xc6\xe5\x02\xee\x29\x0e\x2c\xff\xa0\x11\xe4\x71\x59\xad\xe9\xde\xbd\x46\x5f\x05\x1e\xee\xfa\xec\xf3\xe7\x66\x39\xca\x03\x8b\x9d\x3e\x7b\xf3\xa6\x79\x6b\xa9\xb5\x1f\xe0\x66\x8e\x09\x19\x3c\x61\xa0\xe4\xd5\x31\x4c\xe2\x19\xd6\x14\x70\xec\xe3\x09\x86\xa5\x9e\xdf\x43\x04\x21\xe2\x3d\xf7\xdb\x82\x88\x05\xb9\xaa\xbb\x6e\xa2\x1e\xf4\xd6\x54\x4f\x31\xd9\x45\x16\x41\x21\xfb\x01\x5b\x15\xfe\x60\xc7\x4c\xc7\x23\xae\xe3\x4a\x7b\x82\x2d\xd5\xaf\x49\xee\x4b\xee\xd5\x9b\x59\x5e\xc1\xe3\x7a\x9b\x6c\x8e\xb1\x92\xc5\x3a\xd9\x84\x91\x0c\x9f\x2c\x11\x5b\x3d\x2d\xfb\x33\xd5\x70\x91\x17\x9a\x66\x3b\x8a\x5b\xb5\x36\x66\x0a\x9c\x7d\x41\x71\x55\x06\x85\x6d\x9c\xda\x73\xf2\x1a\x83\xd5\x80\xad\x19\x86\x1c\xa2\x41\x97\x4b\x95\x4f\xab\x7b\xe3\xf0\x62\x1b\x5f\x44\xe4\x92\x66\x2d\x54\x2d\xfb\xb7\x1b\xef\x66\xac\x56\x57\xc9\x28\x1e\xce\xc7\x52\xa7\xe6\x38\x9c\xca\xa8\x98\x0a\xad\x57\xc2\xa9\x6d\x24\x3a\x3e\xfb\x94\x7a\x4d\xbc\xb4\x8e\xd2\x5a\x4c\xea\xd6\xcd\x3b\x77\xf2\x8d\x2e\xfe\x47\x8b\x26\xde\xdc\x83\x7f\x95\x79\xa9\x24\x71\xdb\x83\xaa\x14\x43\x20\x45\x51\x33\x10\xdb\xf5\x2f\xf7\x77\xbf\x05\xc5\xe8\x26\xc7\x73\x8f\xc4\xdd\x12\xed\x15\xed\xfb\x4b\x5a\xf7\x57\x69\xdb\xed\xda\xdf\x9e\x4e\x56\xe6\x58\xe7\x22\xd3\xa2\xc0\xec\xac\x0e\x42\x63\x71\xb6\xd4\x85\x46\xc0\x08\x23\xeb\xe9\xb8\x84\x95\xff\x86\x5c\x0b\xcc\x15\xff\x5f\x53\x05\xba\x54\x80\x76\xd9\x5f\x4a\xbc\x2f\xf9\x5f\x95\xf8\xdd\x92\xbe\x53\xc2\x77\x4c\xf6\xce\x89\xde\x0c\xf8\x08\x13\x0a\x44\x2a\xff\x3d\xe6\x18\x9d\xe1\x6c\x60\x05\xb6\x48\xf2\x2f\x4c\xf0\xae\xc9\xfd\xea\xc4\x5e\x6c\x05\xf4\xa2\xfe\x0f\xa2\xff\x03\x00\x00\xff\xff\x7e\xf1\x82\xcd\x3e\x13\x00\x00") +var _publicJsApplicationJs = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xac\x58\x6d\x4f\xe3\x46\x10\xfe\x0c\x12\xff\x61\xeb\x56\x67\x5b\x17\x1c\xa0\x95\x2a\x41\x8c\x44\x8f\xab\xb8\x16\x4a\x75\x50\xa9\x52\x55\x89\x8d\x3d\x71\xf6\xb2\x59\xa7\xf6\x1a\x1a\xdd\xe5\xbf\x77\xc6\x6f\x79\x5b\x27\xf6\x51\x7f\x89\x93\xdd\xe7\xd9\x99\x67\xe7\x0d\xec\x2c\x05\x96\xea\x44\x04\xda\xbe\x38\x3a\x3c\x3a\x0c\xe3\x20\x9b\x82\xd2\x1e\x0f\xc3\xf7\xcf\xf8\x72\x2b\x52\x0d\x0a\x12\xc7\xbe\xbe\xbf\x7b\x17\x2b\x4d\xbf\xc5\x3c\x84\xd0\xee\x31\xa0\x1d\xcc\xbf\x64\x9f\x8f\x0e\x19\x3e\x12\x34\x93\x42\x4d\x98\xcf\x6a\xa2\x7f\x32\x48\xe6\x0f\x20\x21\xd0\x31\xb2\x8c\x01\xb1\x09\xbb\x64\xa1\x78\x3e\x1f\x89\x24\xd5\xc7\xc1\x58\xc8\x90\xf1\xd5\x6f\xb6\xeb\x45\xa0\xaf\x34\x5a\x36\xcc\x34\x20\x2c\x81\x91\xed\xb2\xb7\xcc\xea\xa7\xa0\xb5\x50\x51\xda\xb7\x8a\x43\xeb\x93\x10\xf1\x5e\x02\xbd\xfe\x34\xff\x10\x3a\xb6\x8c\xa3\x38\xd3\x48\x25\x54\x0a\x89\xbe\x0a\x3f\xf1\x00\x17\x6f\x1e\xef\x6e\x1d\x7b\x08\xa3\x38\x81\x21\x44\x42\xa1\x23\x4f\x03\xce\xe8\x08\xdf\xfa\xee\x33\x39\xb0\xb0\x2e\x0b\x72\xc6\x06\x68\x28\x0b\x24\x4f\x53\xdf\xe2\x81\x16\xb1\x5a\xae\xb1\x81\xa8\x96\xa6\x5c\x43\x22\xb8\x3c\x16\x41\xac\x52\xeb\xb2\xb2\x72\xd0\x17\x4b\xaa\x3e\x72\x55\xdf\x06\x7d\x7e\xf9\xe4\xa2\xe8\x0b\x77\x9f\xf2\x12\xdf\x90\xcb\x20\xb8\x18\x31\xe7\x45\xa8\x30\x7e\xf1\x64\x1c\x70\xb2\xce\x9b\x71\x3d\x56\x7c\x0a\xe8\x76\x20\xb3\x10\x52\xc7\xee\x07\xc5\xc5\xf5\x6d\xd7\xad\xa0\x3b\xa5\x53\xf0\x12\x8a\x04\xa5\x9b\x49\xd4\x6c\x1c\x4b\xba\x33\x9f\x59\x23\x21\xe1\xaf\x73\x9e\x04\x63\xd0\xf3\x19\xfc\xed\x79\x9e\x75\xd1\x85\x2f\x81\x69\xfc\x0c\x1b\xfe\x4d\x60\x8e\x1e\xd0\x3d\xe0\xbe\x6b\x91\xe4\xcb\x6e\x27\xde\x6d\xd1\x96\xa4\xab\xa2\x2d\x39\x2b\xf9\xf2\x55\x0f\x77\xbf\x8b\x43\x60\xbe\xcf\xce\x7e\x5c\xd3\xa8\xbd\x0d\x79\x24\x90\x01\x9e\x8e\xa3\x48\x62\xd4\x82\xe2\x43\x89\x99\xb2\xea\x4b\xf5\x60\x80\x3c\x8a\x29\x60\x84\x3a\x8e\xbb\x72\xa5\xdd\xcf\x7d\xe6\x32\x43\xcb\x99\x6d\x1b\x8e\x59\xf4\xd8\xd9\xc9\xc9\xa6\x01\x8b\x56\x4a\x9c\x7e\x6f\x54\xa2\xd8\x37\x4b\xf2\xcf\x6b\x18\xf1\x4c\x6a\xa7\x08\xe2\xcd\xad\x54\x10\x2a\xf3\x5a\x3a\x62\xf0\x81\x58\x30\xc8\xe1\x5f\x64\xc9\xf7\x78\xa8\xb4\xfe\x40\xbf\xdc\x8f\x1c\xfb\xdc\xa8\x2f\x81\x28\x0d\x6a\x4c\x9a\x0d\xa9\xd2\xa9\xc8\x39\xe9\x15\x74\x4d\xb0\x3a\xbe\x0d\xd8\xc2\x8e\xb7\xec\xb4\x57\x99\x02\x2a\xd2\x63\x13\x15\x69\x5a\x58\x80\x99\x63\xb9\x95\x35\x35\x7b\x03\xa4\xf4\xd4\x67\xc7\xa7\xee\x9a\x29\x96\xd5\xa8\x31\x16\x49\x1d\xab\x3d\x22\x37\xca\x34\xd6\x53\x89\xd8\x82\xc4\x0b\xc6\x5c\x45\xf0\x18\x53\x95\x27\x8f\x9b\x50\x09\x60\x69\x4f\x31\xb1\x28\x6b\xd9\x9f\x77\xb7\x37\x5a\xcf\x3e\x16\x3f\x1a\x41\x25\xc0\x8b\x67\xa0\x1c\xeb\xf7\xfb\x87\x47\xab\xc7\x36\xaa\xd7\x2e\x1c\x66\x4c\x49\x7f\x93\x37\x11\xc7\xfe\x19\xcb\x11\xa9\x4a\x95\x03\x3f\xba\x81\xaf\x2a\x69\x11\x5d\xcb\xbc\x9b\x42\x85\xbb\x1d\x53\x09\x72\xcf\x53\x8d\xbd\xa0\x50\x11\xc5\x19\x65\x2a\xef\x1a\x8e\x31\x97\xe8\xa1\x4b\xaf\x28\x72\x82\x07\x22\xa0\x08\xf8\xa1\x11\x43\xcf\xc6\x7d\x5d\xc7\x0a\x9c\x9a\x88\x8c\xc8\x52\xf6\x8d\x9f\xa7\x7f\x2f\xbf\x63\x93\xed\x26\x23\x4a\xac\x5f\x60\x77\x99\x40\xcf\xc6\x0d\xa2\xcb\x4d\x1d\x09\xd3\x86\x3e\x76\x58\xb1\x30\x2f\x19\x7e\x5e\x6c\x15\xb4\xfa\xb5\x72\x73\xd1\xa6\xb7\x42\x28\x70\x2e\x31\xb4\xd6\xc6\x4c\xc2\x5a\x30\x15\x4d\x63\x05\x1f\xe1\x18\x80\x71\x92\xcf\x14\x2b\x93\x43\x22\xa2\xb1\xa6\xc1\xe1\x80\x0d\xca\x64\x15\xa1\x6f\xcd\xb2\x21\x36\xf7\x71\xbe\x80\x2b\xe9\x8c\xab\xfc\xf5\x60\xd7\x60\xa1\xc2\x62\xa8\x20\x44\xbf\x86\x94\xe8\x92\x71\xb9\x80\x7b\x8a\x03\xcb\x2f\x34\x82\x3c\x2d\xab\x35\xdd\xbb\xd3\xe8\x6b\x88\x87\xe3\xd8\xf5\xe5\x4b\xb3\x1c\xe5\x81\xc5\x4e\x97\xbd\x79\xd3\xbc\xb5\xd4\xda\xf5\x70\x33\xc7\x84\xf4\x26\x18\x28\x79\x75\x0c\xe2\xe9\x0c\x6b\x0a\x58\xe6\xf1\x64\x63\x86\xfc\xb6\x20\x62\x5e\xae\xea\xae\x9b\xa8\xe7\xbb\x35\xd5\x53\x4c\xf6\x30\x93\x50\xc8\x7e\xc0\x56\x85\x3f\xd8\x31\xd3\x71\xc9\x93\x69\xa5\x3d\xc1\x96\xea\xd7\x24\x0f\x25\xf7\xea\xcd\x2c\xaf\xe0\x69\xbd\x4d\x36\xc7\x58\xc9\x62\x9c\x6c\x02\x29\x82\x89\x21\x62\xab\xa7\x65\x7f\xa6\x1a\x1e\xe6\x85\xa6\xd9\x8e\xe2\x56\x8d\x8d\x99\x02\x67\x5f\x50\x5c\x97\x41\x61\x1a\xa7\xf6\x9c\xbc\xc6\x60\x34\x60\x6b\x86\x21\x87\x68\xd0\xe5\x42\xe5\xd3\xea\xde\x38\xbc\xd8\xc6\x17\x11\xb9\xa4\x59\x0b\x55\xc3\xfe\xed\xc6\xbb\x19\xab\xd5\x55\x32\x8a\x87\xf5\xbf\x71\x9a\xae\x84\x53\xdb\x88\x93\xe9\xd9\xa7\xd4\x69\xe2\xa5\x75\x94\xd6\x60\x52\xb7\x6e\xde\xb9\x93\x6f\x74\xf1\x3f\x5a\x34\xf1\xe6\x1e\xfc\xab\xc8\x4b\x25\x89\xdb\x1e\x54\xa5\x18\x02\x29\x8a\x9a\x81\xd8\xae\x7f\x79\xb8\xff\xcd\x2b\x46\x37\x31\x9a\x3b\x24\xee\x96\x68\xaf\x68\xdf\x5f\xd3\xba\xff\x97\xb6\xdd\xae\xfd\xed\xe9\x64\x65\x8e\x75\x2e\x32\x2d\x0a\xcc\xce\xea\x10\x26\x58\x9c\x0d\x75\xa1\x11\x30\xc4\xc8\x9a\x1c\x97\xb0\xf2\x6f\xc8\xb5\xc0\x5c\xf1\xff\x35\x55\xa0\x4b\x05\x68\x97\xfd\xa5\xc4\xfb\x92\xff\x55\x89\xdf\x2d\xe9\x3b\x25\x7c\xc7\x64\xef\x9c\xe8\xcd\x80\x8f\x10\x51\x20\x52\xf9\xef\x31\x4b\x27\x19\xce\x06\x46\x60\x8b\x24\xff\xca\x04\xef\x9a\xdc\xaf\x4e\xec\xc5\x56\x40\x2f\xea\x7f\x10\xfd\x17\x00\x00\xff\xff\x3c\x39\x0e\x24\xaa\x13\x00\x00") func publicJsApplicationJsBytes() ([]byte, error) { return bindataRead( @@ -104,7 +104,7 @@ func publicJsApplicationJs() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "public/js/application.js", size: 4926, mode: os.FileMode(438), modTime: time.Unix(1467314447, 0)} + info := bindataFileInfo{name: "public/js/application.js", size: 5034, mode: os.FileMode(438), modTime: time.Unix(1467385816, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/hugo.go b/hugo.go index b9d7e1b9..73fd2a56 100644 --- a/hugo.go +++ b/hugo.go @@ -69,7 +69,7 @@ func (h Hugo) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) { frontmatter = "toml" } - http.Redirect(w, r, h.Config.BaseURL+"/config."+frontmatter, http.StatusTemporaryRedirect) + http.Redirect(w, r, h.FileManager.Configs[0].AbsoluteURL+"/config."+frontmatter, http.StatusTemporaryRedirect) return 0, nil }