Blogger template: Uncaught ReferenceError: index is not defined
75D <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I use the following code in my template:
<body>
<b:if cond='*data:blog.pageType* != ""'>
<script>
// 1. ok
console.log('<!--Index Page-->');
// 2. not ok
var pageType = *<data:blog.pageType/>*;
console.log(pageType); // *Uncaught ReferenceError: index is not
defined*
</script>
</b:if>
...
...
</body>
What is problem, why the error?
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.