Article lists customization
This commit is contained in:
parent
caf34d5038
commit
f30beb9ec9
2 changed files with 15 additions and 8 deletions
13
README.md
13
README.md
|
@ -43,7 +43,6 @@ SOCIAL_GITHUB = 'Jeffmackinnon'
|
||||||
SOCIAL_LINKEDIN = 'jeffmackinnon'
|
SOCIAL_LINKEDIN = 'jeffmackinnon'
|
||||||
SOCIAL_FLICKR = 'jeffmackinnon'
|
SOCIAL_FLICKR = 'jeffmackinnon'
|
||||||
SOCIAL_MASTODON = 'https://bluenoser.me/@Jeff'
|
SOCIAL_MASTODON = 'https://bluenoser.me/@Jeff'
|
||||||
MICROBLOG = 'microblog'
|
|
||||||
|
|
||||||
# Frontpage customization
|
# Frontpage customization
|
||||||
#
|
#
|
||||||
|
@ -55,8 +54,16 @@ BANNERLINK = 'services/'
|
||||||
BANNERIMAGE = 'images/20130923124523.jpg'
|
BANNERIMAGE = 'images/20130923124523.jpg'
|
||||||
CORNERSTONE_CONTENT = True # If true add the html you want in include/cornerstone.html
|
CORNERSTONE_CONTENT = True # If true add the html you want in include/cornerstone.html
|
||||||
NEWSLETTER = '' # place your newsletter embed information here
|
NEWSLETTER = '' # place your newsletter embed information here
|
||||||
INCLUDECATEGORY = True # This includes the Category in the article list
|
|
||||||
MOREBUTTON = True #This adds the "MORE" to 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
|
# This is for https://fediring.net/#table-of-members and is located in the sidebar
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
<div class="posts">
|
<div class="posts">
|
||||||
{% for article in articles_page.object_list %}
|
{% for article in articles_page.object_list %}
|
||||||
<article>
|
<article>
|
||||||
{% set testing = 1 %}
|
{% if INCLUDE_IMAGE == True %}
|
||||||
{% if article.photo_image %}
|
{% 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>
|
<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 %}
|
||||||
|
{% endif %}
|
||||||
{% if (article.category != MICROBLOG ) %}
|
{% if (article.category != MICROBLOG ) %}
|
||||||
{% if (testing == 1) %}
|
{% if INCLUDE_TITLE != False %}
|
||||||
<header>
|
<header>
|
||||||
<h2 id="indexheader"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
|
<h2 id="indexheader"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
|
||||||
</header>
|
</header>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if (article.category != MICROBLOG)%}
|
{% if (article.category != MICROBLOG)%}
|
||||||
{% if (testing == 1) %}
|
{% if INCLUDE_SUMMARY != False %}
|
||||||
<div class="entry-content"> {{ article.summary }} </div>
|
<div class="entry-content"> {{ article.summary }} </div>
|
||||||
{% if INCLUDECATEGORY == True %}
|
{% if INCLUDE_CATEGORY == True %}
|
||||||
{% if article.category %}
|
{% if article.category %}
|
||||||
<div class="category">
|
<div class="category">
|
||||||
Posted in: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
Posted in: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||||
|
|
Loading…
Reference in a new issue