190 lines
		
	
	
	
		
			6.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			190 lines
		
	
	
	
		
			6.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <div id="sidebar">
 | |
|     <div class="inner">
 | |
| 
 | |
|       <!-- Search -->
 | |
|       {% if DUCKDUCKGOSEARCHURL %} 
 | |
|       <section id="search" class="alt">            
 | |
|         <iframe src="https://duckduckgo.com/search.html?site={{ DUCKDUCKGOSEARCHURL }}&prefill=Search" style="overflow:hidden;margin:0;padding:0;width:300px;height:40px;" frameborder="0"></iframe>
 | |
|       </section>
 | |
|       {% endif %} 
 | |
|       {% if BIO_IMAGE %}
 | |
|       <section id="bio">
 | |
|         <img src="{{ SITEURL }}/images/{{ BIO_IMAGE }}" style="max-width: 75%; display: inline; float: center; border-radius: 50%;" />
 | |
|       </section>
 | |
|       {% endif %}
 | |
| 
 | |
|       <!-- Menu -->
 | |
|       <nav id="menu">
 | |
|         <header class="major">
 | |
|           <h2>Pages</h2>
 | |
|         </header>
 | |
|           <ul>
 | |
|             {% for title, link in MENUITEMS %}
 | |
|                 <li><a href="{{ link }}">{{ title }}</a></li>
 | |
|             {% endfor %}
 | |
|             {% if DISPLAY_PAGES_ON_MENU %}
 | |
|               {% for p in pages %}
 | |
|                 <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
 | |
|               {% endfor %}
 | |
|             {% endif %}
 | |
|           </ul>
 | |
|           {% if DISPLAY_CATEGORIES_ON_MENU %}
 | |
|           <br />
 | |
|           <br />
 | |
|           <header class="major">
 | |
|             <h2>Categories</h2>
 | |
|           </header>
 | |
|           
 | |
|           <ul>
 | |
|             
 | |
|               {% for cat, null in categories %}
 | |
|                 <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
 | |
|               {% endfor %}
 | |
|           </ul>
 | |
|           {% endif %}
 | |
|       </nav>
 | |
| 
 | |
|        <!-- Section --> <!-- No mini posts for now
 | |
|         <section>
 | |
|           <header class="major">
 | |
|             <h2>Ante interdum</h2>
 | |
|           </header>
 | |
|           <div class="mini-posts">
 | |
|             <article>
 | |
|               <a href="#" class="image"><img src="images/pic07.jpg" alt="" /></a>
 | |
|               <p>Aenean ornare velit lacus, ac varius enim lorem ullamcorper dolore aliquam.</p>
 | |
|             </article>
 | |
|             <article>
 | |
|               <a href="#" class="image"><img src="images/pic08.jpg" alt="" /></a>
 | |
|               <p>Aenean ornare velit lacus, ac varius enim lorem ullamcorper dolore aliquam.</p>
 | |
|             </article>
 | |
|             <article>
 | |
|               <a href="#" class="image"><img src="images/pic09.jpg" alt="" /></a>
 | |
|               <p>Aenean ornare velit lacus, ac varius enim lorem ullamcorper dolore aliquam.</p>
 | |
|             </article>
 | |
|           </div>
 | |
|           <ul class="actions">
 | |
|             <li><a href="#" class="button">More</a></li>
 | |
|           </ul>
 | |
|         </section> -->
 | |
|      
 | |
|       {% if LINKS %} 
 | |
|       <section id="blogroll">
 | |
|         <header class="major">
 | |
|           <h2>Blogroll</h2>
 | |
|         </header>
 | |
|         {% for name, link in LINKS %}
 | |
|         <li><a href="{{ link }}">{{ name }}</a></li>
 | |
|         {% endfor %}  
 | |
|       </section>
 | |
|       {% endif %}
 | |
| 
 | |
|       {% if SOCIAL %} 
 | |
|       <section id="social">
 | |
|         <header class="major">
 | |
|           <h2>My Socials</h2>
 | |
|         </header>
 | |
|         {% for name, link in SOCIAL %}
 | |
|         <li><a rel="me" href="{{ link }}">{{ name }}</a></li>
 | |
|         {% endfor %}  
 | |
|       </section>
 | |
|       {% endif %}
 | |
| 
 | |
|       {% if series.items() %}
 | |
|       <!-- Section - The various series -->
 | |
|       <section id="article-series">
 | |
|         <header class="major">
 | |
|           <h2>Here are some post series</h2>
 | |
|         </header>
 | |
|         {% for series_name, series_articles in series.items() %}
 | |
|         {% set article = series_articles[0] %}
 | |
|         <article class="card">
 | |
|           <div class="card-body">
 | |
|           <a href="{{ SITEURL }}/{{ article.url }}"><h3 class="card-title">{{ series_name }}</h3></a>
 | |
|             <ul class="actions">
 | |
|               <li><a href="{{ SITEURL }}/{{ article.url }}" class="button">Start</a></li>
 | |
|             </ul>
 | |
|           </div>
 | |
|         </article>
 | |
|         {% endfor %}
 | |
|       </section>
 | |
|       {% endif %}
 | |
| 
 | |
|       {% if WEBRING_FEED_URLS %}
 | |
|       <section>
 | |
|             <div class="webring">
 | |
|                 <h2>Webring</h2>
 | |
|                 {% for article in webring_articles %}
 | |
|                 <p><a href="{{ article.link }}">{{ article.title }}</a></p>
 | |
|                 <p>{{ article.date|strftime('%d %B %Y') }}<!-- {{ article.summary}}--></p>
 | |
|                 {% endfor %}
 | |
|             </div>        
 | |
|       </section>
 | |
|       {% endif %}
 | |
| 
 | |
|       {% if FEDIRING is sameas True %}
 | |
|       <section>
 | |
|         <div class="webring">
 | |
|           <h2>Webring - Fediverse</h2>
 | |
|           <p>
 | |
|             <a href="https://fediring.net/previous?host={{ FEDIRINGURL }}">(PREV)</a>
 | |
|             <a href="https://fediring.net/">Fediring</a>
 | |
|             <a href="https://fediring.net/next?host={{ FEDIRINGURL }}">(NEXT)</a>
 | |
|           </p>      
 | |
|           {% if FEDIRINGRANDOM is sameas True %}
 | |
|           <p>
 | |
|             <a href="https://fediring.net/random">Fediring Random</a>
 | |
|           </p>
 | |
|           {% endif %}
 | |
|         </div>        
 | |
|       </section>
 | |
|       {% endif %}
 | |
| 
 | |
| 
 | |
|       {% if CONTACT_EMAIL or CONTACT_PHONE_NUM or CONTACT_HOME_ADDR %}
 | |
|       <section>
 | |
|         <header class="major">
 | |
|           <h2>Get in touch</h2>
 | |
|         </header>
 | |
|         <ul class="contact">
 | |
|         {% if CONTACT_EMAIL %}
 | |
|           <li class="icon sold fa-envelope">{{ CONTACT_EMAIL }}</li>
 | |
|         {% endif %}
 | |
|         {% if CONTACT_PHONE_NUM %}
 | |
|           <li class="icon solid fa-phone">{{ CONTACT_PHONE_NUM }}</li>
 | |
|         {% endif %}
 | |
|         {% if CONTACT_HOME_ADDR %}
 | |
|           <li class="icon solid fa-home">{{ CONTACT_HOME_ADDR }}</li>
 | |
|         {% endif %}
 | |
|         </ul>
 | |
|       </section>
 | |
|       {% endif %}
 | |
| 
 | |
|       {% if THEME_DARKMODE == 1 %}
 | |
|       <img src="https://media.geeksforgeeks.org/wp-content/uploads/20200122115631/GeeksforGeeks210.png"/>
 | |
|       <div>
 | |
|         <button onclick="darkMode()">Darkmode</button>
 | |
|       </div>
 | |
|       <script>
 | |
|         function darkMode() {
 | |
|           var element = document.body;
 | |
|           element.classList.toggle("dark-mode");
 | |
|         }
 | |
|       </script>
 | |
|       {% endif %}
 | |
| 
 | |
| 
 | |
|       <!-- Footer -->
 | |
|       <footer id="footer">
 | |
|         <p class="copyright">© Untitled. All rights reserved.<br />
 | |
|           Original design inspired by: <a href="https://html5up.net">HTML5 UP</a>.<br />
 | |
|           Modifed by <a href="https://jeffmackinnon.com/i-built-a-pelican-theme.html">Jeff MacKinnon</a><br />
 | |
|           {% if POWEREDBY == True %}Proudly powered by <a href="https://getpelican.com/">Pelican</a>, which takes great advantage of <a href="https://www.python.org/">Python</a>.{% endif %}
 | |
|           </p>
 | |
|           {% if SITELICENSE %}
 | |
|           {{ SITELICENSE }}
 | |
|           {% endif %}
 | |
|       </footer>
 | |
| 
 | |
|     </div>
 | |
|   </div>
 |