 4f106a0cd4
			
		
	
	
		4f106a0cd4
		
	
	
	
	
		
			
			* Adds inset_illustration as a drop-down of svg data rather than as an uploady thing. * Adds external link types to the homepage models * Migrations * Initial site template with our new shiny templates * Moves all lca2017-specific assets to lca2017 subdirectory; symlinks from dist * Reflects changes in site_base * Deletes most of new assets in dist/ * WIP home page * Adds external link list support * Adds white-right panel type to the home page * Removes an oops * Adds copyright text to the site. * Updates the remaining illustrations to be more compact. * Adds illustration field to content_page, and adds fields into the news page. * News index page * News page is done! * Formats the dates properly * Commits migrations * Optimises SVG files * better logo * oops * Removes margin on logo. * Optimises svgs, and uses tania’s originals * One more
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% load staticfiles %}
 | |
| {% load wagtailimages_tags %}
 | |
| 
 | |
|   <div class="panel panel__compact panel__bg">
 | |
|   {% if page.background_image %}
 | |
|     {% image page.background_image width-2000 as background_image %}
 | |
|     <div style="background-image: url('{{ background_image.url }}');" class="panel--bg"></div>
 | |
|   {% else %}
 | |
|     <div class="panel--bg"></div>
 | |
|   {% endif %}
 | |
|   <div class="panel--content">
 | |
|     <div class="panel--2-3">
 | |
|       <h2>{{ page.title }}</h2>
 | |
|       <p class="lede">{{ page.intro }}</p>
 | |
|     </div>
 | |
|     {% if page.inset_illustration or page.portrait_image %}
 | |
|       <div class="panel--1-3">
 | |
|           {% if page.inset_illustration %}
 | |
|           <div class="illustration">
 | |
|             <img
 | |
|             src="{% static 'lca2017/images/svgs/illustrations/' %}{{ page.inset_illustration }}"
 | |
|             />
 | |
|           </div>
 | |
|         {% elif page.portrait_image %}
 | |
|           <div class="portrait">
 | |
|             {% image page.portrait_image width-640 as portrait_image %}
 | |
|             <div style="background-image: url('{{ portrait_image.url }}');" class="portrait--img"></div>
 | |
|           </div>
 | |
|         {% endif %}
 | |
|       </div>
 | |
|     {% endif %}
 | |
|   </div>
 | |
| </div>
 |