~ianmjones

Somerset, UK

https://ianmjones.com

Always developing.

Recent activity

Re: Adding content to feeds 30 days ago

From Ian M. Jones to ~adnano/kiln-discuss

On 23/05/2021 16:40, Adnan Maolood wrote:
> 
> I updated gmnitohtml to use self-closing tags so the output is also
> valid XML.
> 

Nice one, thank you.

Re: Adding content to feeds 30 days ago

From Ian M. Jones to ~adnano/kiln-discuss

On 23/05/2021 01:42, Adnan Maolood wrote:
> I went ahead and added a function to execute external commands from
> within templates. You can use it in your atom.xml template like so:
> 
> 	<content>{{ exec "gmnitohtml" .Content | safeHTML }}</content>
> 

Brilliant, thanks Adnan!

I've given it a whirl and it works very well, thank you.

I did need to do a little extra in the atom.xml template as the <br> 
tags created by gmnitohtml which are perfectly valid in most contexts, 
caused validations errors in this xml context.

Re: Adding content to feeds 30 days ago

From Ian M. Jones to ~adnano/kiln-discuss

On 23/05/2021 01:18, Adnan Maolood wrote:
> On Sat May 22, 2021 at 6:47 PM EDT, Ian M. Jones wrote:
>>
>> I did just have a thought though ... what if gmnitohtml had access to
>> safeHTML in the templates?
>>
...
>> Bit of a hack, but maybe adding safeHTML/URL etc to gmnitohtml would be
>> handy for other reasons too?
>>
> 
> While this could work, it would be an abuse of gmnitohtml, whose purpose
> is solely to convert Gemini text to HTML. The templating support is
> meant to be very basic for sites who only want to apply a single

Re: Adding content to feeds a month ago

From Ian M. Jones to ~adnano/kiln-discuss

Thanks Adnan

> If you don't want to maintain two versions of your templates, it seems
> like adding a function to execute external commands would be the best
> approach.

Yeah, I'd rather not duplicate all my templates if at all possible.

I did just have a thought though ... what if gmnitohtml had access to 
safeHTML in the templates?

That would mean I could preprocess to HTML, and then in the postprocess 
usage with a template it would skip double HTML conversion if the 
content bit was like...

Adding content to feeds a month ago

From Ian M. Jones to ~adnano/kiln-discuss

Hi,

I would like to include content in my feeds.

The current atom.xml template created by default by kiln at 
templates/_default/atom.xml does not include a <content> elements in 
each <entry>.

I'm struggling to get something working as just adding something like 
the following to the atom.xml template ends up with gmi content rather 
than HTML content as required by most feed readers.

<content>{{ .Content }}</content>

Thanks for kiln and gmnitohtml a month ago

From Ian M. Jones to ~adnano/kiln-discuss

Hi Adnan,

Just wanted to say thank you for kiln and gmnitohtml, and all the work
you've put into them.

I really enjoyed using them to explore building a Gemtext first
re-imaging of my personal site. Both kiln and gmnitohtml are well
thought out and work very well for my needs.

I also very much appreciate your willingness to accept the couple of
patches I sent.

Your dedication to fully documenting their use in their man pages makes
a big difference too.

[PATCH] Fix post ordering by Weight, reversed Date and FilePath. a month ago

From Ian M. Jones to ~adnano/kiln-devel

---
Thanks for adding reverse date ordering of posts Adnan.

However, it didn't work for me, looks like the sort isn't linear
enough. So the sorts need to be run one after the other starting
with the least important and using SortStable to keep progress.

Hope this makes sense. I'm very new to Go, so if there's a more
efficient way of doing this, please reject this patch!

Also, thanks so much for kiln, it's great stuff.

 dir.go | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
[message trimmed]

[PATCH] Fix kiln.1 not building due to syntax error. a month ago

From Ian M. Jones to ~adnano/kiln-devel

---
 docs/kiln.1.scd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/kiln.1.scd b/docs/kiln.1.scd
index 92440b0..074fa73 100644
--- a/docs/kiln.1.scd
+++ b/docs/kiln.1.scd
@@ -156,7 +156,7 @@ Example feed configuration:
## PERMALINKS

Permalinks can be used to rewrite page paths. Permalinks are specified in the
[permalinks] table of the configuration file. Keys denote a path to a directory,
\[permalinks] table of the configuration file. Keys denote a path to a directory,
[message trimmed]

Build stuck as queued a month ago

From Ian M. Jones to ~sircmpwn/sr.ht-discuss

Hi,

On Monday at approx 10am UK time I initiated build #500094 via a commit,
it's still at queued status.

https://builds.sr.ht/~ianmjones/job/500094

Now that builds are back in business I've taken a copy of its manifest
and submitted another job (#500983) that has completed just fine, so
it's just a matter of cleaning up.

I can't see a way of cancelling the job, is there a way to do that?

Cheers,

[PATCH v2] Demonstrate that I can use git send-email! 1 year, 8 months ago

From Ian M. Jones to ~sircmpwn/email-test-drive

---
This fixes the issues raised from the first patch.

 ian-jones | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 ian-jones

diff --git a/ian-jones b/ian-jones
new file mode 100644
index 0000000..66cb3d4
--- /dev/null
+++ b/ian-jones
@@ -0,0 +1 @@
I have successfully used git send-email!
[message trimmed]