Tag-specific pages
This commit is contained in:
		
					parent
					
						
							
								dfbbf9888f
							
						
					
				
			
			
				commit
				
					
						de779761c6
					
				
			
		
					 2 changed files with 24 additions and 37 deletions
				
			
		|  | @ -1,33 +1,19 @@ | ||||||
| <!doctype html> | --- | ||||||
| <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | layout: page | ||||||
| <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> | comments: false | ||||||
| <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> | show_meta: false | ||||||
| <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]--> | breadcrumb: true | ||||||
| <head> | header: | ||||||
| {% include head.html %} |     image_fullwidth: "banner.jpg" | ||||||
| </head> | sidebar: right | ||||||
| 
 | --- | ||||||
| <body id="page"> | <div id="blog-index" class="row"> | ||||||
| 
 | <h2 class="entry-title">Posts tagged as '{{ page.title }}'</h2> | ||||||
| {% include browser-upgrade.html %} |     <div class="small-12 columns t30"> | ||||||
| {% include navigation.html %} |         <ul> | ||||||
| 
 |             {% for post in page.posts %} | ||||||
| <div id="main" role="main"> |                 <li><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a> ({{ post.date | date_to_string }})</li> | ||||||
|   <article class="hentry"> |             {% endfor %} | ||||||
|     <header class="header-title"> |         </ul> | ||||||
|       <div class="header-title-wrap"> |     </div><!-- small-12columns t30 --> | ||||||
|         <h1 class="entry-title">Posts tagged as '{{ page.tag }}'</h1> | </div><!-- blog-index  --> | ||||||
|       </div><!-- /.header-title-wrap --> |  | ||||||
|     </header> |  | ||||||
|     <div class="entry-content"> |  | ||||||
|       <ul> |  | ||||||
|         {% for post in page.posts %} |  | ||||||
|             <li><a href="{{ post.url }}">{{ post.title }}</a> ({{ post.date | date_to_string }} | Tags: {{ post | tags }})</li> |  | ||||||
|         {% endfor %} |  | ||||||
|       </ul> |  | ||||||
|     </div><!-- /.entry-content --> |  | ||||||
|   </article> |  | ||||||
| </div><!-- /#main --> |  | ||||||
| 
 |  | ||||||
| </body> |  | ||||||
| </html> |  | ||||||
|  |  | ||||||
|  | @ -3,19 +3,20 @@ layout: page | ||||||
| title: Tag Archive | title: Tag Archive | ||||||
| description: "An archive of posts sorted by tag." | description: "An archive of posts sorted by tag." | ||||||
| comments: false | comments: false | ||||||
|  | breadcrumb: true | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| {% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} | {% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} | ||||||
| {% assign tags_list = site_tags | split:',' | sort %} | {% assign tags_list = site_tags | split:',' | sort %} | ||||||
| 
 | 
 | ||||||
| <ul class="entry-meta inline-list"> | <ul class="small-block-grid-2 medium-block-grid-3 large-block-grid-5"> | ||||||
|   {% for item in (0..site.tags.size) %}{% unless forloop.last %} |   {% for item in (0..site.tags.size) %}{% unless forloop.last %} | ||||||
|     {% capture this_word %}{{ tags_list[item] | strip_newlines }}{% endcapture %} |     {% capture this_word %}{{ tags_list[item] | strip_newlines }}{% endcapture %} | ||||||
|   	<li><a href="#{{ this_word }}" class="tag"><span class="term">{{ this_word }}</span> <span class="count">{{ site.tags[this_word].size }}</span></a></li> |   	<li><a href="{{ site.url }}/tag/{{ this_word | slugify }}/" class="tag"><span class="term">{{ this_word }}</span> (<span class="count">{{ site.tags[this_word].size }})</span></a></li> | ||||||
|   {% endunless %}{% endfor %} |   {% endunless %}{% endfor %} | ||||||
| </ul> | </ul> | ||||||
| 
 | 
 | ||||||
| {% for item in (0..site.tags.size) %}{% unless forloop.last %} | <!--{% for item in (0..site.tags.size) %}{% unless forloop.last %} | ||||||
|   {% capture this_word %}{{ tags_list[item] | strip_newlines }}{% endcapture %} |   {% capture this_word %}{{ tags_list[item] | strip_newlines }}{% endcapture %} | ||||||
| 	<article> | 	<article> | ||||||
| 	<h2 id="{{ this_word }}" class="tag-heading">{{ this_word }}</h2> | 	<h2 id="{{ this_word }}" class="tag-heading">{{ this_word }}</h2> | ||||||
|  | @ -25,4 +26,4 @@ comments: false | ||||||
|     {% endif %}{% endfor %} |     {% endif %}{% endfor %} | ||||||
| 		</ul> | 		</ul> | ||||||
| 	</article><!-- /.hentry --> | 	</article><!-- /.hentry --> | ||||||
| {% endunless %}{% endfor %} | <!-- {% endunless %}{% endfor %}--> | ||||||
		Reference in a new issue