Commit graph

95 commits

Author SHA1 Message Date
a17ebec50f add all SOCIAL links in the metablock 2024-10-16 10:27:56 +02:00
Vincent Cheng
8bd43aa247 Add support for Cloudflare Web Analytics 2023-01-17 07:15:28 -08:00
Alexandre Vicenzi
d22e93597a
Merge branch 'master' into plausible 2022-12-01 12:04:49 +01:00
Florian Haas
d3e29dc951 Add support for Plausible analytics
Introduce a new configuration option, PLAUSIBLE_DOMAIN. If set,
include the Plausible (https://plausible.io) analytics script for that
domain.

Fixes #317.
2022-10-29 17:29:59 +02:00
Tobias Schmidl
f65ae0001d Added Webmentions and Pingbacks 2022-09-08 12:24:52 +02:00
Tobias Schmidl
5830ea3381 Add the possibility to link against a PGP key 2022-09-08 12:17:10 +02:00
Alexandre Vicenzi
b3c04ea205 Fix stork
Fixes #309
2022-08-31 21:28:39 +02:00
Alexandre Vicenzi
98cfee4ce2 Split base into multiple partials 2022-07-08 20:36:43 +02:00
Alexandre Vicenzi
3b11bc9908
Merge pull request #298 from lioman/add-stork
Add stork search
2022-07-08 15:36:14 +02:00
Elias Kirchgässner
0308fe1056 extract stork search in include 2022-03-10 10:40:22 +01:00
Alexandre Vicenzi
af0cfa52e3
Merge pull request #295 from schmittlauch/fixCustomCssI18NMaster
Fix: correct custom CSS URL for I18N pages
2022-03-08 14:12:44 +01:00
Alexandre Vicenzi
33255d1471
Merge branch 'master' into fix_tipue_search 2022-03-08 14:07:39 +01:00
Elias Kirchgässner
4e99152aff support stork search
- add search css
- include js and wasm from cdn or locally
- initialize js
2022-03-07 13:55:35 +01:00
Trolli Schmittlauch
6d821518f1 Fix: correct custom CSS URL for I18N pages
problem description:
When using the i18n_subsites plugin – which is somehow supported by this
theme – the SITEURL is modified for all but the default language,
causing the construction {{ SITEURL }}/{{ CUSTOM_CSS }} to change as
well.
This in principle affects all such template constructions where SITEURL
is prepended to a custom loading path.
One exception is {{ THEME_STATIC_DIR }}, which is adjusted by the
i18n_subsites code to still match for translations.

solution:
The i18n plugin introduces an additional context variable
{{ main_siteurl }}, which always points at the original unmodified
SITEURL. As unfortunately this variable is not present in non-i18n
sites, it's existence is checked first, taking SITEURL as a fallback.
This special handling is acceptable IMHO, as at first glance I could not
find any other affected URLs in templates.

follow-up to #192
2022-03-01 03:41:15 +01:00
Elias Kirchgässner
53fc53b8b9 #293: respect use_google_fonts in tipue search
tipue search has included the font import
without respecting the settings.
2022-02-25 09:20:21 +01:00
Georg Lutz
1e31ab9b50 Fix tipue search
The tipue plugin registers itself as pelican.plugins.tipue_search (namespace
plugin) in the latest version see here:
7fe8f3f05c

Keep old style tipue_search to be compatible with old versions.

To use the search one would need to add "search" to DIRECT_TEMPLATES in
pelicanconf.py so that search.html is copied to the output folder:

    DIRECT_TEMPLATES = ["index", "tags", "categories", "archives", "search"]
2021-12-28 22:11:17 +01:00
Alexandre Vicenzi
07bd7940dc
Merge pull request #278 from radoeka/radoeka-patch-3
Make the CUSTOM_CSS html code consistent
2021-07-26 21:36:10 +02:00
Richard Bos
5ad43b31a4
Make the CUSTOM_CSS html code consistent
Make the CUSTOM_CSS html code consistent and with that the same as the <link> html lines.
2021-07-26 17:02:02 +02:00
Richard Bos
81dbd791cc
tipue_search search improvement
Support Flex search, that is located in a sub directory, like https://FQDN/blog.
2021-07-26 16:55:32 +02:00
Alexandre Vicenzi
ba16eb64a3
Merge branch 'master' into support-seo-plugin 2021-06-17 01:23:24 +02:00
Alexandre Vicenzi
7d302faed8
Merge pull request #270 from fy0/patch-1
add trailing slash for SITEURL.
2021-06-17 01:15:29 +02:00
Alexandre Vicenzi
e04a96108b Drop JINJA_EXTENSIONS
Fix #268
2021-06-17 01:14:27 +02:00
fy
ab34ff9fe3
add trailing slash for SITEURL.
Reason:
https://github.com/getpelican/pelican/issues/1156
https://github.com/arulrajnet/attila/pull/4
2021-06-13 16:49:15 +08:00
Maëva Brunelles
73bc9aac05 Add support for SEO Pelican plugin 2021-04-21 22:58:07 +02:00
lioman
4b76663ae1 move search files to search page
- To speed up page load the js files should be loaded on bottom of page.
- search files are only needed if you search. Move them to search page
- instantiate tipue search only on search page
2021-03-12 09:29:01 +01:00
Lioman
6fe38c6986 Improve loading time
- Move tipue search to bottom
- remove duplicate line
2021-03-08 11:39:40 +01:00
Lioman
d9915f87be
do not add empty list if none should be shown
If links are empty but pages are there but disabled an empty list was shown.
2021-03-06 18:34:15 +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
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
Alexandre Vicenzi
533bc1760e Fix identation and missing trans 2020-04-20 23:36:36 +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
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
0d56e19d6a
Default to monokai in dark theme and fixed defaulting mechanism in the JS 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
65df195b4e
Added tipuesearch_content.js to base.html when tipuesearch is enabled 2020-04-16 10:08:26 -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
Nicolas Le Gall
56ff304672 Replace Piwik code with Matomo (#183)
Piwik was renamed to Matomo
2019-06-24 21:51:12 +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