2015-01-10 07:23:15 +00:00
< div class = "container" >
< div class = "row" >
< div class = "page-header" >
2015-01-11 19:45:05 +00:00
< h1 > Site Configuration< / h1 >
< h3 > < span ng-bind = "Site.blogdir" > < / span > < button class = "btn btn-primary pull-right" type = "submit" form = "formSiteConf" > Save & Continue< / button > < / h3 >
2015-01-10 07:23:15 +00:00
< / div >
< / div >
2015-01-11 19:45:05 +00:00
< form id = "formSiteConf" class = "form-horizontal" ng-submit = "Site.upsert()" >
2015-01-10 07:23:15 +00:00
< div class = "row" >
< div class = "col-lg-12" >
< div class = "well bs-component" >
2015-01-11 11:04:30 +00:00
< fieldset >
< legend > General< / legend >
2015-01-10 07:23:15 +00:00
2015-01-11 11:04:30 +00:00
< div class = "form-group" >
2015-01-11 19:45:05 +00:00
< label for = "inputBlogTitle" class = "col-lg-3 control-label" > Title< / label >
< div class = "col-lg-9" >
< input
ng-model="Site.site.title"
2015-01-12 22:17:06 +00:00
required="required"
2015-01-11 19:45:05 +00:00
type="text" class="form-control" id="inputBlogTitle" placeholder="My Awesome Blog">
2015-01-10 07:23:15 +00:00
< / div >
2015-01-11 11:04:30 +00:00
< / div >
2015-01-10 07:23:15 +00:00
2015-01-11 11:04:30 +00:00
< div class = "form-group" >
2015-01-11 19:45:05 +00:00
< label for = "inputBlogTagline" class = "col-lg-3 control-label" > Tagline< / label >
< div class = "col-lg-9" >
< input
ng-model="Site.site.tagline"
type="text" class="form-control" id="inputBlogTagline"
placeholder="i.e. I have not failed, I've just found 10,000 ways that do not work.">
2015-01-10 07:23:15 +00:00
< / div >
2015-01-11 11:04:30 +00:00
< / div >
2015-01-10 07:23:15 +00:00
2015-01-11 19:45:05 +00:00
< div class = "row" >
< div class = "col-lg-12" >
< div class = "form-group" >
< label for = "inputSiteDesc" class = "col-lg-3 control-label" > Description
< small > (< span ng-bind = "Site.site.description.length || 0" > < / span > /140)< / small > < / label >
< div class = "col-lg-9" >
2015-01-12 03:59:14 +00:00
< textarea
ng-model="Site.site.description"
2015-01-12 22:17:06 +00:00
required="required"
2015-01-11 19:45:05 +00:00
class="form-control" id="inputSiteDesc" placeholder="i.e. For tips and tricks for try-hard ethical master cleanses, 3 wolf moons on Tumblr, disruptive lo-fi, preserving narwhals and eating kale chips, etc. YOLO.">< / textarea >
< / div >
< / div >
< / div >
< / div >
<!-- TODO -->
<!--
< div class = "form-group" >
< label for = "inputProdUrl" class = "col-lg-3 control-label" > URL< / label >
< div class = "col-lg-9" >
< input
ng-model="Site.site.url"
ng-change="Site.updateUrls()"
placeholder="i.e. https://example.com/myblog"
type="url"
class="form-control"
id="inputProdUrl">
< br / >
< / div >
< / div >
-->
2015-01-10 07:23:15 +00:00
< div class = "form-group" >
2015-01-11 11:04:30 +00:00
< label for = "inputProdHost" class = "col-lg-3 control-label" > Base URL< / label >
2015-01-10 07:23:15 +00:00
< div class = "col-lg-9" >
2015-01-11 19:45:05 +00:00
< input ng-model = "Site.site.base_url"
2015-01-12 22:17:06 +00:00
required="required"
2015-01-11 11:04:30 +00:00
placeholder="i.e. https://example.com in https://example.com/myblog"
2015-01-11 19:45:05 +00:00
type="url"
class="form-control"
id="inputProdHost">
< br / >
2015-01-10 07:23:15 +00:00
< / div >
< / div >
2015-01-11 19:45:05 +00:00
2015-01-10 07:23:15 +00:00
< div class = "form-group" >
< label for = "inputProdBase" class = "col-lg-3 control-label" > Base Path< / label >
< div class = "col-lg-9" >
2015-01-11 19:45:05 +00:00
< input ng-model = "Site.site.base_path"
2015-01-12 22:17:06 +00:00
required="required"
2015-01-12 03:59:14 +00:00
placeholder="i.e. / for blog.test.com or /blog for test.com/blog"
2015-01-11 19:45:05 +00:00
type="text"
class="form-control"
id="inputProdBase">
2015-01-10 07:23:15 +00:00
< / div >
< / div >
2015-01-11 19:45:05 +00:00
2015-01-10 07:23:15 +00:00
< div class = "form-group" >
< label for = "inputProdOutput" class = "col-lg-3 control-label" > Output Path< / label >
< div class = "col-lg-9" >
2015-01-11 19:45:05 +00:00
< input
2015-01-12 03:59:14 +00:00
ng-value="Site.blogdir + '/compiled'"
2015-01-11 19:45:05 +00:00
type="text" class="form-control" id="inputProdOutput" disabled>
2015-01-10 07:23:15 +00:00
< / div >
< / div >
2015-01-11 19:45:05 +00:00
2015-01-10 07:23:15 +00:00
< / fieldset >
< / div >
< / div >
< / div >
< div class = "row" >
< div class = "col-lg-12" >
< div class = "well bs-component" >
< fieldset >
2015-01-11 19:45:05 +00:00
< legend > Development< / legend >
2015-01-10 07:23:15 +00:00
< div class = "form-group" >
2015-01-11 19:45:05 +00:00
< label for = "inputDevHost" class = "col-lg-3 control-label" > Base URL< / label >
< div class = "col-lg-9" >
< input
value="https://local.dear.desi:65080"
type="url"
class="form-control"
id="inputDevHost"
disabled>
< br / >
2015-01-10 07:23:15 +00:00
< / div >
< / div >
< div class = "form-group" >
2015-01-11 19:45:05 +00:00
< label for = "inputDevBase" class = "col-lg-3 control-label" > Base Path< / label >
< div class = "col-lg-9" >
< input
value="/compiled_dev"
placeholder="i.e. /blog in https://example.com/blog"
type="text" class="form-control" id="inputDevBase"
disabled>
2015-01-10 07:23:15 +00:00
< / div >
< / div >
< div class = "form-group" >
2015-01-11 19:45:05 +00:00
< label for = "inputDevOutput" class = "col-lg-3 control-label" > Output Path< / label >
< div class = "col-lg-9" >
< input
ng-value="Site.blogdir + '/compiled_dev'"
type="text"
class="form-control"
id="inputDevOutput"
disabled>
2015-01-10 07:23:15 +00:00
< / div >
< / div >
2015-01-11 19:45:05 +00:00
< / fieldset >
< / div >
< / div >
< / div >
< div class = "row" >
< div class = "col-lg-12" >
< div class = "well bs-component" >
< fieldset >
< legend > Plugins< / legend >
2015-01-10 07:23:15 +00:00
< div class = "form-group" >
2015-01-11 19:45:05 +00:00
< label for = "inputGoogleAnalyticsId" class = "col-lg-3 control-label" > Google Analytics ID< / label >
< div class = "col-lg-9" >
< input
ng-model="Site.site.google_analytics_tracking_id"
placeholder="i.e. UA-XXXYYYZZ-1"
type="text"
class="form-control"
id="inputGoogleAnalyticsId"
>
< br / >
< small > Found in the Admin section of Google Analytics< / small >
2015-01-10 07:23:15 +00:00
< / div >
< / div >
< div class = "form-group" >
2015-01-11 19:45:05 +00:00
< label for = "inputDisqusShortname" class = "col-lg-3 control-label" > Disqus Shortname< / label >
< div class = "col-lg-9" >
< input
ng-model="Site.site.disqus_shortname"
placeholder="i.e. johndoe-blog"
type="text" class="form-control" id="inputDisqusShortname"
>
< br / >
< small > Found under Admin > Settings in Disqus< / small >
2015-01-10 07:23:15 +00:00
< / div >
< / div >
2015-01-11 19:45:05 +00:00
< / fieldset >
2015-01-10 07:23:15 +00:00
< / div >
< / div >
< / div >
2015-01-11 19:45:05 +00:00
< button class = "btn btn-primary pull-right" type = "submit" > Save & Continue< / button >
2015-01-10 07:23:15 +00:00
< / form >
< / div >