Commit graph

136 commits

Author SHA1 Message Date
Alexandre Vicenzi
23ac7c30a4 Hide CC icon
Fix #223
2021-02-04 22:06:02 +01:00
John Cairns
7fe8953a2f Flex-260: Add support for Microsoft Clarity 2021-02-02 16:17:19 -06:00
Christian Cardone
cf45bc0412
Add Google Global Site Tags configuration for new Google Analytics 4
This addition enables users to set their Google Measurement ID into the variable GOOGLE_GLOBAL_SITE_TAG in pelicanconf so that they can track analytics using GA 4 Closes #256 (#257)
2020-12-15 11:09:05 +01:00
saagit
17565a6365
Add option to output canonical URL (#240)
* Add option to output canonical URL

Canonical links are handy to tell search engines which page is
canonical amongst various permutations of URLs (e.g. https vs. http
and www subdomain or not).  Add an option to output one via the
following pelicanconf.py setting:

REL_CANONICAL = True
2020-12-01 19:39:12 +01: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
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
saagit
e0d18dc67c Update Google fonts to remove unused weight and CSS API v2.
The 300 weight of Source Code Pro is not used anywhere.  This change
also updates to using Google Fonts CSS API v2 and specifying
display=swap to avoid a "flash of invisible text".

Resolves #241
2020-08-25 16:16:34 -07:00
Alexandre Vicenzi
9d672dba84 Update translations 2020-04-21 18:55:22 +02: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
Alexandre Vicenzi
6b87efa507 Rename files 2020-04-20 23:19:01 +02:00
Sumner Evans
bc855d825b
Check PLUGINS variable for tipue_search instead of using USE_TIPUE_SEARCH 2020-04-20 14:28:38 -06:00
Alexandre Vicenzi
31e56276ea
Merge pull request #213 from sumnerevans/support-dark-theme
Support dark theme
2020-04-20 22:24:45 +02:00
Alexandre Vicenzi
6f73303f90
Merge pull request #215 from sumnerevans/fix-tipue-search
Added tipuesearch_content.js to base.html when tipuesearch is enabled
2020-04-20 10:11:38 +02:00
Sumner Evans
caef42ff2f
Fix extraneous whitespace at the macro level 2020-04-17 13:52:12 -06: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
7bddebeff1
Closes #216: strip whitespace from translated links in nav 2020-04-16 12:05:11 -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
65df195b4e
Added tipuesearch_content.js to base.html when tipuesearch is enabled 2020-04-16 10:08:26 -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
Jack McKew
fbe7d17fb0
Add tipue search integration (#193)
* Add tipue search integration
2020-02-07 18:06:17 +01:00
Fidel Ramos
d97d5a586d Support defining LINKS that open in the same window (#185)
* Support defining LINKS that open in the same window
2019-11-01 09:38:10 +01:00
Alexandre Vicenzi
0490ead40f
Merge pull request #188 from haplo/alternate-links
Set alternate link tags for translated content
2019-10-31 00:07:54 +01: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
Alexandre Vicenzi
7a35b60aff
Merge pull request #186 from haplo/ids-for-archives-and-authors-pages
Add id attribute to archives and authors pages
2019-10-19 22:39:29 +02:00
Fidel Ramos
1327164a2d
Add id attribute to archives and authors pages
This allows linking to these pages below the fold.
2019-10-19 20:22:39 +00:00
Alexandre Vicenzi
03ac34078a Change powered by message. 2019-10-19 21:02:23 +02:00
Fidel Ramos
c11530bbe2
Add id attribute to categories and tags pages
This allows linking to these pages below the fold.
2019-10-19 17:18:14 +00:00
Nicolas Le Gall
56ff304672 Replace Piwik code with Matomo (#183)
Piwik was renamed to Matomo
2019-06-24 21:51:12 +02:00
Alexandre Vicenzi
63e3192b27
Merge pull request #171 from RiceKab/page-sort-fallback
Using PAGE_ORDER_BY as the default sorting setting.
2019-04-23 12:29:32 +02:00
Kevin Chi Yan Tang
ac49889075 Sort pages using PAGES_SORT_ATTRIBUTE only if explicitly defined. 2019-04-20 16:44:06 +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
Kevin Chi Yan Tang
8a80be0b78 Added PAGE_ORDER_BY as the default page ordering setting. Falls back to PAGES_SORT_ATTRIBUTE when this is not defined (the old behaviour). 2019-03-24 11:32:53 +01:00
André Anjos
953ede091b Support DISPLAY_PAGES_ON_MENU (#116) 2019-01-03 20:25:19 +01:00
Alexandre Vicenzi
8da13c059a Change validation type. 2019-01-02 23:53:47 +01:00
Paweł Ngei
ce44bfe139 Add a rel='me' for mastodon links for automatic network verification (#166)
add a rel='me' for mastodon links for automatic network verification
2018-12-24 12:29:32 +01:00
Alexandre Vicenzi
2bfd49a853
Merge pull request #156 from pawelngei/just-icons
Upgrade Font Awesome to 5 and decrease contact icon jump
2018-12-04 10:39:02 +01:00
alxd
290f94f4de remove unnecessary whitespace if there's no Continue Reading button 2018-10-16 13:05:58 +02:00