Commit graph

55 commits

Author SHA1 Message Date
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
Jed Ludlow
baf5a16a06 Place copyright year ahead of copyright name
Traditional placement is to have the year precede the name, so
modifying standard templates to match this.
2020-08-26 09:38:58 -06:00
Alexandre Vicenzi
6b87efa507 Rename files 2020-04-20 23:19:01 +02:00
Sumner Evans
582adec6a4
Greatly simplified all of the logic; moved the JS to a separate file 2020-04-16 15:54:36 -06:00
Sumner Evans
a18c421354
Made the switch text translateable 2020-04-16 13:48:24 -06:00
Sumner Evans
0d047f7327
Address a few comments from from PR 2020-04-16 10:40:37 -06:00
Sumner Evans
ec1acb115a
Fixed some bugs with various settings combinations 2020-04-16 10:35:27 -06:00
Sumner Evans
904484e2b4
Added themeing options
Added THEME_COLOR, THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE, and THEME_COLOR_ENABLE_USER_OVERRIDE options
2020-04-16 10:35:27 -06:00
Sumner Evans
9b3495da5d
Moved all of the styles in to Flex from my website 2020-04-16 10:35:26 -06:00
Sumner Evans
0d56e19d6a
Default to monokai in dark theme and fixed defaulting mechanism in the JS 2020-04-16 10:35:26 -06:00
Sumner Evans
927306ddb9
Undo changes that are included in other PRs 2020-04-16 10:35:26 -06:00
Sumner Evans
02e1404e34
Make pygments style switching work when JS is off, but prefers-color-scheme is enabled 2020-04-16 10:35:26 -06:00
Sumner Evans
5955f45a30
Improve the theme detection logic 2020-04-16 10:35:26 -06:00
Sumner Evans
6816d4800b
Add a couple comments 2020-04-16 10:35:26 -06:00
Sumner Evans
91aa9016e7
Dark mode for Pygments 2020-04-16 10:35:25 -06:00
Sumner Evans
543ae58a37
Added support for dark mode detection 2020-04-16 10:35:25 -06:00
Sumner Evans
9bb3eb2456
Added isso.min.js as default ISSO_EMBED_JS_PATH 2020-04-15 09:15:46 -06:00
Sumner Evans
eb68d3a9d9
Added support for Isso 2020-04-15 09:08:08 -06:00
Alexandre Vicenzi
03ac34078a Change powered by message. 2019-10-19 21:02:23 +02:00
Nicolas Le Gall
56ff304672 Replace Piwik code with Matomo (#183)
Piwik was renamed to Matomo
2019-06-24 21:51:12 +02:00
east4ming
b16ec8531e
change statuscake img src
change statuscake img src.
From "https://www.statuscake.com/app" to "https://app.statuscake.com"
2019-03-27 09:52:12 +08:00
Nicholas Nadeau, P.Eng., AVS
0cd2d00d99
striptags from article title 2018-07-30 18:46:25 -04:00
Alexandre Vicenzi
598e0e49b2
Merge pull request #127 from Phyks/cc_images
Add an option to host CC icon rather than querying an external service
2018-06-23 22:12:28 -03:00
Eric Light
3c4067cdce
Fix iFrame target 2018-01-06 16:11:27 +13:00
Eric Light
f9c6297eae
Fix JS .src target 2018-01-06 16:09:16 +13:00
jswh Elric
4d1d792174 remove duoshuo 2017-11-12 01:26:34 +08:00
Eric Light
229ad20d36 Move Google Analytics import into the <head> section (#138)
* Move Google Analytics import into the <head> section

* Changes to move Google Tag Manager into <head> tag, while leaving the noscript section in the <body> tag.
2017-09-20 17:34:36 -03:00
Phyks (Lucas Verney)
81b48555e7 Add an option to host CC icon rather than querying an external service
See #112 for more context on this.
2017-06-23 14:52:50 +02: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
Oliver Pratt
772035ea96 Make the pagination buttons draw with the same height (#92) 2017-03-02 17:01:46 -03:00
Antoine Lorence
25be6c1a1a Fix <noscript> tag in Piwik tracking script (#94) 2017-03-02 09:11:19 -03:00
Matěj Šmíd
92db3aa5f7 changed variable name 2017-02-15 14:23:50 +01:00
Matěj Šmíd
ec0a6f90e4 moved the conditional to the base.html 2017-02-15 14:08:35 +01:00
Matěj Šmíd
88dda65cad github corners support 2017-02-15 13:43:08 +01:00
jswh
2fb46afce1 add doushuo 2016-11-30 17:35:47 +08: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
Alexandre Vicenzi
df41de5f6a Merge pull request #51 from marcelhuth/i18n
Reworked to newstyle gettext and named vars
2016-08-10 14:58:58 -03:00
Marcel Huth
5497850c51 Reworked to newstyle gettext and named vars 2016-08-10 19:28:32 +02:00
Alexandre Vicenzi
2947c38fbc Merge pull request #46 from marcelhuth/i18n
Localization support for Flex theme
2016-08-08 23:49:21 -03:00
Alexandre Vicenzi
38013068b7 Change Cover metadata to relative path. 2016-08-08 23:08:44 -03:00
Marcel Huth
bda626352c Added the template files for localization 2016-07-30 14:34:54 +02:00
Alexey Nikolaenko
7549977ef1 Allow to setup design for Status Case badge
Now it's possible to setup desired design with STATUSCAKE property.
Example: { 'trackid': 'id', 'days': 7, 'design': 4, 'rumid': id}
2016-06-12 11:38:36 +01:00
Mr. Senko
2f56acec3d Enable StatusCake RUM. Closes #16 2016-05-05 01:05:41 +03:00
Sascha Wagner
ad1ea4186d Strip tags from title in JSON-LD
(cherry picked from commit 0bb74527677de3163f9fa81d7320680b0f1adb91)
Signed-off-by: Sascha Wagner <sascha.wagner.89@gmail.com>
2016-02-02 08:56:47 +01: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
8ecbec719d Refactor. 2015-11-24 23:55:55 -02:00
Mark Caudill
ad627036b6 Reorganize guag.es integration per alexandrevicenzi. 2015-11-24 19:01:08 -05:00