Using variables in blogger posts

I use a blogger to create a podcast. It works very well, but I find that I copy / paste a lot of things when two or three variables and the template will do the job very well.

Most posts look like this:

Étude de Exode 6.14-7.13. <br /> <audio controls> <source src="file.mp3" type="audio/mpeg"> <embed height="50" width="100" src="file.mp3"> </audio> <biblia:bible layout="minimal" resource="lsg" width="400" height="600" historyButtons="false" navigationBox="false" resourcePicker="false" shareButton="false" textSizeButton="false" startingReference="Ex6.14-7.13"></biblia:bible> 

In case of a change of three things:

  • text above ("Exode Instance 6.14-7.13." in the example)
  • link to the sound file (actually it is data:post.link , but it seems I can not use expr:src )
  • links passed to the biblia:bible tag (here "Ex6.14-7.13")

Is there a way to use the template and variables for my blog posts instead of manually copying and changing things each time?

+7
templates blogger
source share
1 answer

I personally am not familiar with a blogger, but it looks like you can create a widget and assign variables in this way:

 <html xmlns = 'http://www.w3.org/1999/xhtml' xmlns:b = 'http://www.google.com/2005/gml/b' xmlns:data = 'http://www.google.com/2005/gml/data' xmlns:expr = 'http://www.google.com/2005/gml/expr' > <b:includable id='post' var='post'> <data:post.title/> <br /> <audio controls> <source src="<data:post.file/>" type="audio/mpeg"> <embed height="50" width="100" src="<data:post.file/>"> </audio> <biblia:bible layout="minimal" resource="lsg" width="400" height="600" historyButtons="false" navigationBox="false" resourcePicker="false" shareButton="false" textSizeButton="false" startingReference="<data:post.reference/>"></biblia:bible> </b:includable> 

and then use it ...

 <b:include name='post' data='p' cond='index < 10'/> 

This is a complete shot of crap, although I have never used a blogger personally, it's just from the documentation.

I reference the material from here:

https://support.google.com/blogger/answer/46995?hl=en

http://thoughtsomething.blogspot.com/2009/01/understanding-blogger-template-1.html

http://helplogger.blogspot.com/2014/03/how-to-create-custom-color-and-font-variable-definitions-to-blogger.html

+1
source share

All Articles