Added styles-injection-possibility via front matter new include loop for collections
This commit is contained in:
		
					parent
					
						
							
								37c68f331a
							
						
					
				
			
			
				commit
				
					
						cd0c3c66da
					
				
			
		
					 3 changed files with 27 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -55,4 +55,8 @@
 | 
			
		|||
	{% if page.noindex == true %}<meta name="robots" content="noindex">{% endif %}
 | 
			
		||||
 | 
			
		||||
	<link type="text/plain" rel="author" href="{{ site.url }}/humans.txt" />
 | 
			
		||||
 | 
			
		||||
	{% unless page.style == NULL %}
 | 
			
		||||
	<style type="text/css">{{ page.style }}</style>
 | 
			
		||||
	{% endunless %}
 | 
			
		||||
</head>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										20
									
								
								_includes/list-collection.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								_includes/list-collection.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
{% comment %}
 | 
			
		||||
*   
 | 
			
		||||
*   This include lets you loop through a collection to list
 | 
			
		||||
*   all entries in that collection.
 | 
			
		||||
*   
 | 
			
		||||
*   If you set »published: false« in front matter of a collection page 
 | 
			
		||||
*   the page gots filtered out via unless
 | 
			
		||||
*
 | 
			
		||||
*   Example: {% include list-collection.html collection='wordpress' %}
 | 
			
		||||
*   
 | 
			
		||||
{% endcomment %}
 | 
			
		||||
 | 
			
		||||
<ul class="side-nav">
 | 
			
		||||
  {% for page in site.[include.collection] %}
 | 
			
		||||
    {% unless page.published == false %}
 | 
			
		||||
    <li><a href="{{ site.url }}{{ page.url }}">{{ page.title }}</a></li>
 | 
			
		||||
    {% endunless %}
 | 
			
		||||
  {% endfor %}
 | 
			
		||||
  <li> </li>
 | 
			
		||||
</ul>
 | 
			
		||||
| 
						 | 
				
			
			@ -24,7 +24,9 @@ permalink: "/roadmap/"
 | 
			
		|||
 | 
			
		||||
## Done
 | 
			
		||||
 | 
			
		||||
* [<s>Now with optional caption for header</s>]
 | 
			
		||||
* <s>Use `style` in front matter to inject css-styles into `<head></s>
 | 
			
		||||
* <s>Add include to loop through collections</s>
 | 
			
		||||
* <s>Now with optional caption for header</s>
 | 
			
		||||
* [<s>Refined humans.txt</s>](http://humanstxt.org/)
 | 
			
		||||
* [<s>Produce an introduction video to showcase *Feeling Responsive*</s>](https://www.youtube.com/embed/3b5zCFSmVvU)
 | 
			
		||||
* [<s>Additional header with text</s>]({{ site.url }}/headers/)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue