आज के इस पोस्ट मैं ब्लॉगर टेम्पलेट थीम में editing से सम्बंधित कुछ बातें बताने वाला हूँ। जिससे आपको बहुत है फायदा मिलेंगा। अगर आप blogger में template को edit कर रहे होते, तब आपको बहुत से Error, Runtime के समय दिखता रहता है।
जब आप ब्लॉगर template को editing कर रहे होते है। तो जो error template को Save करते समय आते है। मुझे भी कई बार template Saving के दौरान Error मिलते है।
तो मैंने सोचा क्यों न इस पर पोस्ट लिख कर अपनी मदद के साथ दूसरों की भी मदद की जाये। क्योंकि ब्लॉगर टेम्प्लेट एडिटिंग से सम्बंधित हिंदी में पोस्ट गूगल पर बहुत कम है।
b:skin type="text/css" tag for CSS
ब्लॉगर के हर एक टेम्पलेट में यह tag अनिवार्य रूप से रहता है। Blogger XML Scripting Language का उपयोग करता है। जो भी हम Blogger के Theme section में Template को Edit करते वक्त instruction लिखते है। उसी आधार पर हमारे ब्लॉग के भिन्न-2 पेज बनते है।<b:skin type="text/css"> <![CDTA[ body{ } .example{ } ]]> </b:skin>
जब ऊपर के tag ब्राउज़र में run होते है। तो output निम्न होते है। b:skin, HTMLStyleElement ( style ) टैग में बदल जाता है।
<style type="text/css"> body{ } .example{ } </style>
Script Tag
अगर ब्लॉगर template एडिटिंग के समय नीचे दिये गए Script टैग को Save करेंगे । तो SyntaxError दिखता है।<script> var sum = (a, b) =>{ //code } for(var i = 0 ; i < 10; i++){ //code } </script>
ऐसा इसलिए कि दत्त स्क्रिप्ट टैग arrow function और जावास्क्रिप्ट for loop को रखता है। दोनों ही HTML के tag में उपयोगी होने वाले charater (>) को use करता है। इसलिए Blogger complile के समय Error दिखता है।
Error को fixed कैसे करे?
सिर्फ आपको js के single line cooment के साथ XML CDATA Node को उपयोग करना होंगा। और Problem Fixed हो जायेंगी।<script> //<![CDATA[ var sum = (a, b) =>{ //code } for(var i = 0 ; i < 10; i++){ //code } //]]> </script>ऊपर script टैग के Error Problem को Fixed कर दिया है।
या आप Script टैग के Problem को बिना CDATA के बिना भी हटा सकते है।
सिर्फ आपको HTML उपयोग होने वाला Data Character को HTML Entities से बदलना होंगा।
सिर्फ आपको HTML उपयोग होने वाला Data Character को HTML Entities से बदलना होंगा।
- < - <
- > - >
- & - &
The machines have been a huge hit on the Jersey Shore and the remaining unconverted Bally machines have been destroyed as they had turn out to be instantly out of date. One reason that the slot machine is so worthwhile to a on line casino is that the player must play 1xbet the high home edge and high payout wagers along with the low home edge and low payout wagers. In a extra traditional wagering sport like craps, the player is aware of} that sure wagers have almost a 50/50 likelihood of successful or dropping, but they solely pay a restricted quantity of} of the unique bet . Other bets have a higher home edge, but the player is rewarded with a lot bigger|an even bigger} win .
ReplyDelete