Convert new blogger code to old one
A blast from the past!
New Blogger (also known as Blogger 3.0) uses a different syntax than the old Blogger (also known as Blogger Classic). Here's a rough guide to help you convert your New Blogger code to Old Blogger code:
1. Post formatting
New Blogger:
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<!-- code here -->
</b:if>
Old Blogger:
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<!-- code here -->
</b:if>
No changes needed!
2. Conditional statements
New Blogger:
<b:if cond='data:blog.pageType == "static_page"'>
<!-- code here -->
</b:if>
Old Blogger:
<b:if cond='data:blog.pageType == "static_page"'>
<!-- code here -->
</b:if>
No changes needed!
3. Looping through posts
New Blogger:
<b:loop values='data:blog.posts' var='post'>
<!-- code here -->
</b:loop>
Old Blogger:
<b:loop values='data:blog.posts' var='post'>
<!-- code here -->
</b:loop>
No changes needed!
4. Post variables
New Blogger:
<b:eval expr='data:post.title'/>
Old Blogger:
<b:eval expr='data:post.title'/>
No changes needed!
5. URL formatting
New Blogger:
<b:include data='blog' name='all-data'/>
Old Blogger:
<b:include data='blog' name='all-data'/>
No changes needed!
6. Conditional formatting
New Blogger:
<b:if cond='data:blog.search.label == "search"'>
<!-- code here -->
</b:if>
Old Blogger:
<b:if cond='data:blog.search.label == "search"'>
<!-- code here -->
</b:if>
No changes needed!
7. Page-specific code
New Blogger:
<b:if cond='data:blog.pageType == "index"'>
<!-- code here -->
</b:if>
Old Blogger:
<b:if cond='data:blog.pageType == "index"'>
<!-- code here -->
</b:if>
No changes needed!
8. Template-specific code
New Blogger:
<b:if cond='data:blog.template == "minimal"'>
<!-- code here -->
</b:if>
Old Blogger:
<b:if cond='data:blog.template == "minimal"'>
<!-- code here -->
</b:if>
No changes needed!
9. Custom CSS
New Blogger:
<style>
/* code here */
</style>
Old Blogger:
<style>
/* code here */
</style>
No changes needed!
10. JavaScript
New Blogger:
<script>
// code here
</script>
Old Blogger:
<script>
// code here
</script>
No changes needed!
That's it! Most of the code remains the same, so you shouldn't need to make many changes. If you're still having trouble, feel free to provide more specific examples of your code, and I'll do my best to help you convert it.