Article lists customization
This commit is contained in:
parent
caf34d5038
commit
f30beb9ec9
2 changed files with 15 additions and 8 deletions
11
README.md
11
README.md
|
@ -43,7 +43,6 @@ SOCIAL_GITHUB = 'Jeffmackinnon'
|
|||
SOCIAL_LINKEDIN = 'jeffmackinnon'
|
||||
SOCIAL_FLICKR = 'jeffmackinnon'
|
||||
SOCIAL_MASTODON = 'https://bluenoser.me/@Jeff'
|
||||
MICROBLOG = 'microblog'
|
||||
|
||||
# Frontpage customization
|
||||
#
|
||||
|
@ -55,9 +54,17 @@ BANNERLINK = 'services/'
|
|||
BANNERIMAGE = 'images/20130923124523.jpg'
|
||||
CORNERSTONE_CONTENT = True # If true add the html you want in include/cornerstone.html
|
||||
NEWSLETTER = '' # place your newsletter embed information here
|
||||
INCLUDECATEGORY = True # This includes the Category in the article list
|
||||
|
||||
# Article List Pages
|
||||
#
|
||||
INCLUDE_SUMMARY = False # Default True
|
||||
INCLUDE_TITLE = False # Default True
|
||||
INCLUDE_CATEGORY = True # Default False
|
||||
INCLUDE_IMAGE = True # Default False
|
||||
MOREBUTTON = True # This adds the "MORE" to the article list
|
||||
|
||||
MICROBLOG = 'microblog' # This caetgory will ALWAYS have just a picture and no headline or summary
|
||||
|
||||
# This is for https://fediring.net/#table-of-members and is located in the sidebar
|
||||
#
|
||||
FEDIRING = False
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
<div class="posts">
|
||||
{% for article in articles_page.object_list %}
|
||||
<article>
|
||||
{% set testing = 1 %}
|
||||
{% if INCLUDE_IMAGE == True %}
|
||||
{% if article.photo_image %}
|
||||
{% set testing = 0 %}
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" class="image"><img src="{{ SITEURL }}/{{ article.photo_image[2] }}" style="max-width: 100%; display: inline; float: center;" /></a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if (article.category != MICROBLOG ) %}
|
||||
{% if (testing == 1) %}
|
||||
{% if INCLUDE_TITLE != False %}
|
||||
<header>
|
||||
<h2 id="indexheader"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
|
||||
</header>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if (article.category != MICROBLOG)%}
|
||||
{% if (testing == 1) %}
|
||||
{% if INCLUDE_SUMMARY != False %}
|
||||
<div class="entry-content"> {{ article.summary }} </div>
|
||||
{% if INCLUDECATEGORY == True %}
|
||||
{% if INCLUDE_CATEGORY == True %}
|
||||
{% if article.category %}
|
||||
<div class="category">
|
||||
Posted in: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||
|
|
Loading…
Reference in a new issue