Recent Blogs...
References
└ ,sources,11ty,inspiration,references
<ol> <li><a href="https://www.11ty.dev/">@11ty</a></li> <li><a href="https://www.ianfeather.co.uk/moving-this-blog-from-jekyll-to-11ty/">Ian Feather account of moving from jekyll to 11ty</a></li> <li><a href="https://24ways.org/2018/turn-jekyll-up-to-eleventy/">Paul Robert Lloyd experience moving from jekyll to 11ty</a></li> <li><a href="https://highlightjs.org/">Highlighting code</a></li> <li><a href="https://github.com/fullstacktraining/11ty-blog-jamstack-training/tree/module-1">starter code for this blogsite template</a></li> <li><a href="https://jamstack.training/courses/enrolled/693067">Create a blog using Jamstack</a></li> </ol>
Some of the issues during dev?
└ ,issues,11ty,frontmatter,filter,netlify-deploy
<ol> <li>Some Nasty 11ty build errors</li> </ol> <ul> <li>An error indicating circular reference between files in main dir (eg contact.njk) and blog posts in blog directory could not be resolved and therefore rolled back to previous commit</li> <li>going back to the previous commit required a bit of reading about git</li> </ul> <pre> <code> # Reset to previous commit $ git reset --hard HEAD # additional info - using HEAD~1 instead of HEAD will take # you back one previous commit # The --hard ensure that working tree is as it was # after the targetted commit # some addition stuff i learnt on the way $ cat .git/HEAD ref: refs/heads/master $ cat .git/refs/heads/master 2eb7fc1fba340db8f552755a201121fb63c5e0c7 $ git log -1 commit 2eb7fc1fba340db8f552755a201121fb63c5e0c7 (HEAD -> master) Author: X X Xurthy <aaa@aaa.com> Date: Tue Jul 21 12:51:44 2020 +0530 # Not that the two hashes are the same. indicating HEAD points to master branch </code> </pre> <ol start="2"> <li>Some pitfalls.</li> </ol> <ul> <li>I used <code>netlify.com</code> to deploy the site. Netlify can be configured to pick up the repo from github.com</li> <li>for some reason netlify build does not ignore <code>node_modules</code> during the build process and this could end up in build error</li> <li>11ty, while building locally ignores the <code>node_modules</code> without any specific action on part of the developer</li> <li>Fix: Add <code>node_modules</code> to <code>.gitignore</code></li> </ul> <ol start="3"> <li>Sources of data.</li> </ol> <ul> <li>be sure to read <a href="https://www.11ty.dev/docs/data/">11ty Source of data</a></li> <li>I wanted access to site wide access to some variables. The best place for that is a json file in <code>_data</code> directory</li> <li>variable <code>showkeywords</code> is used to show keywords in the left column. One can switch it off by making the value zero</li> </ul>
Code block in a markdown file?
└ Markdown,bootstrap,code,Example
<p>Not very happy with the styling of code but better than plain text. Something to workon in the future.</p> <div> <pre><code class="language-bash hljs" style="zenburn"> <pre><code>$ mkdir blog $ cd blog $ node init $ npm install 11ty/@eleventy --save-dev $ git init $ echo # README &gt; README.md </code></pre> <p></code></pre></div></p> <div><pre ><code class="language-js hljs javascript" style="zenburn"> // This is a comment // users.js // module.exports = { getName: () => { return 'Jimmy'; }, getLocation: () => { return 'Madivalla'; }, dob: '12-Jan-1920', // added on 21/Jul }; <pre><code>var x = 10; x = x * 200; co = require('users.js') if ( condition ) { return 1; } else { return 0; } </code></pre> <p></code></pre></div></p>
bootstrap classes in a markdown file?
└ Markdown,bootstrap,card,Example
<div class="container"> <h2>Card Image</h2> <p>Image at the top (card-img-top):</p> <div class="card" style="width:400px"> <img class="card-img-top" src="/img/FP.png" alt="Card image" style="width:100%"> <div class="card-body"> <h4 class="card-title">Jean Doe</h4> <p class="card-text">Some example text some example text. John Doe is an architect and engineer</p> <a href="#" class="btn btn-primary">See Profile</a> </div> </div> <br> <p>Image at the bottom (card-img-bottom):</p> <div class="card" style="width:400px"> <div class="card-body"> <h4 class="card-title">Jane Doe</h4> <p class="card-text">Some example text some example text. Jane Doe is an architect and engineer</p> <a href="#" class="btn btn-primary">See Profile</a> </div> <img class="card-img-bottom" src="/img/FY.png" alt="Card image" style="width:100%"> </div> </div>
Where does it come from?
└ Lorem,blog,dummy,Ipsum
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of &quot;de Finibus Bonorum et Malorum&quot; (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, &quot;Lorem ipsum dolor sit amet..&quot;, comes from a line in section 1.10.32.</p>
Where can I get some?
└ Lorem,blog,dummy,Ipsum
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.</p>
What is Lorem Ipsum?
└ Lorem,blog,dummy,Ipsum
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <p>Tiger : for testing search</p>
Why do we use it?
└ Lorem,blog,dummy,Ipsum
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
हम इसे क्यों प्रयोग करते हैं?
└ Lorem,blog,dummy,Ipsum,Hindi
<p>यह एक लंबा स्थापित तथ्य है कि जब एक पाठक एक पृष्ठ के खाखे को देखेगा तो पठनीय सामग्री से विचलित हो जाएगा. Lorem Ipsum का उपयोग करने का मुद्दा यह है कि इसमें एक और अधिक या कम अक्षरों का सामान्य वितरण किया गया है, 'Content here, content here' प्रयोग करने की जगह इसे पठनीय English के रूप में प्रयोग किया जाये. अब कई डेस्कटॉप प्रकाशन संकुल और वेब पेज संपादक उनके डिफ़ॉल्ट मॉडल पाठ के रूप में Lorem Ipsum उपयोग करते हैं, और अब &quot;Lorem Ipsum&quot; के लिए खोज अपने शैशव में कई वेब साइटों को उजागर करती है. इसके विभिन्न संस्करणों का वर्षों में विकास हुआ है, कभी दुर्घटना से, तो कभी प्रयोजन पर (हास्य और लगाव डालने के लिए).</p>

bootstrap classes in a markdown file?

Jul 19, 2020
Adding html that recognises bootstrap classes - an example

Card Image

Image at the top (card-img-top):

Card image

Jean Doe

Some example text some example text. John Doe is an architect and engineer

See Profile

Image at the bottom (card-img-bottom):

Jane Doe

Some example text some example text. Jane Doe is an architect and engineer

See Profile
Card image