[nikola-discuss] Nikola v8.3.1 is out!

2024-04-29 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.3.1. This release fixes some small bugs, including some introduced by the new Nikola Plugin Manager. The minimum Python version supported is now 3.8, and we have adopted a formal policy to define the

[nikola-discuss] Nikola v8.3.0 is out!

2024-01-10 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.3.0. This release adds support for Python 3.12, with some other features and bugfixes. Note that Nikola v8.3.0 no longer uses the Yapsy plugin manager, which has been replaced by a custom, minimal

Re: [nikola-discuss] New install is failing immediately with "ModuleNotFoundError: No module named 'imp'"

2023-12-30 Thread Chris Warrick
> > from nikola.__main__ import main >>> > File >>> > "/Users/pitosalas/.pyenv/versions/3.12.0/lib/python3.12/site-packages/nikola/__init__.py", >>> > line 39, in >>> > from .nikola import Nikola # NOQA >>> > ^

Re: [nikola-discuss] New install is failing immediately with "ModuleNotFoundError: No module named 'imp'"

2023-12-30 Thread Chris Warrick
apsy.PluginManager import PluginManager > File > "/Users/pitosalas/.pyenv/versions/3.12.0/lib/python3.12/site-packages/yapsy/PluginManager.py", > line 134, in > import imp > ModuleNotFoundError: No module named 'imp' Hi, the plugin system Nikola is using (yapsy) is not compatib

Re: [nikola-discuss] How to write metadata and compile posts in Asciidoc using windows 10

2023-11-25 Thread Chris Warrick
d? Is it configured in conf.py in the ASCIIDOC_BINARY setting? (The default is to use `asciidoc` from your $PATH) 3. `nikola new_post` can generate the meta block for you if you pass `-f asciidoc` -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subs

Re: [nikola-discuss] Hierarchy

2023-05-05 Thread Chris Warrick
aybe this is problematic because items doesn't collect the sub-directory. You can have any hierarchy for your site. PAGE_INDEX might not support hierarchies though — perhaps you might want to write a custom plugin (based on the existing PAGE_INDEX handler?) that would suit your needs better? -- C

Re: [nikola-discuss] Re: Where to put video files

2023-05-04 Thread Chris Warrick
os/ as an additional directory for files. I'm not sure if putting videos in images/ is the best choice, as Nikola may try to generate thumbnails (and fail miserably, since only images are supported). -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message beca

Re: [nikola-discuss] Re: Adding a custom filter to my (Jinja2) templates

2023-05-01 Thread Chris Warrick
d, foo is not found when rendering the template. Am I missing > a step? The variable got renamed to TEMPLATE_FILTERS. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" gro

Re: [nikola-discuss] When using PAGE_INDEX how to modify the listing title?

2023-05-01 Thread Chris Warrick
it would be to put your custom content as HTML within list.tmpl, and use {% if 'front_page' in pagekind %} to control if it’s displayed. If you want visitors going to / to be redirected to /home/, don’t. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received thi

Re: [nikola-discuss] Should Nikola build when shortcode files are modified?

2023-04-30 Thread Chris Warrick
ependency list and it should work (in typical environments, i.e. if the path to the .py file doesn’t change very often). -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" g

[nikola-discuss] Nikola v8.2.4 is out!

2023-04-30 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.2.4. This release comes with some new features and a handful of bug fixes. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2

Re: [nikola-discuss] When using PAGE_INDEX how to modify the listing title?

2023-04-30 Thread Chris Warrick
itles and then filter them out by that prefix. Something like: {% for text, link, count in items %} {% if text.startswith("DIRECTORY-TITLE:") %} {% set title = text.split("DIRECTORY-TITLE:")[1] %} {% endif %} {% endfor %} And then do the same check for display (but

Re: [nikola-discuss] Re: Accessing all files in a directory in a template

2023-04-28 Thread Chris Warrick
utomatically generated for all pages directories and subdirectories. >> >>> It will use the list.tmpl template with the pagekind template variable >> >>> containing "page_index" (it's a list). >> >>> >> >>> Listings a

Re: [nikola-discuss] Re: Accessing all files in a directory in a template

2023-04-28 Thread Chris Warrick
matted HTML, with >>> indexes added. >>> >>> If you want more granular control, and if your use-case does not fit >>> the Nikola standard use-cases, you can use the post-list directive in >>> a page: https://getnikola.com/handbook.html#post-list - It h

Re: [nikola-discuss] Re: Accessing all files in a directory in a template

2023-04-26 Thread Chris Warrick
ctive in a page: https://getnikola.com/handbook.html#post-list - It has filtering options and it lets you customize the template, so it is probably as flexible as you need (although I recommend exploring the standard index pages first). -- Chris Warrick <https://chriswarrick.com/> PGP

Re: [nikola-discuss] Re: Accessing all files in a directory in a template

2023-04-26 Thread Chris Warrick
and categories * the "post list" directive/shortcode (placed in a page) If you want to get a list of pages, you might want: * page folder indexes (PAGE_INDEX setting) * the "post list" directive/shortcode (placed in a page) If you want to get a list of code files, the listings

Re: [nikola-discuss] Loading a javascript library in a shortcode

2023-04-16 Thread Chris Warrick
ects; your custom meta field won’t be, but you can still access the metadata dictionary with post.meta['lang'].get("has_fancy_js_library"). You could also expose a custom Python function in GLOBAL_CONTEXT to make this easier (this might be necessary if you’re using Jinja2, which doesn’t allo

Re: [nikola-discuss] Loading a javascript library in a shortcode

2023-04-16 Thread Chris Warrick
On Sun, 16 Apr 2023 at 16:30, Paul Moore wrote: > > This is probably more of a Javascript question than a Nikola one, but I want > to create a template shortcode that relies on a Javascript library. The dirt > simple approach is to just have a

Re: [nikola-discuss] post-list in template

2023-04-01 Thread Chris Warrick
cludes or front-end JavaScript. [0]: https://plugins.getnikola.com/v7/sidebar/ -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop rece

Re: [nikola-discuss] custom template "Write your page here."

2023-03-12 Thread Chris Warrick
iest, although it does require more typing and you risk forgetting about it (you might want to write some one-line shell script). -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss&quo

Re: [nikola-discuss] Questions about best practice for theming Nikola

2023-02-21 Thread Chris Warrick
can easily use a third-party service that offers an alternate bootstrap-compatible CSS. They are not useful for anything else. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss"

Re: [nikola-discuss] Questions about best practice for theming Nikola

2023-02-20 Thread Chris Warrick
you don’t have a custom theme). > If I understand correctly, baugettebox is what is used for the Gallery > feature of Nikola? Yes, although you can use something else, Nikola does not mandate using anything here. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You receiv

Re: [nikola-discuss] Oddities with footnotes

2023-02-03 Thread Chris Warrick
have the latest version of `docutils` and force a rebuild of your posts and pages (by doing `rm -rf cache` or `nikola build -a`). (I added some code on `master` to ensure Nikola always rebuilds when the docutils version changes.) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 --

Re: [nikola-discuss] http redirect using rst meta

2022-11-21 Thread Chris Warrick
-discuss/54209eeb-3359-48c6-b2a1-f757aa2e8a0bn%40googlegroups.com?utm_medium=email_source=footer> > . > You can't specify HTML metadata from reST like this. You could use .html posts with a mostly blank template, or use .html files (in the files/ folder). -- Chris Warrick <https://chriswarrick

Re: [nikola-discuss] Local search feature?

2022-11-05 Thread Chris Warrick
see > https://github.com/getnikola/plugins/issues/417). Tipue might be gone, but the plugin still works fine, so there is no point in deprecating it without replacement. If you know of a good alternative local search engine, feel free to contribute a new plugin that adds support for it. -- Ch

Re: [nikola-discuss] Re: How to add content for an external file

2022-10-29 Thread Chris Warrick
${foo("hello")} within a Mako template or {{ foo("hello") }} from a Jinja template. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe

Re: [nikola-discuss] Re: How to add content for an external file

2022-10-26 Thread Chris Warrick
reST include (if both files are reST). > How would I go about writing a Python function in conf.py and calling it from > the page? Write a function as usual, and then put it in GLOBAL_CONTEXT ({"foo": foo}). -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You

Re: [nikola-discuss] Re: How to add content for an external file

2022-10-20 Thread Chris Warrick
buse the post-list mechanism: every person gets their own page, and the post-list shows them (including metadata and post content). A third option would be server-side includes, but those are pretty silly IMO. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received th

Re: [nikola-discuss] Detect if Nikola runs in `auto` or `serve` mode

2022-09-29 Thread Chris Warrick
conf.py), or deploy a stale version of the site (if you use different output directories). -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this gr

Re: [nikola-discuss] Why does the previewimage header metadata field require an images folder relative to the post?

2022-08-03 Thread Chris Warrick
mages/`, therefore `previewimage` behaves the same way `` or `` would in the post. The best way to link to things is to use root-relative (`/foo`) links. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups &qu

[nikola-discuss] Nikola v8.2.3 is out!

2022-08-01 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.2.3. This is a bugfix release, which fixes compatibility with python-markdown and two more minor bugs. What is Nikola? === Nikola is a static site and blog generator, written in Python. It

Re: [nikola-discuss] Dividing content into "left" and "right" column

2022-05-19 Thread Chris Warrick
essary HTML. You might also split your content into separate .rst files, tell the non-technical person to edit that, and then include them (via reST directives) into the real file with raw-html directives. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You rec

Re: [nikola-discuss] How to display directly the Gallerie

2022-05-03 Thread Chris Warrick
4d43094c79n%40googlegroups.com?utm_medium=email_source=footer> > . > -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving

[nikola-discuss] Nikola v8.2.2 is out!

2022-05-01 Thread Chris Warrick
is rebuilding only what has been changed). Find out more at the website: https://getnikola.com/ Downloads = Install using `pip install Nikola`. Changes === * Compatibility with Pygments 2.12.0 (Issue #3617, #3618) -- Chris Warrick <https://chriswarrick.com> PGP: 5EAAEA16

[nikola-discuss] Nikola v8.2.1 is out!

2022-04-23 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.2.1. This is a minor release with a couple new features, as well as fixes for compatibility with the latest version of doit. What is Nikola? === Nikola is a static site and blog generator,

[nikola-discuss] Nikola v8.2.0 is out!

2021-12-27 Thread Chris Warrick
ratio to 3:1 and document behaviour. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email t

Re: [nikola-discuss] nofollow for all link

2021-11-07 Thread Chris Warrick
do. If your compiler of choice (i.e. reST/docutils, python-markdown, whatever) has some way of generating output with all links set to `nofollow`, you could use that. Otherwise, you’d need to write your own filter (usable with the FILTERS setting in conf.py). -- Chris Warrick <https://chriswa

Re: [nikola-discuss] Github auto deployment

2021-07-10 Thread Chris Warrick
g Hi, we don’t know, since your question doesn’t contain any details. Please provide more information - what auto-deployment method are you using, what do you see in the logs, perhaps provide a link to your repo. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received

Re: [nikola-discuss] Segfault after deploy

2021-06-08 Thread Chris Warrick
you can upgrade to v8.1.3 (by installing in a venv, or perhaps by letting the Fedora maintainers know their package is outdated). PS. terminology note: this is not a segfault, a segfault is a specific type of error, found most often in badly written C/C++ code - those are super rare in Python

Re: [nikola-discuss] Nikola Website

2021-04-20 Thread Chris Warrick
. That includes all the settings in conf.py, custom themes, plugins, and other things. You can learn about everything by reading the manual [0] and other docs [1]. [0]: https://getnikola.com/handbook.html [1]: https://getnikola.com/documentation.html -- Chris Warrick <https://chriswarrick.c

Re: [nikola-discuss] Nikola build on new demo site failed

2021-04-03 Thread Chris Warrick
ng a request to gist.github.com. The connection attempt failed, perhaps due to your employer/ISP/etc messing with your traffic, or due to issues at GitHub. Try running `nikola build` again, and if it fails with the same error, you can just delete pages/manual.rst and avoid the network request altoget

Re: [nikola-discuss] Doit backend problem in `nikola github_deploy`

2021-02-27 Thread Chris Warrick
-backend in https://github.com/getnikola/nikola/pull/3520 . Other Nikola commands are not affected, since they take the arguments themselves (most doit-provided commands) or don’t use the database at all (most Nikola-provided commands). -- Chris Warrick <https://chriswarrick.com/>

[nikola-discuss] Nikola v8.1.3 is out!

2021-02-13 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.1.3. This release has some minor fixes, and a minor dependency change. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2

Re: [nikola-discuss] Navbar path resolution

2021-02-02 Thread Chris Warrick
ake sense of the STRIP_INDEXES warning > (tried both ways) and PRETTY_URLS (True) and don't think either is relevant > to my problem - right? What warning? -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups &qu

Re: [nikola-discuss] Subtheme troubleshooting

2021-01-30 Thread Chris Warrick
ache. Note that cases (b) and (c) aren’t specific to Nikola and apply in many other cases. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group

Re: [nikola-discuss] Re: natsort problems

2021-01-29 Thread Chris Warrick
n3.9/site-packages have deen damaged somehow. I need to > remember this when more problems come up. Installing stuff to ~/.local/ is not recommended, because you can get conflicts between packages. Use a venv instead, as prescribed in the Getting Started guide: https://getnikola.com/getting

Re: [nikola-discuss] natsort problems

2021-01-28 Thread Chris Warrick
rror: cannot import name 'natsorted' from 'natsort' > (/home/dzu/.local/lib/python3.9/site-packages/natsort/__init__.py) > >>> > dzu@krikkit:~$ Works for me. Uninstall `natsort` and reinstall. If that doesn’t fix it, inspect the __init__.py file and look for any weird things. Also,

Re: [nikola-discuss] Re: Nikola v8.0.3 is out!

2021-01-28 Thread Chris Warrick
NIKOLA_DEBUG=1) or use > NIKOLA_SHOW_TRACEBACKS=1 > (nikola) dzu@krikkit:~/blog (master)$ > > As this seems to be related to the new feature, I wonder if I am doing > something wrong or if this is a bug? > > Anyway, any hint on how to fix this is warmly welcome! Nikola v8.0.3

Re: [nikola-discuss] Subtheme troubleshooting

2021-01-23 Thread Chris Warrick
tyle. Are there a few standard > troubleshooting steps to go through? > > Thanks! > > Blake Did you change the THEME setting in conf.py? -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups &

Re: [nikola-discuss] Navbar path resolution

2021-01-21 Thread Chris Warrick
index", find a better one. (PythonAnywhere might not be the best choice/might be overkill for hosting a static site.) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss&

Re: [nikola-discuss] uuid in code listings

2021-01-12 Thread Chris Warrick
keep track of the number of code blocks already rendered — perhaps doable, but requires more work, and might be ugly/expose internal details. Why do you want a reproducible build? -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are

Re: [nikola-discuss] Block with pages atop root index (with not removing blogs)

2021-01-02 Thread Chris Warrick
e.tmpl, but how can I use it? What do you mean by “key pages over another blog”? If you want both the posts and some other list, you’ll need to write a custom plugin for that, we don’t expose the timeline to all pages for performance reasons. -- Chris Warrick <https://chriswarrick.com/

Re: [nikola-discuss] Login, dynamic portions of website, ...

2020-12-20 Thread Chris Warrick
efore static files are served. Forms could be a third-party component, or a PHP thing. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this gr

Re: [nikola-discuss] Handling pdf downloads

2020-12-18 Thread Chris Warrick
Just use href="/downloads/whatever.pdf" and Nikola will do the right thing. -- Chris Warrick <https://chriswarrick.com/> On Fri, 18 Dec 2020, 10:01 Don Oxley, wrote: > I'm trying to understand how to construct the href's needed to allow > readers to download pdf files.

Re: [nikola-discuss] Bilingual blog

2020-12-05 Thread Chris Warrick
init wizard will ask about languages. If you want to change your choice, change TRANSLATIONS and DEFAULT_LANG in conf.py. You might also use translated values for some settings (there are examples on how to do that in conf.py, all settings that support this are marked as translatable). --

Re: [nikola-discuss] Colorbox_locales is undefined

2020-12-05 Thread Chris Warrick
strap3-based with some custom extras and CSS. You should compare files between the two themes to recreate the old layout. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To

Re: [nikola-discuss] Colorbox_locales is undefined

2020-12-05 Thread Chris Warrick
tylesheet"> >> > type="text/css"> >> {% else %} >> > type="text/css"> >> {% endif %} >> {% else %} >> {% if use_cdn %} >> > href="https://maxcdn.bootstrapcdn.com/bo

Re: [nikola-discuss] Colorbox_locales is undefined

2020-12-04 Thread Chris Warrick
x references and switch to baguetteBox (you could find commits that do the switch in the themes repo for an example). -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To

Re: [nikola-discuss] can one access the post type (MD, ipynb,...) in the template?

2020-12-04 Thread Chris Warrick
ubscribe from this group and stop receiving emails from it, send an > email to nikola-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nikola-discuss/ba3cdadb-2aea-4512-a2e2-a644e8af90d0n%40googlegroups.com. You c

[nikola-discuss] Nikola v8.1.2 is out!

2020-11-15 Thread Chris Warrick
tags (Issue #3405) * Fix handling of duplicate plugins on Windows * Allow else clause in post-list plugin. (Issue #3436) * Ensure `type` metadata value from plugins is preserved (Issue 3445) * Fix path handlers with slashes on Windows -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA

Re: [nikola-discuss] Translating tags and categories

2020-11-15 Thread Chris Warrick
is does not affect the URLs, that would require much more work.) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving em

Re: [nikola-discuss] Navigation links

2020-11-10 Thread Chris Warrick
`index` for the slug 3. Also create pages/agenda/now.rst, use `now` for the slug 4. Make sure that your PAGES config will lead to agenda being placed in the site root (and not in a pages/ subdirectory) NAVIGATION_LINKS hierarchies are independent of any paths, so you need to specify '/agenda/'

Re: [nikola-discuss] new version of nbconvert

2020-10-20 Thread Chris Warrick
heir documentation that talks about customizing > templates but I don't see what needs to be changed to fix this. > > -Jim This has already been solved on the master branch: https://github.com/getnikola/nikola/issues/3457 https://github.com/getnikola/nikola/pull/3458 If reporting a bug,

Re: [nikola-discuss] The current master in GitHub has a text version of a symlink for several CSS files as their whole content

2020-10-14 Thread Chris Warrick
indows symlinks in the repo. This might require Windows’ Developer Mode to be enabled to work. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this gr

Re: [nikola-discuss] The current master in GitHub has a text version of a symlink for several CSS files as their whole content

2020-10-14 Thread Chris Warrick
repo and then run `pip install -U .` — this should run our code in setup.py that fixes symlinks. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group

Re: [nikola-discuss] The current master in GitHub has a text version of a symlink for several CSS files as their whole content

2020-10-14 Thread Chris Warrick
Windows platforms, those just appear as standard symlinks in the filesystem.) You can also enable symlink support and see if it changes anything: https://github.com/git-for-windows/git/wiki/Symbolic-Links -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this mess

Re: [nikola-discuss] Uppercase slugs not found

2020-10-04 Thread Chris Warrick
s in that pull request and see if it fixes the issue? -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: [nikola-discuss] Help with using breadcrumbs

2020-09-20 Thread Chris Warrick
ategory links. [0]: https://getbootstrap.com/docs/4.5/components/breadcrumb/ -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and st

Re: [nikola-discuss] Path to gallery thumbnail

2020-09-20 Thread Chris Warrick
gle.com/d/msgid/nikola-discuss/14a2557d-dd5f-4ecf-bc6c-cbe75ed35c1do%40googlegroups.com. Are you sure your BASE_URL/SITE_URL are set correctly? This looks as if you misspelled http:// as http./ in that variable. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received thi

Re: [nikola-discuss] Connect Domain

2020-07-22 Thread Chris Warrick
@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nikola-discuss/5a5e3525-0e8f-4b2c-87ee-210405601343n%40googlegroups.com. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed

Re: [nikola-discuss] Plugin install errors (TypeError: '<' not supported between instances of 'int' and 'NoneType')

2020-07-13 Thread Chris Warrick
of 'int' and 'NoneType' > > Is that the debug information that you need? Yes. That ended up being a classic slashes-vs-backslashes bug in a place that isn’t exercised too often (Windows + user-wide plugins + duplicates in site is a very specific combination). Here's a PR to fix it: https://gi

Re: [nikola-discuss] Plugin install errors (TypeError: '<' not supported between instances of 'int' and 'NoneType')

2020-07-13 Thread Chris Warrick
the > error went away and Nikola is now working normally. So, the problem appears > to be related to having a global plugin and, most likely, installing that > same plugin locally. > > On Monday, July 13, 2020 at 7:05:19 AM UTC-6, Chris Warrick wrote: >> >> On Mon,

Re: [nikola-discuss] Plugin install errors (TypeError: '<' not supported between instances of 'int' and 'NoneType')

2020-07-13 Thread Chris Warrick
ugin): # plugin here is a tuple: # (path to the .plugin file, path to plugin module w/o .py, plugin metadata) for i, place in enumerate(self._plugin_places): if plugin[0].startswith(place): utils.LOGGER.warn("{}: {}, {}".format(i, place, plugin))

Re: [nikola-discuss] Automatic Thumbnail???

2020-07-03 Thread Chris Warrick
shots automatically (simple file_dep + code from pkgindex_theme_demo_screenshots/take_screenshots.js), but this will require you to run `nikola build` twice (first run would build .ipynb and make screenshots, and the second run would update the gallery). -- Chris Warrick <https://chri

Re: [nikola-discuss] Index page fails to build after upgrading versions

2020-07-01 Thread Chris Warrick
r_taxonomies:output\index.html : > > - > My Current Setup: > Windows 10 Home Single Language > Python 3.8.3 64 bit > Nikola 8.1.0 > doit 0.32.0 > mako 1.1.3 This looks like an issue with your t

[nikola-discuss] Nikola v8.1.0 is out!

2020-06-27 Thread Chris Warrick
contents. * Added Post.save() method to modify Post contents. * Made is_two_file a property that uses save() -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscrib

Re: [nikola-discuss] Per post override canonical tag

2020-06-21 Thread Chris Warrick
s generally a minor issue. >From a quick look, it seems you would need to override base_helper.tmpl. Since `post` is not always defined, you will need an if to check that, the easiest way would be to do it via `pagekind`. And then, you could just do another check for post.meta('canonical') and ins

Re: [nikola-discuss] TypeError: an integer is required (got type bytes)

2020-05-21 Thread Chris Warrick
Groups > "nikola-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to nikola-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nikola-discuss/27e9727e-237e-4d5c

Re: [nikola-discuss] How to reference a metadata value in reStructuredText?

2020-05-04 Thread Chris Warrick
any build process) that creates the required shortcode file. You can use a text editor or anything, but this `echo` command was meant to show what to put where. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Go

Re: [nikola-discuss] How to reference a metadata value in reStructuredText?

2020-05-04 Thread Chris Warrick
: echo '${post.title()}' > shortcodes/foo.tmpl And then you can use it in a post: Post title is: {{% foo %}} -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group.

Re: [nikola-discuss] How to reference a metadata value in reStructuredText?

2020-05-02 Thread Chris Warrick
hich the shortcode is being used is available as the post variable, so you can access the title as post.title, and data loaded via the data field in the metadata using post.data(key). -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because

Re: [nikola-discuss] How to reference a metadata value in reStructuredText?

2020-05-01 Thread Chris Warrick
; > My slug is {$slug} > > or is it ``slug`` > > or is it :slug: > > our could it be {{% slug %}} > > nfw it is {{% raw %}}{{% slug %}}{{% /raw %}} You could use a template-based shortcode: https://getnikola.com/handbook.html#template-based-shortcodes -- Chris Warrick <https://chr

Re: [nikola-discuss] Unknown path request of kind

2020-04-30 Thread Chris Warrick
inja2/environment.py", > line 452, in getitem > return obj[argument] > jinja2.exceptions.UndefinedError: 'colorbox_locales' is undefined > > > render_galleries:output/galleries/index.html : > > What's happening

Re: [nikola-discuss] Plugins interactions

2020-04-28 Thread Chris Warrick
r example like this: compiler = self.site.plugin_manager.getPluginByName('rest', 'PageCompiler').plugin_object (the second argument is important) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discu

Re: [nikola-discuss] Use code highlighting in html generated from a plugin [publications_list]

2020-03-25 Thread Chris Warrick
he three arguments are). -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discuss+uns

Re: [nikola-discuss] Use code highlighting in html generated from a plugin [publications_list]

2020-03-25 Thread Chris Warrick
it calls either the reST thing to generate code blocks, or use pygments + NikolaPygmentsHTML directly, and put the pygments output in the plugin’s output files. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google G

Re: [nikola-discuss] Is it still necessary for the code to include a copy of tzlocal?

2020-02-25 Thread Chris Warrick
On Tue, 25 Feb 2020 at 22:34, José Abílio Matos wrote: > > On Tuesday, 25 February 2020 17.05.04 WET Chris Warrick wrote: > > Yes, it is. The upstream package depends on `pytz`. Nikola uses > > `dateutil` for its timezone support. We use tzlocal for a very minor > > thi

Re: [nikola-discuss] Nikola v8.0.4 is out!

2020-02-25 Thread Chris Warrick
On Tue, 25 Feb 2020 at 17:09, José Abílio Matos wrote: > > On Thursday, 6 February 2020 19.53.15 WET Chris Warrick wrote: > > On behalf of the Nikola team, I am pleased to announce the immediate > > availability of Nikola v8.0.4. This release fixes a few small bugs, > >

Re: [nikola-discuss] Is it still necessary for the code to include a copy of tzlocal?

2020-02-25 Thread Chris Warrick
Ubuntu parlance). > > I noticed that nikola carries two external python packages. There is > a related text file: > > """ > We ship some third-party things with Nikola. They live here, along with their > licenses. > > Packages: > > * tzlocal by Lennart

Re: [nikola-discuss] Add a custom tag to generated ?

2020-02-13 Thread Chris Warrick
e also support BODY_END for other snippets; if you need more control, you can override templates or make a custom theme. The `nikola theme` command has a few options that can help with that (-c to copy a template for overriding, -n to create a new theme) -- Chris Warrick <https://chriswarrick.com/&

Re: [nikola-discuss] Non-blog home page not rebuilding

2020-02-13 Thread Chris Warrick
On Thu, 13 Feb 2020 at 20:22, Chris Warrick wrote: > > On Thu, 13 Feb 2020 at 15:54, Erik Ritch wrote: > >> > >> nikola init -q n > >> cd n > >> vim conf.py > >> # change POSTS, PAGES, INDEX_PATH > >> nikola new_post -t 'sample post'

Re: [nikola-discuss] Non-blog home page not rebuilding

2020-02-13 Thread Chris Warrick
still `story.tmpl` because the alternative would be quite messy.) I opened an issue on GitHub: https://github.com/getnikola/nikola/issues/3349 -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikol

Re: [nikola-discuss] Non-blog home page not rebuilding

2020-02-12 Thread Chris Warrick
n vim conf.py # change POSTS, PAGES, INDEX_PATH nikola new_post -t 'sample post' vim pages/index.rst # paste your content verbatim nikola build vim pages/index.rst # add some text nikola build The last `nikola build` shows this build log: Scanning postsdone! . render_sources:output/i

Re: [nikola-discuss] Pages output inside folders

2020-02-09 Thread Chris Warrick
file is not being generated anymore, but Nikola does not delete stale/leftover files automatically. Run `nikola check --clean-files` to delete the old files. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Goog

Re: [nikola-discuss] Pages output inside folders

2020-02-09 Thread Chris Warrick
The setting is called PRETTY_URLS. (Those subfolders make for prettier URLs except for file:// usage.) -- Chris Warrick <https://chriswarrick.com/> On Sun, 9 Feb 2020, 16:22 Tomas Zulberti, wrote: > I follow the instructions for using nikola on an static site: > https://getnikola.

Re: [nikola-discuss] HTML inside post titles

2020-02-08 Thread Chris Warrick
e > pointers or possible examples if something like this has been done before > please? > > Thank you. You could try doing this with a signal handler for the 'scanned' signal that would go through site.timeline and modify post metadata. -- Chris Warrick <https://chriswarrick.com/>

Re: [nikola-discuss] HTML inside post titles

2020-02-07 Thread Chris Warrick
le: https://www.theregister.co.uk/2020/02/06/yahoo_breach_settlement/ They get it almost right, their Atom feeds look like this: Yahooi!/i … but Inoreader displays that to me as !, which kinda sucks. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You receive

[nikola-discuss] Nikola v8.0.4 is out!

2020-02-06 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.0.4. This release fixes a few small bugs, including a date glitch that appeared around New Year’s Eve. What is Nikola? === Nikola is a static site and blog generator, written in Python. It

Re: [nikola-discuss] Image as a link

2020-01-29 Thread Chris Warrick
Nikola question. How to do this depends solely on the input format you’re using for that post/page/element, so please consult the docs of your input format of choice. (IIRC, reST has something specific, and the rest just puts an image where the link text would go.) -- Chris Warrick <https://ch

Re: [nikola-discuss] Hyvor Talk integration for Nikola

2020-01-05 Thread Chris Warrick
be expected to provide support for the integration. Hyvor Talk seems to be very young and not very popular. At the same time, it’s a commercial product, and I don’t think we should provide free advertising and promotion in our docs to commercial products. -- Chris Warrick <https://chriswarrick.com/

  1   2   3   >