knadh / tg-archive

A tool for exporting Telegram group chats into static websites like mailing list archives.
MIT License
868 stars 127 forks source link

template.html showing variables #111

Closed scarlion1 closed 1 year ago

scarlion1 commented 1 year ago

If I follow your Usage instructions to build "mysite" what's the proper way to publish it?  I copied config.yaml, rss_template.html, site/, static/, and template.html to Web Root but /template.html renders as shown below.  Also tried putting the whole mysite dir in the Web Root but /mysite/template.html still looks the same.  What I mess up? Thx

Screenshot from 2023-09-10 22-20-36

knadh commented 1 year ago

That's the raw template that's showing. After you generate mysite directory:

scarlion1 commented 1 year ago

Awesome! Everything is rendering now except for the name of the group. In my config, group is set to the group ID, so -100... and that's what shows underneath the icon on the published site, instead of the name of the group:

@-100... / 
Public archive of 
Telegram messages. 

@knadh How to get that to show the name of the group?

scarlion1 commented 1 year ago

I guess I was mistaken in remembering the https://tg.fossunited.org/ example and it's more readable & memorable when group has an @name.

In this case, I guess have to add to config.yaml some new variables, e.g. group_name and group_link and go from there...