Commit graph

22 commits

Author SHA1 Message Date
Richard Bos
9aeade2d23
Index summary improvement
Article summary improvement, in case the summary consist of only 1 line.
This patch takes care that the button "Continue Reading" is shown under the article, instead of against the article.
It will be located at the same location compared to multi-line summaries.
2021-07-26 21:58:29 +02:00
Richard Bos
8ed7c50492
Article summary improvement
Article summary improvement, in case the summary consist of only 1 line.
This patch takes care that the button "Continue Reading" is shown under the article, instead of against the article.
It will be located at the same location compared to multi-line summaries.
2021-07-26 16:49:46 +02:00
saagit
c205163fd7 Fix compatibility with Pelican 4.5.0 when PLUGINS is not set in pelicanconf.py
Pelican 4.5.0 changed the plugins mechanism and the default for
PLUGINS is now None.  The following type of construct is used in a
number of places in Flex:

    {% if 'tipue_search' in PLUGINS %}

If PLUGINS is not set in pelicanconf.py, the following exception will
be triggered under Pelican 4.5.0:

    TypeError: argument of type 'NoneType' is not iterable

The Pelican maintainers did not intend the examination of PLUGINS by
templates to be a stable API (per a discussion on IRC).  Per their
request, an enhancement request for a mechanism to do this has been
submitted here: https://github.com/getpelican/pelican/issues/2797

This commit changes the problematic constructs in Flex to be in the
style of:

    {% if PLUGINS and 'tipue_search' in PLUGINS %}

This allows Flex to work with Pelican 4.5.0 even if users do not
define PLUGINS.  Note that to use the new namespace plugins in Pelican
4.5.0, PLUGINS will have to be left at its default of None.

Resolves #245
2020-09-10 08:42:20 -07:00
Sumner Evans
7e66676ebe
Closes #220: Format strings need 's' after the name 2020-04-21 07:58:12 -06:00
Alexandre Vicenzi
533bc1760e Fix identation and missing trans 2020-04-20 23:36:36 +02:00
alxd
290f94f4de remove unnecessary whitespace if there's no Continue Reading button 2018-10-16 13:05:58 +02:00
alxd
b0f9d0fd21 compare article and summary contents, not their lengths 2018-10-16 13:05:24 +02:00
alxd
4f9262302f display "continue reading" button only if the article is longer than a summary 2018-10-07 12:41:39 +02:00
Matěj Šmíd
9b7f89a5e7 added support for representative_image plugin (#83) 2017-02-23 13:50:54 -03:00
Dmytro Litvinov
a76e802b8f Add variable DISABLE_URL_HASH for pretty URL in browser (#88) 2017-02-23 13:47:51 -03:00
Alexandre Vicenzi
6120f6bc25 AdSense improvments
See #47.
2016-11-07 22:13:43 -02:00
Alexandre Vicenzi
72180a8f4a Update translations. 2016-08-24 21:56:04 -03:00
Alexandre Vicenzi
723e047add Pluginless translation. 2016-08-11 21:07:52 -03:00
Alexandre Vicenzi
549a882acb Improvments.
- Better messages
- X min read
- pt_BR translation
- Better style for read more
2016-08-10 23:20:35 -03:00
Marcel Huth
5497850c51 Reworked to newstyle gettext and named vars 2016-08-10 19:28:32 +02:00
Marcel Huth
bda626352c Added the template files for localization 2016-07-30 14:34:54 +02:00
Alexandre Vicenzi
0d8e995fef Improve tags. 2016-06-02 20:11:21 -03:00
Alexandre Vicenzi
fe4d5a4ff2 Fix summary problems. 2016-02-15 22:45:54 -02:00
Tim Shaffer
968dae7551 Move the "tagged" bullet inside the conditional. 2015-08-27 15:52:17 -04:00
Alexandre Vicenzi
8fa5ee871d Change font size. 2015-07-22 01:26:35 -03:00
Alexandre Vicenzi
c2d323d09f Add OG and Rich Snippets. 2015-07-19 23:34:54 -03:00
Alexandre Vicenzi
b35cde0428 Flex theme. 2015-07-18 21:04:01 -03:00