Re: [nikola-discuss] How to list existing categories if any, in a vertical sidebar

2016-08-11 Thread Roberto Alsina
Well, that's for tags, and it only works in the tag list. It is possible to do something similar but it will take a little coding in the categories plugin. On Thu, Aug 11, 2016 at 11:27 AM Ibn Saeed wrote: > Hello > > How to list existing categories if any, in a vertical

Re: [nikola-discuss] How to list existing categories if any, in a vertical sidebar

2016-08-11 Thread Roberto Alsina
Those things are only available in that page, and won't help you for what you are trying to do. On Thu, Aug 11, 2016 at 6:01 PM Ibn Saeed wrote: > What is cat_items and cat_hierarchy is tags.tmpl > > How to use them. > > -- > You received this message because you are

Re: [nikola-discuss] [newbie] CSS edits for iPython notebooks

2017-01-18 Thread Roberto Alsina
I am not familiar with notebooks, so I can't tell you the specific changes you need. However, I can tell you that when you figure them out, if you put that CSS in files/assets/css/custom.css they will Just Work (tm) On Wed, Jan 18, 2017 at 1:50 AM Redwan Huq wrote: > Hello

Re: [nikola-discuss] "story" page on front page

2017-03-01 Thread Roberto Alsina
We have a document for that, please read https://getnikola.com/creating-a-site-not-a-blog-with-nikola.html On Wed, Mar 1, 2017 at 9:45 AM Tamas Papp wrote: > Hi, > > I am new to Nikola. I would like to make a site that has no blog, only > "pages" ("stories"). If I make a

Re: [nikola-discuss] Re: image path gymnastics

2016-09-05 Thread Roberto Alsina
In reality, every time you specify a path to anything you need to specify it that same way, images are just the one people do all the time. Let me think about it a little bit and I'll probably merge that. On Mon, Sep 5, 2016 at 11:19 AM 'Abraham Varricatt' via nikola-discuss <

Re: [nikola-discuss] CSS, themes, and @imports

2016-09-06 Thread Roberto Alsina
Can you file a bug about that "having to run nikola twice" thing? On Tue, Sep 6, 2016 at 1:53 PM Russel Winder wrote: > On Tue, 2016-09-06 at 16:59 +0200, Chris Warrick wrote: > > […] > > > > Do you really need @import at the very top? If this is necessary, you > > can

Re: [nikola-discuss] Re: including HTML in my post

2016-09-07 Thread Roberto Alsina
...@samat.org> wrote: > On 08/26/2016 07:08 PM, Roberto Alsina wrote: > > Actually, the raw shortcut is not what I meant. It's late and I am on > > the phone but I will reply with a decent example tomorrow. > > Roberto, > > Could you share that example? > >

Re: [nikola-discuss] Re: `nikola new_post` problem: posts are not rendered, get directory listing instead

2016-09-21 Thread Roberto Alsina
Please file an issue at https://github.com/getnikola/nikola/issues and paste the whole traceback in the description. On Wed, Sep 21, 2016 at 8:12 AM srust wrote: > `nikola-build` log shows that index.htm for the post file generates python > error: > > TaskError - >

Re: [nikola-discuss] Re: Creating a site (not a blog) and get directory listing

2016-09-28 Thread Roberto Alsina
You'd have to have two different lines in PAGES, like: PAGES=[ ("root/*.txt", "", "story.tmpl"), ("stories/*.txt", "stories", "story.tmpl"), ] Then everything in root/whatever.txt will be in the root folder, everything else in stories/ On Wed, Sep 28, 2016 at 11:18 AM Greg Nordin

Re: [nikola-discuss] Re: Creating a site (not a blog) and get directory listing

2016-09-28 Thread Roberto Alsina
Alternatively, just put things in folders. The folder structure you use is reflected in output. On Wed, Sep 28, 2016 at 11:35 AM Roberto Alsina <rals...@kde.org> wrote: > You'd have to have two different lines in PAGES, like: > > PAGES=[ > ("root/*.txt", "&q

Re: [nikola-discuss] Non-default directory structure for a site (not a blog)

2016-10-31 Thread Roberto Alsina
Hopefully that's it :-) On Mon, Oct 31, 2016 at 12:55 PM Benny Simonsen wrote: > Hi, > > I am using the "Creating a site (not a blog) and get directory listing" - > https://groups.google.com/forum/#!topic/nikola-discuss/esBFYeMDyro > configuration. > > I am planning to use

Re: [nikola-discuss] How to customize templates in minor ways without creating custom theme?

2016-11-04 Thread Roberto Alsina
The simplest way is to do this: nikola theme -c post_header.tmpl That will give you a copy of that template in templates/ edit at will, and that's it :-) On Fri, Nov 4, 2016 at 10:58 AM Achab Bachadiensis wrote: > Hi there, > > I would like to change the way available

Re: [nikola-discuss] add tags in a post and change basic

2016-12-14 Thread Roberto Alsina
It doesn't exist but you can do it yourself! Here's a basic one that you could put in shortcodes/post_tags.tmpl (not tags.tmpl because I think we have a template called tags and it would break things) ${ post.tags } If you want to do something nicer, you will probably have to do something like

Re: [nikola-discuss] plugin order

2016-12-02 Thread Roberto Alsina
Plugins that are tasks can depend on other plugins tasks being finished. For example in the tags plugin: ``` 'task_dep': ['render_posts'], ``` That means that task requires the rendr_posts task to be finished before running. On Fri, Dec 2, 2016 at 2:46 PM Dave

Re: [nikola-discuss] ical plugin -

2016-12-22 Thread Roberto Alsina
The plugin may need an update. I'll try to push a fixed version tonight. On Thu, Dec 22, 2016 at 5:36 PM 'Benny Simonsen' via nikola-discuss < nikola-discuss@googlegroups.com> wrote: > > Hello, > > I am using Nikola 7.8.1, and have just installed icalender (prerecusite > for ical) and the ical

Re: [nikola-discuss] How to scale Nikola?

2017-03-22 Thread Roberto Alsina
You can use -n to parallelize the build. Once it builds once it should be faster from then on. El mié., 22 mar. 2017 11:06, Chillar Anand escribió: > We have an old blogger blog which has ~25K pages. > > We are trying to port it to Nikola. Nikola is taking forever to

Re: [nikola-discuss] How to scale Nikola?

2017-03-23 Thread Roberto Alsina
If it's "standard" markdown, you could try the misaka markdown plugin. Information about relative speeds of different markdown plugins here: https://getnikola.com/blog/markdown-can-affect-performance.html Keep in mind that currently the "standard" markdown compiler is quite faster than it was

Re: [nikola-discuss] Customizing HTML conversion of ipython notebooks

2017-05-11 Thread Roberto Alsina
That is very interesting! If there are mechanisms to do that in jupyter and you can point me to them I will happilytake a look. El jue., 11 may. 2017 9:09, Redwan Huq escribió: > Hello, > > I'm trying to figure out how to customize the look of HTML posts converted > from

Re: [nikola-discuss] Static comments

2017-05-24 Thread Roberto Alsina
On Wed, May 24, 2017 at 7:46 PM Aaron Meurer wrote: > I also saw this site, which is not using Nikola, uses GitHub for > comments http://donw.io/post/github-comments/. I wonder if anyone has > played around with doing this in Nikola. > > That is *very* interesting! -- You

Re: [nikola-discuss] gallery shortcode in markdown

2017-06-08 Thread Roberto Alsina
Hi! Yes, making the gallery directive into a shortcode is not exactly easy :-P I want to do it, just not right away, but I have added it to issue #2809 https://github.com/getnikola/nikola/issues/2809 That's not a promise that it will get done fast (some issues I have fixed a couple of years

Re: [nikola-discuss] Nikola theming and modern CSS frameworks

2017-09-05 Thread Roberto Alsina
Since we are not frontend people, no, there isn't. In fact, I don't even know how that would look. On Tue, Sep 5, 2017 at 2:08 PM Gour wrote: > Hello, > > I'm about to start working on few themes for Nikola and the usual > procedure is > to use some CSS framework to build

Re: [nikola-discuss] Re: Nikola theming and modern CSS frameworks

2017-09-05 Thread Roberto Alsina
Sorry, not reading 61 slides. On Tue, Sep 5, 2017 at 3:14 PM Gour <g...@atmarama.com> wrote: > On Tue, 05 Sep 2017 17:10:01 + > Roberto Alsina <rals...@kde.org> wrote: > > > In fact, I don't even know how that would look. > > Have you seen this (pl

Re: [nikola-discuss] Keeping Changes to a Downloaded Theme.

2017-11-13 Thread Roberto Alsina
Suppose you want to modify base.tmpl: nikola theme -c base.tmpl That will give you a copy in your site's directory. Edit that one and it will just work. On Mon, Nov 13, 2017 at 7:18 AM Ian Barton wrote: > I have installed the bootstrap3 theme using the theme command. This

Re: [nikola-discuss] (some) Pelican plugins (possibly) relevant for Nikola

2018-01-29 Thread Roberto Alsina
If they are implemented as real docutils directives and roles, making them into nikola plugins should be just a little copy/paste. On Mon, Jan 29, 2018 at 1:21 PM Gour wrote: > Hello, > > while browsing web site of m.css (no-JSS CSS framework) which I plan to > tailor > for

Re: [nikola-discuss] Docbook man page support

2018-02-01 Thread Roberto Alsina
I don't see anything obviously wrong with the code, except it has my name on it :-) Yes, doing that sort of plugin is just that simple. I would change the author, add a README, perhaps a sample config and upload. On Wed, Jan 31, 2018 at 7:06 PM Roberto Alsina <rals...@kde.org> wrote:

Re: [nikola-discuss] Docbook man page support

2018-01-31 Thread Roberto Alsina
That looks very nice! Feel free to PR into the plugins repo, I can even give you commit rights so you can just push new versions whenever you want. The main benefit of putting it there is that it becomes installable via nikola itself. On Wed, Jan 31, 2018 at 2:42 PM Roger Light

Re: [nikola-discuss] Docbook man page support

2018-01-31 Thread Roberto Alsina
don't > understand the details. Could you give any suggestions on whether what > I've done makes sense? > > Cheers, > > Roger > > > On 31 January 2018 at 17:49, Roberto Alsina <rals...@kde.org> wrote: > > That looks very nice! > > > > Feel free to PR into

Re: [nikola-discuss] Settings for Markdown extensions

2018-02-24 Thread Roberto Alsina
Not currently but it seems a reasonable feature request On Sat, Feb 24, 2018, 4:16 AM Saadat Mateen wrote: > On Wed, Feb 21, 2018 at 6:47 AM, Saadat Mateen > wrote: > > In Nikola, is there a way to configure the settings for a Markdown > >

Re: [nikola-discuss] Disable tasks

2018-02-15 Thread Roberto Alsina
gh, not only disables the rendering of the > categories index, but also the blog index and the rss. > > > On Thursday, February 15, 2018 at 9:45:01 PM UTC+1, Roberto Alsina wrote: > >> Look for the DISABLED_PLUGINS option >> >> On Thu, Feb 15, 2018 at 5:06 PM <nickt.

Re: [nikola-discuss] Index that looks like archives

2018-08-26 Thread Roberto Alsina
Nikola theme -c whatever.tmpl That command always does the right thing. On Sun, Aug 26, 2018, 7:58 AM Yaşar Arabacı wrote: > Hi, > > I created a custom theme folder in [root]/themes/custom folder, and > created parent file pointing to bootstrap3. I was thinking I would > find index.tmpl in

Re: [nikola-discuss] How to show an edit date

2018-03-06 Thread Roberto Alsina
"|h" means "quote it so it's safe for HTML" so it will replace < with and so on. On Tue, Mar 6, 2018 at 11:22 AM asmoth wrote: > Thank you, it works better indeed ^^ Couldn't this be documented somewhere > ? I didn't find until I asked here. > > A last question : what does

Re: [nikola-discuss] Generating UUID4 GUIDs on new_post?

2018-04-17 Thread Roberto Alsina
I am ok with it as long as it is hidden nehind a flag. Can't be default or every Nikola user will flood every planet or newsreader. El lun., 16 de abr. de 2018 7:03 PM, George Leslie-Waksman < waks...@gmail.com> escribió: > Lots of rss readers, especially podcatchers make use of read/unread as

Re: [nikola-discuss] Generating UUID4 GUIDs on new_post?

2018-04-15 Thread Roberto Alsina
You meas as slug? Or for what specific purpose? On Sun, Apr 15, 2018 at 6:33 PM George Leslie-Waksman wrote: > I like GUIDs because they're fantastically stable (when you hard-code them > for your posts) unlike URLs (which are config dependent). I don't > particularly like

Re: [nikola-discuss] How to set `pagekind`?

2018-03-26 Thread Roberto Alsina
If you want your templates to make decisions based on post/page metadata, just use whatever metadata you want, and ask the users to provide it :-) On Mon, Mar 26, 2018 at 1:05 AM Michael Forbes wrote: > I noticed in the documentation that one can check `pagekind` in

Re: [nikola-discuss] CNAME file

2018-03-20 Thread Roberto Alsina
na domain^users 79 mar 20 12:14 robots.txt -rw-r--r-- 1 ralsina domain^users 726 mar 20 12:14 rss.xml -rw-r--r-- 1 ralsina domain^users 711 mar 20 12:14 sitemapindex.xml -rw-r--r-- 1 ralsina domain^users 864 mar 20 12:14 sitemap.xml On Tue, Mar 20, 2018 at 8:58 AM Roberto Alsina <rals...@kd

Re: [nikola-discuss] How to show an edit date

2018-03-06 Thread Roberto Alsina
You can add it as metadata in the post and then change the templates to show it. El mar., 6 de mar. de 2018 9:17 AM, asmoth escribió: > Hey everyone, I discovered Nikola yesterday and thought I might be using > it for a blog, it looks great. > As I was exploring the

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] 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] 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] Re: Generating API reference with Nikola?

2018-09-28 Thread Roberto Alsina
ttp://pycontextfree.blackbird.pw/gallery/ > > So for this some hacky/semi-manual solution will do… still waiting for > them to look at my issue at pdoc... > > > On Thursday, September 27, 2018 at 7:15:15 PM UTC+9, Roberto Alsina wrote: >> >> It's possible pdoc was not the best too

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] 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] Generating API reference with Nikola?

2018-09-24 Thread Roberto Alsina
I don't know of anyone that has used Nikola for it. OTOH, if there is interest, something that wraps pdoc ( https://github.com/mitmproxy/pdoc) and integrates it into a nikola site is pretty easy to do. On Mon, Sep 24, 2018 at 12:27 PM Aleksandr Drozd wrote: > Does anybody by any chance have a

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

2018-09-25 Thread Roberto Alsina
Ok, so the first version was very, very buggy and only worked in my machine by accident. I just uploaded v0.2 which does work, even if the output sort of sucks. On Tue, Sep 25, 2018 at 7:17 AM Roberto Alsina wrote: > Ah, right, you need to add pdoc to your PAGES option in conf.py ..

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

2018-09-25 Thread Roberto Alsina
Ah, right, you need to add pdoc to your PAGES option in conf.py ... I will add a conf.py.sample later today On Tue, Sep 25, 2018 at 6:05 AM Aleksandr Drozd wrote: > I'm trying to > ` nikola new_page -f pdoc` > and getting > `[2018-09-25T09:04:25Z] ERROR: new_page: Unknown page format pdoc,

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

2018-09-27 Thread Roberto Alsina
It's possible pdoc was not the best tool for this :-) On Thu, Sep 27, 2018 at 5:57 AM Aleksandr Drozd wrote: > now fighting with pdoc templating: > https://github.com/mitmproxy/pdoc/issues/178 > >> >> >> >> -- > You received this message because you are subscribed to the Google Groups >

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

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] Removing the byline

2019-01-08 Thread Roberto Alsina
t;> I'd like to eliminate the byline under the post title. Attached is a >>> screenshot of what I'd like to remove, specifically the "Nikola Tesla" >>> under the "Title of the Post". >>> >>> - Peter >>> >>> >>> On

Re: [nikola-discuss] Removing the byline

2019-01-08 Thread Roberto Alsina
You mean the "Powered by Nikola" bit? it's in your conf.py in the CONTENT_FOOTER option. On Tue, Jan 8, 2019 at 1:57 AM Peter Kropf wrote: > I'm trying to build a static site using the bootstrap4 theme and I'd like > to remove the byline. Unfortunately, I don't understand enough of Nikola > and

Re: [nikola-discuss] first heading (title) still visible

2018-09-13 Thread Roberto Alsina
set DEMOTE_HEADERS=0 in conf.py On Thu, Sep 13, 2018 at 4:30 PM 'Thomas Janotta' via nikola-discuss < nikola-discuss@googlegroups.com> wrote: > Hi, with v8.0.0. the headlines are still wrong, h1 becomes h2 etc. > > When I put USE_REST_DOCINFO_METADATA = False, the heading (from title) is > still

Re: [nikola-discuss] Re: Copying files to the output folder

2018-09-17 Thread Roberto Alsina
Well, one simple way is to generate the files you need copied in the right place in files/ and then let the included default plugins copy them as needed. On Mon, Sep 17, 2018 at 10:17 AM Aleksandr Drozd wrote: > Hm, so I could hack my way around this problem by writing another plugin > of Task

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] 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] Mobile version of gallery links, gallery image thumbnails disappear

2019-07-14 Thread Roberto Alsina
> > > > Thank you so much! > > R > > > > On Sun, Jul 14, 2019 at 4:32 PM Roberto Alsina wrote: > > > > > > 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 > e

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] 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] 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] 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] 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] 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] 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] 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] 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] 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
use listings, I > didn't even know that there were such files). > > Many thanks for your help, I really appreciate it! > > Cheers, > Luca > > > On Thu, Jul 18, 2019 at 9:59 PM Roberto Alsina wrote: > >> Drafts are never in the feed and with DEPLOY_DRAFTS = False t

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] 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] 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] 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] 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] 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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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
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] 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] 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] Re: AttributeError: 'Undefined' object has no attribute 'meta'

2020-05-21 Thread Roberto Alsina
ne: https://github.com/getnikola/nikola-themes/blob/master/v8/canterville/templates/base.tmpl On Wed, May 13, 2020 at 8:08 AM Roberto Alsina wrote: > 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

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] 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] 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] 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