A mirror of my website's source code.

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

Breadcrumbs are now in a nav wrapper(caused validation error).

steve0greatness,
created on Sunday, 11 February 2024, 04:51:31 (1707627091), received on Monday, 6 May 2024, 02:55:38 (1714964138)
Author identity: Steve0Greatness <steve0greatnessiscool@gmail.com>

84d0767bc65bbd0e6850ee58f9e6b7f2f0d61ddf

views/_macros.html

@@ -1,14 +1,16 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            {% macro GenerateBreadcrumbs(pages=[]) %}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        <ol role="navigation" class="breadcrumbs" aria-roledescription="Site breadcrumb">
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            <li>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                <a href="/">Index</a>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            </li>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            {% for page in pages %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            <li {% if loop.revindex0 == 0 %}aria-current="location"{% endif %}>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                {% if loop.revindex0 != 0 %}<a href="{{page['href']}}">{% endif %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                    {{page["title"]}}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                {% if loop.revindex0 != 0 %}</a>{% endif %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            </li>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            {% endfor %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        </ol>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        {%- endmacro %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        <nav aria-label="breadcrumbs" aria-roledescription="Site breadcrumb">
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	<ol class="breadcrumbs">
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            		<li>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                		<a href="/">Index</a>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	    	</li>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            		{% for page in pages %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	    	<li {% if loop.revindex0 == 0 %}aria-current="location"{% endif %}>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                	{% if loop.revindex0 != 0 %}<a href="{{page['href']}}">{% endif %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                   		{{page["title"]}}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                		{% if loop.revindex0 != 0 %}</a>{% endif %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            		</li>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            		{% endfor %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	</ol>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        </nav>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        {%- endmacro %}