HTTPS support coming to Blogspot

This morning we posted an update about Blogspot to Google’s Security Blog https://googleonlinesecurity.blogspot.com/2015/09/https-support-coming-to-blogspot.html.

Since 2008, we’ve worked to encrypt the connections between our users and Google servers. Over the years we’ve announced that Search, Gmail, Drive, and many other products have encrypted connections by default, and most recently, we’ve made a similar announcement for our ads products.

In this same vein, today we’re expanding on the HTTPS Everywhere mission and beginning an initial rollout of HTTPS support for Blogspot. HTTPS is a cornerstone of internet security as it provides several important benefits: it makes it harder for bad actors to steal information or track the activities of blog authors and visitors, it helps check that visitors open the correct website and aren’t being redirected to a malicious location, and it helps detect if a bad actor tries to change any data sent from Blogger to a blog visitor.

While this initial rollout won’t support all of our Blogger users, we wanted to take the first step to make HTTPS available for Blogspot; for those users who want to try it early.

We’re rolling this out gradually and Blogspot authors interested in enabling HTTPS support can begin opting-in today. Simply log into https://www.blogger.com, click on the blog you’d like to make HTTPS enabled, navigate to the Settings page, and select “yes” for “HTTPS Availability”. Unfortunately, blogs with custom domains are not supported in this first version.

unnamed HTTPS support coming to Blogspot

Once enabled, your blog will become accessible over both HTTP and HTTPS connections. Blogspot authors should be aware that if they choose to encrypt at this time, some of the current functionality of their blog may not work over HTTPS. This can be a result of template, gadgets, and blog post content, and is often caused by mixed content errors, some of which may be fixable by the author themselves.

We’ll also be moving some of our own blogs over to HTTPS gradually, beginning with the Official Google Blog and the Google Online Security Blog.

For the Blogspot authors who try this out – we’re interested to hear your feedback while we continue to improve this feature and its capabilities! For more information, visit our Help Center.

56_5TgZ87_8 HTTPS support coming to Blogspot

Even more expansions to the Blogger template language

Recently we introduced a new set of expressions to the Blogger templating language, designed to let you customize the HTML of each post and page on your blog. We’ve gotten great feedback on them, so we figured we’d offer even more.


Now you can try out new tags, like:


  • b:elseif for a simpler multiple-case b:if branch.
  • b:switch and b:case for succinctly handling several possible cases of a variable.
  • b:eval for evaluation of more complex expressions involving data variables.
  • b:with for creating a nicer variable alias for a calculated value.


h7ZHqz5HqLgbr2MTMOvSZ7wdxAWu9RtOseUimhb0iDaYIqmukp3Sghqf9gzqB6VFPIc3hiRD9pln69a5NumNbVvttzVphLhtzRWrwrubckA4vjU17nqZBga2TMGggNlstHU6pWM Even more expansions to the Blogger template language
An example of customizing the markup of your blog, using the new switch tags.



If you’d like to customize your blog’s template using these tags and expressions, just head to the dashboard under Settings > Template > Edit HTML. To see the full specs of the new tags or learn more, check out the help article.


Happy Templating!


Posted by Luke Bjerring, Software Engineer
aiqkWspL6Xc Even more expansions to the Blogger template language

Adding new expressions to Blogger templates

<

div>

Blogger’s template engine is powered by a flexible editing language, consisting of a set of Widget Tags which use expressions to conditionally change the output HTML for each post and page on your blog.

Using these expressions, you can customize the HTML output of your blog, to adjust the look and feel. You could, for example, show an image behind the header, but only on the homepage. Or add a flower icon, next to a post’s title, if the post has the ‘Flower’ label.

You can customize your blog’s template under Settings > Template > Edit HTML.



Previously, the expressions in Blogger’s templates could
  • Add or concatenate values with +
  • Subtract values with
  • Check for equality with != and ==
  • Compare values with <, >, <= and >=

Now, support has been added for many more expression operators, including:
  • Inversion of true/false values with !/not e.g. cond=‘!data:post.allowComments’>
  • Picking between 2 values with ?: e.g. expr:class=‘data:post.allowComments ? “comments” : “no-comments”‘
  • Checking if a value is a member of a set or array, with in/contains e.g. cond=‘data:blog.pageType in {“index”, “archive”}’>…
  • Combining multiple conditions with and/or e.g. cond=‘data:blog.pageType == “index” and data:post.allowComments’>…
  • Changing the order of operations with () e.g. expr:style=‘”max-width: ” + (data:width + 10) + “px;”‘>…

For a full specification of the new operators, see the help article.
Happy Templating!

Posted by Luke Bjerring, Software Engineer

pyZoB47osw0 Adding new expressions to Blogger templates