New design changes
This commit is contained in:
		
					parent
					
						
							
								3dd1d845ee
							
						
					
				
			
			
				commit
				
					
						4af8530948
					
				
			
		
					 3 changed files with 101 additions and 31 deletions
				
			
		| 
						 | 
				
			
			@ -1,24 +1,30 @@
 | 
			
		|||
{% macro render_blog_post(post, from_index=false) %}
 | 
			
		||||
  <div class="blog-post">
 | 
			
		||||
  {% if from_index %}
 | 
			
		||||
    <h2><a href="{{ post|url }}">{{ post.title }}</a></h2>
 | 
			
		||||
 | 
			
		||||
          <div class="post-preview">
 | 
			
		||||
            <div class="row">
 | 
			
		||||
              <div class="col-md-4">
 | 
			
		||||
                  {% if from_index %}<h2><a href="{{ post|url }}"><img style="margin-top:11%" src="{{post.thumbnail}}"/></a></h2>{% else %}<h2><img style="margin-top:11%" src="{{post.thumbnail}}"/></h2>{% endif %}
 | 
			
		||||
              </div>    
 | 
			
		||||
              <div class="col-md-8">
 | 
			
		||||
  {% if from_index %}<a href="{{ post|url }}"><h2 class="post-title">{{ post.title }}</h2></a>
 | 
			
		||||
  {% else %}
 | 
			
		||||
    <h2>{{ post.title }}</h2>
 | 
			
		||||
    <h2 class="post-title">{{ post.title }}</h2>
 | 
			
		||||
  {% endif %}
 | 
			
		||||
  <p class="meta">
 | 
			
		||||
    written by
 | 
			
		||||
    {% if post.twitter_handle %}
 | 
			
		||||
      <a href="https://twitter.com/{{ post.twitter_handle
 | 
			
		||||
        }}">{{ post.author or post.twitter_handle }}</a>
 | 
			
		||||
    {% else %}
 | 
			
		||||
      {{ post.author }}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    on {{ post.pub_date }}
 | 
			
		||||
  </p>
 | 
			
		||||
  {% if from_index %}
 | 
			
		||||
  {{ post.abstract }}
 | 
			
		||||
  {% else %}
 | 
			
		||||
  {{ post.body }}
 | 
			
		||||
  {% endif %}
 | 
			
		||||
  </div>
 | 
			
		||||
                
 | 
			
		||||
                <p class="post-meta" style="font-size:0.9em;">
 | 
			
		||||
               Posted on {{ post.pub_date }} by {% if post.twitter_handle %}<a href="https://twitter.com/{{ post.twitter_handle }}">{{ post.author or post.twitter_handle }}</a>{% else %}{{ post.author }} {% endif %}
 | 
			
		||||
                </p>
 | 
			
		||||
                <p class="post-subtitle">
 | 
			
		||||
                  <p>
 | 
			
		||||
                    {% if from_index %}
 | 
			
		||||
                    {{ post.abstract }}
 | 
			
		||||
                    {% else %}
 | 
			
		||||
                    {{ post.body }}
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                  </p>
 | 
			
		||||
                </p>
 | 
			
		||||
              </div>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <hr>
 | 
			
		||||
{% endmacro %}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue