Commit graph

32 commits

Author SHA1 Message Date
Alexandre Vicenzi
50ce2b5fda Move series and related_posts plugins to a partial 2023-04-01 00:32:10 +02:00
Alexandre Vicenzi
b7ba801d11 Cleanup unused class 2023-04-01 00:32:10 +02:00
Florian Haas
20725c8dc0 Support Series plugin
The Pelican Series plugin (https://github.com/pelican-plugins/series)
is a convenient way for authors to link articles together as multiple
installments of a series.

Add support for the Series plugin to this theme: render articles
belonging to a series with a footer pointing to the preceding and
following articles in the series, using the same styling as "related
posts" links.

This implementation is heavily inspired by the Series plugin in the
Pelican bootstrap3 theme (MIT licensed):
https://github.com/getpelican/pelican-themes/blob/master/pelican-bootstrap3/templates/includes/series.html

Fixes #289.
2021-10-15 21:14:28 +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
Sumner Evans
eb68d3a9d9
Added support for Isso 2020-04-15 09:08:08 -06:00
Fidel Ramos
d13b9ae0a8
Set alternate link tags for translated content
`<link rel="alternate">` is good practice for SEO and helps people
find the content in their preferred language.
2019-10-27 15:21:23 +00:00
olipratt
656be15154 Close the addthis relatedposts div, and only include it if addthis is enabled in config 2018-02-24 13:59:51 +00:00
jswh Elric
4d1d792174 remove duoshuo 2017-11-12 01:26:34 +08:00
Alexandre Vicenzi
46fe5918cd Styles. 2017-04-22 20:16:33 -03:00
Marc-Antoine Parent
1802e84241 Support article translation 2017-04-22 19:34:29 -03:00
Oliver Pratt
a6f12ec781 Add support for the neighbors plugin (#98) 2017-04-22 03:54:50 -03:00
Alexandre Vicenzi
34c1143204 Fixes. 2017-04-22 03:41:39 -03:00
Alexandre Vicenzi
567cc8964f Fix #90. 2017-03-14 01:17:17 -03:00
Dmytro Litvinov
2d76193b9e Change ADD_THIS for working inline tool (#89) 2017-02-24 09:06:49 -03:00
Alexandre Vicenzi
23a0e8cdb4 Merge pull request #66 from jswh/master
add doushuo
2017-01-11 21:01:54 -02:00
jswh
2fb46afce1 add doushuo 2016-11-30 17:35:47 +08:00
Alexandre Vicenzi
6120f6bc25 AdSense improvments
See #47.
2016-11-07 22:13:43 -02:00
Alexandre Vicenzi
49e0a6880a Move variables to separated less file.
This allows to customize Flex more easily.
2016-09-14 00:04:22 -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
Matt Klich
2dd409a44d Rework related_posts css. 2016-02-22 11:32:50 -07:00
Matt Klich
0e629861c4 Initial support for the related_posts plugin. 2016-02-12 17:58:47 -07:00
Sascha Wagner
3090b344d8 Strip HTML tags from title
(cherry picked from commit 79314426a4e3a4142c3ed2907839a03fed6f972c)
Signed-off-by: Sascha Wagner <sascha.wagner.89@gmail.com>
2016-01-31 22:00:47 +01:00
Alexandre Vicenzi
8fa5ee871d Change font size. 2015-07-22 01:26:35 -03:00
Alexandre Vicenzi
244807c8bb Add extra space. 2015-07-21 00:53:19 -03:00
Alexandre Vicenzi
edc47c84ab AddThis support. 2015-07-21 00:49:51 -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