 6aa68cbe21
			
		
	
	
	6aa68cbe21
	
	
	
		
			
			- Remove category list from the menu items and add a link to the categories page. The pages are listed in the order given by the configuration variable MENU_PAGES. Each element must be the title of the page for which a link must be added. Add category to displayed article metadata. - Pagination nav is now flex to have a better and predictive layout and sizing. Element are no longer list elements. - Adapte css sheet to change in the layout and make necessary change to unify the style between different site using the theme.
		
			
				
	
	
		
			67 lines
		
	
	
	
		
			2.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
	
		
			2.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <nav class="menu-list">
 | |
|     <menu>
 | |
|         <li class="menu-item"{% if page_name=='index' %} aria-current="page" {% endif %}>
 | |
|             <a href="{{ SITEURL }}/">
 | |
|                 Accueil
 | |
|             </a>
 | |
|         </li>
 | |
|         {% if MENU_PAGES and MENU_PAGES|length > 0 %}
 | |
|         {% for p in MENU_PAGES %}
 | |
|         {% for q in pages %}
 | |
|         {% if q.title == p %}
 | |
|         <li class="menu-item"{% if q == page %} aria-current="page" {% endif %}>
 | |
|             <a href="{{ SITEURL }}/{{ q.url }}">{{ q.title }}</a>
 | |
|         </li>
 | |
|         {% endif %}
 | |
|         {% endfor %}
 | |
|         {% endfor %}
 | |
|         {% endif %}
 | |
|         {% if DISPLAY_CATEGORIES_ON_MENU %}
 | |
|         <li class="menu-item"{% if page_name=='categories' %} aria-current="page" {% endif %}>
 | |
|             <a href="{{ SITEURL }}/categories">Categories</a>
 | |
|         </li>
 | |
|         {% endif %}
 | |
|         {% if DISPLAY_TAGS_ON_MENU %}
 | |
|         <li class="menu-item"{% if page_name=='tags' %} aria-current="page" {% endif %}>
 | |
|             <a href="{{ SITEURL }}/tags">Tags</a>
 | |
|         </li>
 | |
|         {% endif %}
 | |
|     </menu>
 | |
| </nav>
 | |
| <nav id="nav-stack">
 | |
|     <menu>
 | |
|         <li class="menu-item stack"{% if page_name=='index' %} aria-current="page" {% endif %}>
 | |
|             <a href="{{ SITEURL }}/">
 | |
|                 Accueil
 | |
|             </a>
 | |
|         </li>
 | |
|         {% if MENU_PAGES and MENU_PAGES|length > 0 %}
 | |
|         {% for p in MENU_PAGES %}
 | |
|         {% for q in pages %}
 | |
|         {% if q.title == p %}
 | |
|         <li class="menu-item stack"{% if q == page %} aria-current="page" {% endif %}>
 | |
|             <a href="{{ SITEURL }}/{{ q.url }}">{{ q.title }}</a>
 | |
|         </li>
 | |
|         {% endif %}
 | |
|         {% endfor %}
 | |
|         {% endfor %}
 | |
|         {% endif %}
 | |
|         {% if DISPLAY_CATEGORIES_ON_MENU %}
 | |
|         <li class="menu-item stack"{% if page_name=='categories' %} aria-current="page" {% endif %}>
 | |
|             <a href="{{ SITEURL }}/categories">Categories</a>
 | |
|         </li>
 | |
|         {% endif %}
 | |
| {% if DISPLAY_TAGS_ON_MENU %}
 | |
|         <li class="menu-item stack"{% if page_name=='tags' %} aria-current="page" {% endif %}>
 | |
|             <a href="{{ SITEURL }}/tags">Tags</a>
 | |
|         </li>
 | |
|         {% endif %}
 | |
|         <div class="menu-stack-footer">
 | |
|             <button id="return-button" class="menu-button" title="retour">
 | |
|                 <img class="icon" src="/theme/icons/return.svg" alt="logo return">
 | |
|             </button>
 | |
|         </div>
 | |
|     </menu>
 | |
| </nav>
 | |
| </div>
 | |
| 
 |