Re: [nikola-discuss] How to use Template variables on markdown files

2023-05-19 Thread Roberto Alsina
Much, much more detail in the docs: https://getnikola.com/handbook.html#post-list On Fri, May 19, 2023 at 4:38 PM Roberto Alsina wrote: > You want the post-list shortcut. Something like this: > > {{% post-list stop=5 %}}{{% /post-list %}} > > > On Fri, May 19, 2023 at 4:26

Re: [nikola-discuss] How to use Template variables on markdown files

2023-05-19 Thread Roberto Alsina
You want the post-list shortcut. Something like this: {{% post-list stop=5 %}}{{% /post-list %}} On Fri, May 19, 2023 at 4:26 PM Daniele “Mte90” Scasciafratte < mte90...@gmail.com> wrote: > Hi, > I am trying to write on the home page that is a markdown file the last 4 > articles. > The problem

Re: [nikola-discuss] Major Python upgrade

2023-05-18 Thread Roberto Alsina
You probably need to rebuild Nikola, since it's still built against 3.10 On Thu, May 18, 2023 at 9:03 AM Lars Bjørndal wrote: > After upgrading Python from 3.10 to 3.11, I got error from `nikola build` > > ERROR: Task 'render_posts:cache/pages/index.html' saving success: > Dependent file > >

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

2023-04-29 Thread Roberto Alsina
I don't think it's implemented but sounds like a nice feature to have. On Sat, Apr 29, 2023 at 7:40 PM Mitch Berkson wrote: > I am using PAGE_INDEX and it creates a nice list with URLs of the pages in > each directory. I would like to specify the title of the list instead of > having it be the

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

2023-04-04 Thread Roberto Alsina
On Tue, Apr 4, 2023 at 12:27 PM Roberto Alsina wrote: > If you really really really want to do this: > > In conf.py you can write a function that generates the list of the last 5 > posts and expose it as a member of GLOBAL_CONTEXT > > This may not be as easy as I remembered

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

2023-04-04 Thread Roberto Alsina
If you really really really want to do this: In conf.py you can write a function that generates the list of the last 5 posts and expose it as a member of GLOBAL_CONTEXT That will make it available in templates. Of course from them on you have to always use "nikola build -a" but that should

Re: [nikola-discuss] post_list shortcode and SHOW_UNTRANSLATED_POSTS

2023-04-01 Thread Roberto Alsina
I have not looked at the code but it's 99% likely it's exactly that reason :-) On Sat, Apr 1, 2023, 12:43 PM Saadat Mateen wrote: > I have a bilingual (English and Urdu) blog, and recently I published an > Urdu post without an English translation. In my conf.py I have set >

Re: [nikola-discuss] how to use the rst extensions if I am already using markdown?

2023-03-28 Thread Roberto Alsina
Most, if not all those reSt directives are also available as short codes that work in markdown, and it's explained in the manual. For example, media: {{% media url=https://www.youtube.com/watch?v=Nck6BZga7TQ %}} On Tue, Mar 28, 2023, 11:20 PM Derek Riemer wrote: > I've been using markdown

Re: [nikola-discuss] Index pages with just post headers

2023-03-15 Thread Roberto Alsina
make it look good :-) > > Thanks for the confirmation, I'll take it from here I guess. > Paul > > On Wednesday, 15 March 2023 at 13:20:38 UTC Roberto Alsina wrote: > >> Copy your template's index.tmpl to your site: >> >> nikola theme -c index.tmpl >> >> Edit

Re: [nikola-discuss] Index pages with just post headers

2023-03-15 Thread Roberto Alsina
Copy your template's index.tmpl to your site: nikola theme -c index.tmpl Edit the new file you got, and look for something like % for post in posts: That is the piece of template that iterates over the shown posts and displays information. Delete stuff :-) On Wed, Mar 15, 2023 at 9:38 AM

Re: [nikola-discuss] Link to rss feed in head for certain pages

2023-03-08 Thread Roberto Alsina
On Wed, Mar 8, 2023 at 12:35 PM Lars Bjørndal wrote: > On Sun, Feb 12, 2023 at 01:49:34PM -0300, Roberto Alsina wrote: > > Use the "template" metadata. There are details in the docs and examples > in the > > demo site. > > Thank y

Re: [nikola-discuss] Link to rss feed in head for certain pages

2023-02-12 Thread Roberto Alsina
> On Sun, Feb 12, 2023 at 10:00:06AM -0300, Roberto Alsina wrote: > > Only ways that come to mind is to use a different template for each page > that > > adds the required link, or use JavaScript to inject it, but that's not > going to > > be very useful. > > >

Re: [nikola-discuss] Link to rss feed in head for certain pages

2023-02-12 Thread Roberto Alsina
Only ways that come to mind is to use a different template for each page that adds the required link, or use JavaScript to inject it, but that's not going to be very useful. On Sun, Feb 12, 2023, 7:26 AM Lars Bjørndal wrote: > Hi list! > > Some pages on a site does present a podcast. How can I

Re: [nikola-discuss] How is main_index set for non-blog sites?

2022-12-19 Thread Roberto Alsina
It's probably easiest to just tweak the theme so it does what you want :-) On Tue, Dec 13, 2022 at 8:41 AM Angus McMorland wrote: > Hi, > > I'm trying to apply the canterville theme to a site (not a blog), so have > moved blog posts to /blog and pages to / as suggested in the documentation >

Re: [nikola-discuss] only deploy drafts to staging

2022-12-19 Thread Roberto Alsina
You can have two config files, the usual conf.py and a staging.py with DEPLOY_DRAFTS=True, and use the --conf=staging.py option to use it when deploying to staging. On Thu, Dec 15, 2022 at 11:38 AM Derek Riemer wrote: > I have a custom environment called "staging" which is just a separate >

Re: [nikola-discuss] Link path handler for arbitrary content

2022-12-02 Thread Roberto Alsina
godot-2d-creeps/creeps.html) > ``` > > Then in the rendered web page I get the URL ` > http://127.0.0.1:8000/demos/godot-2d-creeps/#` > <http://127.0.0.1:8000/demos/godot-2d-creeps/#>. > > > On Monday, November 28, 2022 at 7:40:26 AM UTC-5 Roberto Alsina wrote: > >> Just use

Re: [nikola-discuss] Link path handler for arbitrary content

2022-11-28 Thread Roberto Alsina
Just use /demos/game and nikola will make it work :-) On Sun, Nov 27, 2022 at 11:19 PM Samuel Lotz (salotz) wrote: > Hello, > Hopefully a stupid question. > > I want to put a Godot HTML5 game build into my site. So I have a folder > with all of the assets and a `game.html`. I used the

Re: [nikola-discuss] check if page is a post-page in header

2022-11-16 Thread Roberto Alsina
ntifying-and-customizing-different-kinds-of-pages-with-a-shared-template On Wed, Nov 16, 2022 at 8:48 AM Tanja Orme wrote: > Yeah, I'd like to know if the page presented is a 'story' or a 'post', > basically. Can I do that in the base-header template? > > On Saturday, 12 November

Re: [nikola-discuss] check if page is a post-page in header

2022-11-12 Thread Roberto Alsina
I *think* what you want is the "kind" from the context? Not near a computer so can't check On Fri, Nov 11, 2022, 4:15 PM Tanja Orme wrote: > Hi, > > I think the shortest version of my question is, how can I check in the > header (base-header) if the page is a post-page (direct link to the >

Re: [nikola-discuss] How to setup a project to achieve multiple list indexes for multiple post subfolders?

2022-10-18 Thread Roberto Alsina
I think the easiest way would be to tag all posts in each "subsite" with a specific tag and then use each of those tags page as the site index? For example, this is my site: http://ralsina.me/ But I could say this is a "subsite" which is only about youtube videos:

Re: [nikola-discuss] Securing photos/galleries w/ a password?

2022-10-14 Thread Roberto Alsina
Depending on your web server you may be able to use a .htpass file or something like that. On Fri, Oct 14, 2022, 11:04 AM Michael Bogucki wrote: > Hello, > I'm curious if there's a way to secure some galleries with a password? > I remember seeing a feature that would allow for encrypting of

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

2022-09-29 Thread Roberto Alsina
If you really want to, you can probably peek at sys.argv in conf.py and set something in GLOBAL_CONTEXT On Thu, Sep 29, 2022, 5:11 PM Chris Warrick wrote: > On Wed, 28 Sept 2022 at 11:08, 'Dirk Olbrich' via nikola-discuss > wrote: > > > > Hey there, is there a way to detect if Nikola is

Re: [nikola-discuss] doc discrepancy: getnikola.com isn't actually built as a site w blog.

2022-09-13 Thread Roberto Alsina
On Tue, Sep 13, 2022 at 1:02 PM Blaise Pabon wrote: > Is there a working "site with blog" I can use as a reference? > > The tutorial for creating a site with a blog says to "see an example refer > to the Nikola site" (code >

Re: [nikola-discuss] .meta files for images?

2022-08-01 Thread Roberto Alsina
There isn't support for that but sounds like a useful thing to me. On Mon, Aug 1, 2022, 3:28 AM Daniel Habermayr wrote: > Hi, > > i am wondering if there is a way to use image metadata like 'alt' other > than directly under the image directive: > > > .. image:: /images/image.png > > :alt:

Re: [nikola-discuss] Sourcecode images next to the .rst files instead of in dedicated folder?

2022-07-25 Thread Roberto Alsina
Sure! You need to mirror your POSTS setting in your IMAGE_FOLDERS setting. So, suppose you have this in POSTS: POSTS = (( "posts/*md", "/posts", " post.tmpl") Adding IMAGE_FOLDERS = {"posts": "posts"} would do it. On Mon, Jul 25, 2022, 7:27 AM Daniel Habermayr wrote: > Hello everyone! > >

Re: [nikola-discuss] How would you build a PDF gallery?

2022-06-02 Thread Roberto Alsina
We are using PIL (Pillow) to extract the thumbnails. If it supports extracting PDF thumbnails, then that's it (maybe it does and our code is doing it wrong, I don't know) If not, then there could be a special case in the code for PDFs, since this sounds pretty useful! On Thu, Jun 2, 2022 at 5:49

Re: [nikola-discuss] (Question) Where are the `base` theme files (for creating new child theme)?

2021-09-08 Thread Roberto Alsina
Because themes will only contain the templates they change (and for the rest will use their parent's ... which will use their parent's and so on) that's a bit complicated and confusing. As a start you can take a look here: these are all the templates used by our base theme:

Re: [nikola-discuss] Re: contents and figures with caption in markdown

2021-09-05 Thread Roberto Alsina
On Sun, Sep 5, 2021 at 9:22 AM Everlanes wrote: > Hi, > > Second I have set in my Sphinx theme to have a local table of contents in >> the sidebar. >> > > I would also like to have a TOC of the current page in the sidebar. I > managed to use the Markdown [TOC] extension, but then the TOC is

Re: [nikola-discuss] Markdown and mermaid support

2021-08-04 Thread Roberto Alsina
Or just use this extension: https://pypi.org/project/md-mermaid/ Of course since mermaid renders client side you will have to change templates to add the proper stuff to the page. On Wed, Aug 4, 2021 at 9:14 AM Roberto Alsina wrote: > On Wed, Aug 4, 2021 at 9:07 AM Maciej Kusz wr

Re: [nikola-discuss] Continuous Import importing too often

2021-06-08 Thread Roberto Alsina
ed any posts that are earlier. Works OK for me. > > Do you need me to create an issue before I raise a PR? > Nah, just raise it. Thanks for fixing this! I thought I was the only one using it :-) > Cheers, > > Martin > > -- > Martin McCallion > https://devilgate.org/ &

Re: [nikola-discuss] Embedding galleries in posts

2021-05-21 Thread Roberto Alsina
Yes there is! it may take some effort to make it look pretty tho https://plugins.getnikola.com/v8/gallery_shortcode/ On Fri, May 21, 2021 at 9:00 AM Martin McCallion wrote: > Hi all, > > I've recently started experimenting with Nikola's galleries feature. Is > there a way to embed a gallery

Re: [nikola-discuss] Tags + Archive Combination Page

2021-03-15 Thread Roberto Alsina
On Mon, Mar 15, 2021 at 8:05 PM Chris Warrick wrote: > On Mon, 15 Mar 2021 at 22:53, Michael Deckebach > wrote: > > > > Hello there, > > > > I am trying to modify the /archive/ pages (list_post.tmpl) in my theme > so that it contains a list of all tags at the top (like you see in the > default

Re: [nikola-discuss] IntenseDebate for comments

2021-03-05 Thread Roberto Alsina
I probably tried it only with chrome. On Fri, Mar 5, 2021 at 9:56 AM Martin McCallion wrote: > Hi all, > > Is anyone successfully using IntenseDebate for comments with Nikola? > I've just been trying it, and I find I can post a comment from Chrome, > but not from Safari or Firefox. I just get a

Re: [nikola-discuss] Can't install plugin

2020-12-17 Thread Roberto Alsina
URL where you will publish) On Thu, Dec 17, 2020 at 10:19 AM Don Oxley wrote: > Attached. Let me know if you need anything else. > --D > > On Thursday, December 17, 2020 at 8:05:41 AM UTC-5 Roberto Alsina wrote: > >> The code is just too mangled by google groups. Ca

Re: [nikola-discuss] Can't install plugin

2020-12-17 Thread Roberto Alsina
in, my site structure, sys.path, and a log > of my session below. Hopefully, you can give me a pointer to where I've > gone wrong. > > Thanks, >--Don > ___ > *foo.plugin:* > [Core] > Name = foo > Module = foo > > [Documentation] > Author = Rober

Re: [nikola-discuss] ImportError: attempted relative import with no known parent package

2020-12-10 Thread Roberto Alsina
e not included any "shortcode_processing" module here and there's none in our codebase AFAICS so I can't say how you should actually import it. On Wed, Dec 9, 2020 at 3:17 PM Don Oxley wrote: > Sorry, misunderstood > > On Wednesday, December 9, 2020 at 9:02:31 AM UTC-5 Roberto

Re: [nikola-discuss] ImportError: attempted relative import with no known parent package

2020-12-09 Thread Roberto Alsina
dnesday, December 9, 2020 at 8:02:14 AM UTC-5 Roberto Alsina wrote: > >> It's easier if you can share the code, I am not sure I follow the >> description. >> >> On Wed, Dec 9, 2020 at 9:53 AM Don Oxley wrote: >> >>> In my continuing struggle to conv

Re: [nikola-discuss] ImportError: attempted relative import with no known parent package

2020-12-09 Thread Roberto Alsina
It's easier if you can share the code, I am not sure I follow the description. On Wed, Dec 9, 2020 at 9:53 AM Don Oxley wrote: > In my continuing struggle to convert a Wordpress site, I can't seem to > properly set up a command plugin I've created. This is to be a command > that I would run

Re: [nikola-discuss] Conversion of Wordpress images

2020-11-21 Thread Roberto Alsina
Never used NextGen, sorry. In general the docs in images are short because there isn't much to explain: you put images in some folders, those get thumbnail and published in other folders. Which folder goes where is determined by IMAGE_FOLDERS Additionally: subfolders work pretty much how you

Re: [nikola-discuss] Using custom filter in filters metadata tag

2020-10-20 Thread Roberto Alsina
Good to hear! On Tue, Oct 20, 2020 at 11:34 AM Jim Schmitz wrote: > Roberto, thank you for your reply. Writing a script for the filter feature > works well for my use case, and I was able to accomplish what I needed to > accomplish. > > On Mon, Oct 19, 2020 at 5:27 PM Robert

Re: [nikola-discuss] Using custom filter in filters metadata tag

2020-10-19 Thread Roberto Alsina
On Mon, Oct 19, 2020 at 6:23 PM Roberto Alsina wrote: > On Mon, Oct 19, 2020 at 6:11 PM Jim Schmitz > wrote: > >> The documentation says I can "apply filters to specific posts or pages by >> using the filters metadata field", like so: >> >> .. filter

Re: [nikola-discuss] New gallery in each blog post

2020-10-19 Thread Roberto Alsina
is absolutely fine for my uses - so thanks again! > > You can always tweak the template it uses! > On Monday, 19 October 2020 at 16:15:27 UTC+1 Roberto Alsina wrote: > >> On Sat, Oct 17, 2020 at 7:48 PM f365...@gmail.com >> wrote: >> >>> >>> Hi!

Re: [nikola-discuss] New gallery in each blog post

2020-10-19 Thread Roberto Alsina
On Sat, Oct 17, 2020 at 7:48 PM f365tc...@gmail.com wrote: > > Hi! > > nikola newb here - I'm enjoying what I've been able to do so far, but I > seem stuck, and couldn't figure out from the docs what to try. > > I'd like to be able to have a different gallery appear in each blog post - > and

Re: [nikola-discuss] .gitignore

2020-10-16 Thread Roberto Alsina
https://github.com/github/gitignore On Fri, Oct 16, 2020 at 9:39 AM Jan Limpens wrote: > What do you put into .gitignore? > I suppose: > __pycache__ > _build > .vscode > cache > output > > What else? > > cheers, > jan > > -- > You received this message because you are subscribed to the Google

Re: [nikola-discuss] Full width landing page without a title

2020-10-15 Thread Roberto Alsina
ombinations but got the same error for all. > post.meta("hidetitle")!="True" > page.meta("hidetitle")!="True" > post.meta("title")!="Home" > page.meta("title")!="Home" > > Please advise. I hope there is a

Re: [nikola-discuss] Full width landing page without a title

2020-10-12 Thread Roberto Alsina
;: >> >> >> % endif >> >> ${content_footer} >> ${template_hooks['page_footer']()} >> <%block name="extra_footer"> >> >> >> >> ``` >> >> I also added the following to the head section of my landing

Re: [nikola-discuss] Adding a link with an id

2020-08-15 Thread Roberto Alsina
link and put > an img inside of it. Is that possible? > > > Thanks, > Ram. > > On Sat, Aug 15, 2020 at 4:47 AM Roberto Alsina wrote: > >> Not sure but surely one of these. >> >> >> https://docutils.sourceforge.io/docs/user/rst/quickref.html#hyperlink-targ

Re: [nikola-discuss] Adding a link with an id

2020-08-14 Thread Roberto Alsina
Not sure but surely one of these. https://docutils.sourceforge.io/docs/user/rst/quickref.html#hyperlink-targets On Fri, Aug 14, 2020 at 12:37 PM Ram Rachum wrote: > Hi everyone! > > I'm a newbie at Nikola and I have a question. > > I'm editing an existing site. There's an `rst` file that gets

Re: [nikola-discuss] introducing roastidio.us

2020-07-29 Thread Roberto Alsina
On Wed, Jul 29, 2020 at 1:17 PM Derek Zhou wrote: > Hi bloggers: > > I cannot find a good commenting platform for my blogs. Discus! is too > invasive for me, social medias are even worse, other platforms either cost > money or require too much setup. So, I built one myself. >

Re: [nikola-discuss] Connect Domain

2020-07-22 Thread Roberto Alsina
On Wed, Jul 22, 2020 at 5:17 AM Borschts wrote: > How can I put my nikola blog on my domain? > > > The answer is, as usual "it depends". Basically, Nikola produces a folder of HTML and related things. If you already have a site in your domain, you need to check the documentation provided by

Re: [nikola-discuss] How to control the production of /output/index.html

2020-07-20 Thread Roberto Alsina
pages/foo.md => output/pages/foo/index.html > Le lundi 20 juillet 2020 à 10:35:31 UTC+2, Roberto Alsina a écrit : > >> Or not even, just do a tree structure inside pages/ >> >> So, if you have pages/ producing out put in /, pages/pages will output in >> /pages :-)

Re: [nikola-discuss] How to control the production of /output/index.html

2020-07-20 Thread Roberto Alsina
Or not even, just do a tree structure inside pages/ So, if you have pages/ producing out put in /, pages/pages will output in /pages :-) On Mon, Jul 20, 2020 at 5:34 AM Roberto Alsina wrote: > You still can do that. Just add more rows to PAGES > > On Mon, Jul 20, 2020 at 5:33

Re: [nikola-discuss] Support for (arbitrary) sphinx extensions

2020-05-30 Thread Roberto Alsina
No, it's not possible. El sáb., 30 de mayo de 2020 8:19 a. m., Adriaan Rol escribió: > I have recently been writing a lot of documentation using sphinx and > played with several sphinx extensions that I would like to use in my Nikola > based website. > > Specifically, I would like to use >

Re: [nikola-discuss] Re: AttributeError: 'Undefined' object has no attribute 'meta'

2020-05-22 Thread Roberto Alsina
I did not check anything other than that it built. On Fri, May 22, 2020 at 5:26 AM Julien Vallet wrote: > It worked just fine thanks ! I had changed the base.tmpl trying to impose > the banner. > Now the site works well, but I'm still in struggle with the metadata, yet > I think I have set the

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

2020-05-21 Thread Roberto Alsina
That is ... deeply weird. Could you remove your .doit.db and try again? On Thu, May 21, 2020 at 9:54 AM Marcelo Huerta wrote: > In my current setup (latest Nikola 8.0.4, commit1477b4d > , > on Windows 7 Build

Re: [nikola-discuss] Re: AttributeError: 'Undefined' object has no attribute 'meta'

2020-05-13 Thread Roberto Alsina
On Wed, May 13, 2020 at 7:30 AM Julien Vallet wrote: > Can I send you the context ? What would you need ? I'm just at the end of > the rope > > Is your site's source code somewhere I can see it? Or just make a zip and email it to me. -- You received this message because you are subscribed to

Re: [nikola-discuss] Re: AttributeError: 'Undefined' object has no attribute 'meta'

2020-05-13 Thread Roberto Alsina
The template has no "post", you only have it inside that loop, after the line % for post in posts: I am guessing the call to post.meta that's failing is outside that. Trying to explain how to fix that without context is difficult, but you just can't use post anywhere outside that loop. On Wed,

Re: [nikola-discuss] Re: AttributeError: 'Undefined' object has no attribute 'meta'

2020-05-13 Thread Roberto Alsina
Ok, the index template has no post, so you will need to make that conditional on post being there. On Wed, May 13, 2020 at 6:12 AM Julien Vallet wrote: > It has three posts and it's the index template. > > Le mercredi 13 mai 2020 10:59:50 UTC+2, Julien Vallet a écrit : >> >> Hi, >> >> >> I have

Re: [nikola-discuss] AttributeError: 'Undefined' object has no attribute 'meta'

2020-05-13 Thread Roberto Alsina
You probably need to check if the page you are rendering has a post or not. What template is this? On Wed, May 13, 2020 at 5:59 AM Julien Vallet wrote: > Hi, > > > I have trouble with the replacement of an old theme. > > When building under a new theme (canterville), I get a > > >

Re: [nikola-discuss] Theme don't want to update

2020-05-05 Thread Roberto Alsina
On Tue, May 5, 2020 at 8:55 AM Julien Vallet wrote: > Hi again, > > Since I've updated Nikola, all goes wrong. And since I'm really bad to > coding, it's a mess. > There's still the dbm.gnu module that doesn't want to go available (I > tried to delete doit but I'm not sure I have delete the good

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

2020-05-04 Thread Roberto Alsina
And yes, the shortcode there HAS to say "template" :-) On Mon, May 4, 2020 at 12:05 PM Roberto Alsina wrote: > This works too: > > > > {{% template %}} > > The title is: ${post.title()} > > {{% /template %}} > ~ > > On Mon, May 4, 2020 at 11:03 AM

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

2020-05-04 Thread Roberto Alsina
This works too: {{% template %}} The title is: ${post.title()} {{% /template %}} ~ On Mon, May 4, 2020 at 11:03 AM Chris Warrick wrote: > On Mon, 4 May 2020 at 16:00, Steve wrote: > > > > Chris, thanks for the clue. I still have not escaped the room. Tried > with no avail: > > > > {{%

Re: [nikola-discuss] contents and figures with caption in markdown

2020-05-03 Thread Roberto Alsina
On Sun, May 3, 2020 at 5:18 AM Martin Ueding wrote: > Dear All, > > I've been using Sphinx for my personal website for the past years and > realized that I more have a blog with posts and few pages and did the > conversion to Nikola in the past days. I also took the opportunity to > switch to

Re: [nikola-discuss] Re: Filter section in the doc

2020-04-28 Thread Roberto Alsina
I know commands work as strings. I *think* if you import filters, then filters.typogrify (without quotes) works too, like other callables. The one I am not sure about is using python callables as strings :-) On Tue, Apr 28, 2020 at 5:49 AM Mathieu Dugue wrote: > It is actually the doc that is

Re: [nikola-discuss] Filter section in the doc

2020-04-28 Thread Roberto Alsina
Dunno. Does that work? :-D On Mon, Apr 27, 2020 at 5:04 PM Mathieu Dugue wrote: > In the doc the filters example are given as strings, between " " : > > FILTERS = { > ".css": ["filters.yui_compressor"], > ".js": ["filters.yui_compressor"], > } > > But in the conf.py the filters example are

Re: [nikola-discuss] Plugins interactions

2020-04-27 Thread Roberto Alsina
In principle yes, plugins can both import each other and find already initialized instances of each other (which may be enough?) via site.plugin_manager I can't get site.plugin_manager.getPluginByName() to do something useful but you can always just use site.plugin_manager.getAllPlugins() That

Re: [nikola-discuss] Is there a convenient way of adding references to blog posts?

2020-03-03 Thread Roberto Alsina
On Tue, Mar 3, 2020 at 5:11 AM Adriaan Rol wrote: > Thanks, that is not exactly what I am looking for as the workflow is > significantly more complicated (simplicity was one of the reasons I chose > Nikola). My concerns with this workflow are that the citations use an > external Zotero plugin

Re: [nikola-discuss] Is there a convenient way of adding references to blog posts?

2020-03-02 Thread Roberto Alsina
It depends on what markup you are using. If you are using markdown, for example, you can use Zotero, IIRC. http://historytothepublic.org/referencing-and-working-with-bibliographies-in-markdown-the-recommended-method/ These usually imply postprocessing your source file with some tool to create

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

2020-02-13 Thread Roberto Alsina
No idea about the root cause, but you can force to rebuild parts of the site using -a and a target. Example: nikola build -a render_pages On Thu, Feb 13, 2020 at 11:54 AM Erik Ritch wrote: > nikola init -q n >> cd n >> vim conf.py >> # change POSTS, PAGES, INDEX_PATH >> nikola new_post -t

Re: [nikola-discuss] HTML inside post titles

2020-02-07 Thread Roberto Alsina
IIRC, In RSS, titles are supposed to be plain text On Thu, Feb 6, 2020 at 11:23 PM sharat87 wrote: > Hi guys, > > I'm currently trying to migrate my blog to Nikola. Some of my articles > have some minimal formatting in their titles, like italics and inline code > elements. But it appears Nikola

Re: [nikola-discuss] Anchor links for headings when authoring page using Markdown

2020-01-29 Thread Roberto Alsina
ilcrow (¶) sign as in the picture below > > Is there a way to remove it or make this work just for markdown and not > for notebook files/? > > On Tuesday, January 28, 2020 at 6:46:29 AM UTC-8, Roberto Alsina wrote: >> >> Looks like we implemented this? >> >>

Re: [nikola-discuss] Anchor links for headings when authoring page using Markdown

2020-01-28 Thread Roberto Alsina
Looks like we implemented this? https://github.com/getnikola/nikola/pull/2743 You need to add a add_header_permalinks filter. Relevant docs here: https://getnikola.com/handbook.html#post-processing-filters (look for add_header_permalinks) On Tue, Jan 28, 2020 at 11:40 AM Atma B Mani wrote: >

Re: [nikola-discuss] Modifying page templates - where is page.tmpl?

2019-10-29 Thread Roberto Alsina
Get your own copy with nikola theme -c page.tmpl On Tue, Oct 29, 2019 at 2:23 PM Zachary Bruick wrote: > I'm trying to modify templates to customize the appearance of my site. I > built everything using pages, and designating the template as 'page.tmpl', > but using the bootstrap3-jinja theme,

Re: [nikola-discuss] Anonymous hyperlink mismatch

2019-09-30 Thread Roberto Alsina
What you are seeing is an error in your file. Redoing it doesn't repeat the error message because that file is already built and nikola doesn't redo things without need I can't tell you what the problem is without looking at your file, but you are probably creating an internal link to an

Re: [nikola-discuss] license for themes

2019-09-22 Thread Roberto Alsina
Exactly, it's better to keep the original license whenever possible. On Sat, Sep 21, 2019 at 5:09 PM George Leslie-Waksman wrote: > Why not keep the license as it already is. There's no reason a Nikola > theme can't be Apache licensed. > > On Sat, Sep 21, 2019, 12:25 PM Saša Janiška wrote: >

Re: [nikola-discuss] Adding a header to the home page

2019-09-09 Thread Roberto Alsina
Mardegan wrote: > Hi Roberto! > > On Monday, September 9, 2019 at 11:21:15 PM UTC+3, Roberto Alsina wrote: >> >> You could create a template just for that page and add a extra_head block >> in it. >> > > Yes, I though of creating a template for my page, but how

Re: [nikola-discuss] Adding a header to the home page

2019-09-09 Thread Roberto Alsina
You could create a template just for that page and add a extra_head block in it. On Mon, Sep 9, 2019 at 5:19 PM Alberto Mardegan wrote: > Hi there! > I need to add a certain element inside the section of my > homepage, but I couldn't find out how it works. For the time being I've > added

Re: [nikola-discuss] Responsive Tables in Bootstrap-based themes

2019-09-03 Thread Roberto Alsina
It depends a little on what markup you are using, but usually they are not very flexible about how they generate that. On Tue, Sep 3, 2019 at 8:02 PM Kevin Sheppard wrote: > Is there any reasonable method to make tables responsive? The standard > apprach is to wrap the table in a div. > > >

Re: [nikola-discuss] Re: Using custom template for the index page of a static site

2019-08-17 Thread Roberto Alsina
Has happened to most of us :-) On Sat, Aug 17, 2019 at 7:23 AM Tsvetomir Dimitrov wrote: > The result of "ask stupid question on the internet to find the answer 10 > minutes later" > > The template behavior is exactly as I expected it, however I've messed up > my conf.py file and newly

Re: [nikola-discuss] Mobile version of gallery links, gallery image thumbnails disappear

2019-08-08 Thread Roberto Alsina
sue with the disappearing thumbnails? > > On Mon, Jul 22, 2019, 09:45 Ricky Mujica wrote: > >> Thanks, please let me know when you figure it out :). >> >> On Mon, Jul 22, 2019 at 7:49 AM Roberto Alsina wrote: >> > >> > Not yet >> > >> > On Mo

Re: [nikola-discuss] How to start contributing to Nikola

2019-08-04 Thread Roberto Alsina
On Sun, Aug 4, 2019 at 4:19 AM Luca Cerone wrote: > Hi everybody, > I'd like to learn more about Nikola internals and I thought that > contributing to the codebase would be a good way to learn about it. > > Cool! > At some point I would like to add some extra functionalities but now I >

Re: [nikola-discuss] Add Jupyter Notebook to listings

2019-08-01 Thread Roberto Alsina
Listings are meant for source code, notebooks really are not, since they are meant to be formatted in a very specific way On Thu, Aug 1, 2019 at 2:26 PM Zachary Bruick wrote: > I can get python scripts to render great using the listings folder and > following the demo. However, whenever I add a

Re: [nikola-discuss] Mobile version of gallery links, gallery image thumbnails disappear

2019-07-22 Thread Roberto Alsina
Not yet On Mon, Jul 22, 2019 at 1:58 AM Ricky Mujica wrote: > Any news on this bug yet? > Thanks > > On Sun, Jul 14, 2019, 16:59 Roberto Alsina wrote: > >> I have no idea yet. >> >> On Sun, Jul 14, 2019 at 5:53 PM Ricky Mujica >> wrote: >

Re: [nikola-discuss] Posts are published even if DEPLOY_DRAFTS = False

2019-07-18 Thread Roberto Alsina
; > Many thanks to both you and Chris for your help with this! > > Cheers, > Luca > > On Thu, Jul 18, 2019 at 9:22 PM Roberto Alsina wrote: > >> Whatever command you use (lftp --whatever) put it in the nikola config as >> a deploy command, and instead of calling i

Re: [nikola-discuss] Posts are published even if DEPLOY_DRAFTS = False

2019-07-18 Thread Roberto Alsina
Whatever command you use (lftp --whatever) put it in the nikola config as a deploy command, and instead of calling it directly, call "nikola deploy". That will delete all the drafts and THEN call lftp. On Thu, Jul 18, 2019 at 3:43 PM Luca Cerone wrote: > Thanks Chris, > many thanks for your

Re: [nikola-discuss] Mobile version of gallery links, gallery image thumbnails disappear

2019-07-14 Thread Roberto Alsina
I only looked at it for a few minutes, but when there is a resize event there is a bug in 3rd party code. I will try to take a look eventually. Sorry about the breakage! On Sun, Jul 14, 2019 at 4:12 PM Ricky Mujica wrote: > I just found another bit of information. The thumbnails only disappear

Re: [nikola-discuss] Excerpt in blog feed + rss

2019-07-06 Thread Roberto Alsina
It should mostly be a matter of copying/pasteing the one that is already there and changing a couple of ifs and a path :-) On Sat, Jul 6, 2019 at 2:50 PM Luca Cerone wrote: > Many thanks Chris! > As a non native English speakers it didn't occur to me to search for > "teaser" in the page! > >

Re: [nikola-discuss] Displaying the pound sign (£)

2019-06-25 Thread Roberto Alsina
Why not just £ ? On Tue, Jun 25, 2019, 6:17 PM Tom Creer wrote: > Hi, > > As the title, I'm trying to display the £ sign in a Nikola post. I'm > editing in RST, and have tried the following: > > |pound| (get a warning file that no substitution available) > \\ (renders pound;) > > How is this

Re: [nikola-discuss] System Message: WARNING/2

2019-05-13 Thread Roberto Alsina
Well, since the content is static it should either be there all the time or not be there all the time. I suspect you have something cached. Clean your browser's cache, and it should go away. Or appear all the time :-) On Mon, May 13, 2019 at 5:32 PM Ricky Mujica wrote: > Hi > > Funny thing

Re: [nikola-discuss] Re: source files are showing up in output dir- why?

2019-03-01 Thread Roberto Alsina
On Fri, Mar 1, 2019 at 1:25 PM Ted Timmons wrote: > On Fri, Mar 1, 2019 at 8:22 AM Roberto Alsina > wrote: > > COPY_SOURCES option in your conf.py > > After you change it, you will have to cleanup your output, or delete it > and rebuild it from scratch in order to make sur

Re: [nikola-discuss] Re: pro/cons of pandoc vs python-markdown

2019-02-15 Thread Roberto Alsina
On Fri, Feb 15, 2019 at 1:42 PM Gour wrote: > On Fri, 15 Feb 2019 09:48:41 -0300 > Roberto Alsina > wrote: > > > That comment about performance was about python markdown, not about > > pandoc. > > Thank you. What about the 1st point, any cons in using Pandoc/mar

Re: [nikola-discuss] pro/cons of pandoc vs python-markdown

2019-02-15 Thread Roberto Alsina
That comment about performance was about python markdown, not about pandoc. On Fri, Feb 15, 2019, 06:54 Gour Hello, > > I'm considering to use Markdown for all my writings and since Pandoc has > the > best support for stuff like slides, citations, bibliographies etc. I wonder > what would be

Re: [nikola-discuss] Having * minutes to read

2019-01-22 Thread Roberto Alsina
Check your conf.py, look for "remaining" On Tue, Jan 22, 2019, 22:26 bishop_gate wrote: > Hi, > > Is there an option within nikola to have X minutes to read for a blog post? > > Thanks, > > -- > You received this message because you are subscribed to the Google Groups > "nikola-discuss" group.

Re: [nikola-discuss] Import Jupyter Notebooks (IPYNB) as HTML with Embedded Images

2018-12-06 Thread Roberto Alsina
Well it *is* possible to fix that in the HTML after it's generated. Not trivial, and would need to be implemented as a filter, and it will make the page painful to load. On Thu, Dec 6, 2018 at 12:11 PM Damián Avila wrote: > Hi, > > I do not think there is an easy way to do this without

Re: [nikola-discuss] can shortcodes render markdown?

2018-10-19 Thread Roberto Alsina
lk_details.tmpl#L31 > > > Thankfully, > Abraham V. > > > > > > On Thursday, 18 October 2018 15:39:10 UTC-4, Roberto Alsina wrote: >> >> >> On Thu, Oct 18, 2018 at 12:33 PM Marcelo Huerta >> wrote: >> >>> That would be an int

Re: [nikola-discuss] can shortcodes render markdown?

2018-10-18 Thread Roberto Alsina
On Thu, Oct 18, 2018 at 12:33 PM Marcelo Huerta wrote: > That would be an interesting capability to keep working after the > configuration gets migrated to YAML... > There are ways :-) > -- > You received this message because you are subscribed to the Google Groups > "nikola-discuss" group. >

Re: [nikola-discuss] folders in a data file?

2018-10-04 Thread Roberto Alsina
rce code acted as a good reference. > > Yours happily, > Abraham V. > > > On Thursday, 4 October 2018 10:31:15 UTC-4, Roberto Alsina wrote: > >> Looks like it sort of works? >> >> I created a data file in data/foo/bar.json with a little data, and: >> &g

Re: [nikola-discuss] folders in a data file?

2018-10-04 Thread Roberto Alsina
Looks like it sort of works? I created a data file in data/foo/bar.json with a little data, and: In [2]: site._GLOBAL_CONTEXT['data'] Out[2]: {'foo/bar': {'a': 'b'}} So, close enough to what you want? On Thu, Oct 4, 2018 at 8:42 AM Roberto Alsina wrote: > If it doesn't I can make it do

Re: [nikola-discuss] folders in a data file?

2018-10-04 Thread Roberto Alsina
If it doesn't I can make it do so :) Try it and file an issue if it doesn't. On Thu, Oct 4, 2018, 8:20 AM 'Abraham Varricatt' via nikola-discuss < nikola-discuss@googlegroups.com> wrote: > Hello, > > ref: https://getnikola.com/handbook.html#the-global-context-and-data-files > > > Are

Re: [nikola-discuss] Re: Generating API reference with Nikola?

2018-09-28 Thread Roberto Alsina
AM Aleksandr Drozd wrote: > Sorry, I mean API reference generated from module's docstrings of course. > But indeed pepople don't use SSGs programmatically > > On Friday, September 28, 2018 at 7:15:21 PM UTC+9, Roberto Alsina wrote: >> >> Nikola generates it's own do

  1   2   >