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

2018-04-15 Thread George Leslie-Waksman
Nikola already supports a `guid` metadata field for use as the feed post identifier and it defaults to url when unspecified. I'm proposing adding the option to autogenerate this field on `nikola new_post` On Sun, Apr 15, 2018, 3:55 PM Roberto Alsina wrote: > You meas as slug? Or for what specifi

Re: [nikola-discuss] Re: Limitations o fMathJax?

2018-04-15 Thread Graham Wheeler
Ah, finally, got it to work. I had to use four backslashes to get the line break: $$S_n = \begin{cases} 2S_{n-1} + 1 & \text{if } n > 1, 1 & \text{if } n = 1. \end{cases}$$ On Sunday, April 15, 2018 at 3:31:30 PM UTC-7, Graham Wheeler wrote: > > HI Chris > > I tried the way you wrote it.

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 generating a new UUID4

Re: [nikola-discuss] Re: Limitations o fMathJax?

2018-04-15 Thread Graham Wheeler
HI Chris I tried the way you wrote it. \[ didn't work for me; I had to use $$. But the layout isn't what I want; I get: I'll

Re: [nikola-discuss] Proposed change to "updated" metadata for v8

2018-04-15 Thread George Leslie-Waksman
https://github.com/getnikola/nikola/pull/3047 On Sun, Apr 15, 2018 at 2:35 PM George Leslie-Waksman wrote: > Ok, that's a documentation bug. Right now the docs say, "The last time > this post was updated, defaults to now." > > I'll make a fix for that later today. > > --George > > On Sun, Apr 15

Re: [nikola-discuss] Proposed change to "updated" metadata for v8

2018-04-15 Thread George Leslie-Waksman
Ok, that's a documentation bug. Right now the docs say, "The last time this post was updated, defaults to now." I'll make a fix for that later today. --George On Sun, Apr 15, 2018 at 2:30 PM Chris Warrick wrote: > On 15 April 2018 at 23:27, George Leslie-Waksman > wrote: > > I've been making

[nikola-discuss] Generating UUID4 GUIDs on new_post?

2018-04-15 Thread George Leslie-Waksman
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 generating a new UUID4 every time I create a new post, and it seems like we could add that to `nikola new_post`. I'm happy to implement it

Re: [nikola-discuss] Proposed change to "updated" metadata for v8

2018-04-15 Thread Chris Warrick
On 15 April 2018 at 23:27, George Leslie-Waksman wrote: > I've been making some updates to my site recently and thinking about > starting to use the "updated" metadata field for when I make addenda/errata > for my posts. In doing so, I noticed that "updated" defaults to render-time, > which seems

[nikola-discuss] Proposed change to "updated" metadata for v8

2018-04-15 Thread George Leslie-Waksman
I've been making some updates to my site recently and thinking about starting to use the "updated" metadata field for when I make addenda/errata for my posts. In doing so, I noticed that "updated" defaults to render-time, which seems counter-intuitive to me. What do people think of changing the "u

Re: [nikola-discuss] Re: Limitations o fMathJax?

2018-04-15 Thread Graham Wheeler
I was fiddling around with $, $$, and \\[. None worked. The original had $$; I may have left it as $ after my fiddling. On Sun, Apr 15, 2018 at 3:41 AM Chris Warrick wrote: > On 15 April 2018 at 08:17, Graham Wheeler wrote: > > Excuse mistake in subject line. > > > > > > On Saturday, April 14,

Re: [nikola-discuss] How to get all posts for each category in a template file?

2018-04-15 Thread 童虎
Got it! Thank you! 在 2018年4月15日星期日 UTC+8下午5:39:19,Chris Warrick写道: > > On 15 April 2018 at 04:18, 童虎 > wrote: > > Hello, I flow your guid. > > First create a page name test.org which specify the template test.tmpl: > > > > #+begin_comment > > .. title: 2017 learn list > > .. slug: 2017_learn

Re: [nikola-discuss] Re: Limitations o fMathJax?

2018-04-15 Thread Chris Warrick
On 15 April 2018 at 08:17, Graham Wheeler wrote: > Excuse mistake in subject line. > > > On Saturday, April 14, 2018 at 11:17:01 PM UTC-7, Graham Wheeler wrote: >> >> Hi all >> >> I have a piece of math markup in MathJax that Nikola is failing to render >> (in a markdown file): >> >> $$S_{n} = \le

Re: [nikola-discuss] How to get all posts for each category in a template file?

2018-04-15 Thread Chris Warrick
On 15 April 2018 at 04:18, 童虎 wrote: > Hello, I flow your guid. > First create a page name test.org which specify the template test.tmpl: > > #+begin_comment > .. title: 2017 learn list > .. slug: 2017_learn_list > .. date: 2017-09-19 22:10:06 utc+08:00 > .. tags: > .. category: > .. link: > .. de