-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 1.79 KB
/
index.js
1
(function () {var a={data:function(){return{headline:null,issue:null,url:null,siteTitle:null,pageTitle:null,isSite:null,titleField:null,defaultTitle:null,separator:null,baseTitle:null,descriptionField:null,defaultDescription:null}},created:function(){var t=this;this.load().then(function(e){t.headline=e.headline,t.url=e.url,t.siteTitle=e.siteTitle,t.pageTitle=e.pageTitle,t.isSite=e.isSite,t.titleField=e.titleField,t.defaultTitle=e.seoDefaultTitle,t.separator=e.separator,t.baseTitle=e.seoBaseTitle,t.descriptionField=e.descriptionField,t.defaultDescription=e.seoDefaultDescription}).catch(function(e){t.issue=e})},computed:{seotitle:function(){return this.isSite?(""!=this.separator?"..."+this.separator:" ")+(this.$store.getters["content/values"]()[this.titleField]||this.siteTitle):(this.$store.getters["content/values"]()[this.titleField]||this.defaultTitle)+this.separator+this.baseTitle},seodescription:function(){return this.isSite?this.$store.getters["content/values"]()[this.descriptionField]:this.$store.getters["content/values"]()[this.descriptionField]||this.defaultDescription}}};if(typeof a==="function"){a=a.options}Object.assign(a,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("section",{staticClass:"k-seopreview-section"},[_c("header",{staticClass:"k-section-header"},[_c("k-headline",[_vm._v(_vm._s(_vm.headline))])],1),_vm._v(" "),_c("div",{staticClass:"seo-preview"},[_c("h3",[_vm._v(_vm._s(_vm.seotitle))]),_vm._v(" "),_c("p",{staticClass:"link"},[_vm._v(_vm._s(_vm.url))]),_vm._v(" "),_c("p",[_vm._v(_vm._s(_vm.seodescription))])])])};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());panel.plugin("reh/seo-preview-section",{sections:{seopreview:{extends:a}}});})();