Hi there,
On Sat Apr 10, 2021 at 5:10 PM -03, ybaumy wrote:
> Would it possible to add support for subfolders on the index page and> generate an index for each folder automatically?>> BR>> ybaumy
I assume you're talking about gssg.
gssg does not create files, the implementation becomes much simpler
without it.
With that said, I would like to hear about your use-case, perhaps we can
work something out :)
Cheers
--
Gustavo Heinz
Yes I meant gssg. Sorry. I am new at sr.ht and I guess this list is for
more projects.
I am preparing to migrate my current homepage
https://lost-frequencies.eu to gemini. There is already a
https:/gemini.lost-frequencies.eu site and with it a
gemini://gemini.lost-frequencies.eu site. My current homepage is pretty
much my article reading history and has a folder structure for
year/month/day. I can script this myself and add index.gmi files for
each folder and dynamically build a new top index.gmi each time a new
entry is added, but since I found your project which already had atom
feed support, which I currently also build myself via scripts, I thought
I was going to ask here.
Could I make you understand what I am trying to do?
BR
ybaumy
On 4/11/21 1:47 AM, Gustavo Heinz wrote:
> Hi there,>> On Sat Apr 10, 2021 at 5:10 PM -03, ybaumy wrote:>> Would it possible to add support for subfolders on the index page and>> generate an index for each folder automatically?>>>> BR>>>> ybaumy> I assume you're talking about gssg.>> gssg does not create files, the implementation becomes much simpler> without it.>> With that said, I would like to hear about your use-case, perhaps we can> work something out :)>> Cheers>> --> Gustavo Heinz
Hi!
On Sun Apr 11, 2021 at 2:45 AM -03, ybaumy wrote:
> Yes I meant gssg. Sorry. I am new at sr.ht and I guess this list is for> more projects.
It's ok :)
> I am preparing to migrate my current homepage> https://lost-frequencies.eu to gemini. There is already a> https:/gemini.lost-frequencies.eu site and with it a> gemini://gemini.lost-frequencies.eu site. My current homepage is pretty> much my article reading history and has a folder structure for> year/month/day. I can script this myself and add index.gmi files for> each folder and dynamically build a new top index.gmi each time a new> entry is added, but since I found your project which already had atom> feed support, which I currently also build myself via scripts, I thought> I was going to ask here.>> Could I make you understand what I am trying to do?
So basically, you have your main index.gmi with all the article links,
and you want all the year/month/day subfolders on this main index.gmi,
is that correct?
If so, one way to make this really easy, is to simply flatten the
structure, instead of articles/2021/2/3/article.gmi, you could have
articles/2021-2-3-article.gmi, that would be sorted by gssg and added to
the main index page in order :)
If you really want to keep the year/month/day folder structure, we could
make the index template traverse these folders and add the articles to
the main page. But the atom.xml generation would be trickier.
Cool website, btw
--
Gustavo Heinz
Flattening the structure will not be good, since there are a lot of
files. I tried that already and navigating in the gemini client is not
that good then. Also the performance is really bad when you have like 1k
files to load and parse it seems. I am already trying the convert stuff
and test with the global/archive/articles-date/... and generate
index.gmi files for those folders.
If you want to add this as a feature I would be glad but I do not want
to cause any trouble in requesting features only one person really uses.
Because of my current homepage. If you want to get a closer look you can
join #neuron:matrix.org or also get in contact with srid who is
developer and can be found on github.
BR
ybaumy
On 4/11/21 2:04 PM, Gustavo Heinz wrote:
> Hi!>> On Sun Apr 11, 2021 at 2:45 AM -03, ybaumy wrote:>> Yes I meant gssg. Sorry. I am new at sr.ht and I guess this list is for>> more projects.> It's ok :)>>> I am preparing to migrate my current homepage>> https://lost-frequencies.eu to gemini. There is already a>> https:/gemini.lost-frequencies.eu site and with it a>> gemini://gemini.lost-frequencies.eu site. My current homepage is pretty>> much my article reading history and has a folder structure for>> year/month/day. I can script this myself and add index.gmi files for>> each folder and dynamically build a new top index.gmi each time a new>> entry is added, but since I found your project which already had atom>> feed support, which I currently also build myself via scripts, I thought>> I was going to ask here.>>>> Could I make you understand what I am trying to do?> So basically, you have your main index.gmi with all the article links,> and you want all the year/month/day subfolders on this main index.gmi,> is that correct?>> If so, one way to make this really easy, is to simply flatten the> structure, instead of articles/2021/2/3/article.gmi, you could have> articles/2021-2-3-article.gmi, that would be sorted by gssg and added to> the main index page in order :)>> If you really want to keep the year/month/day folder structure, we could> make the index template traverse these folders and add the articles to> the main page. But the atom.xml generation would be trickier.>> Cool website, btw> --> Gustavo Heinz