club-1 / hosting

Hosting on CLUB1
https://club1.fr
6 stars 1 forks source link

home/ABOUTME.md #60

Closed vincent-peugnet closed 2 years ago

vincent-peugnet commented 2 years ago

To get further on the membres page on the website, I propose a way to gather presentation page from members accounts in order to display them on the website. I always like the idea of many little pages in different windows, but I'm looking for a way to do it without need of editor.

I fought of adding a ABOUTME.md file in each user home by default. This file will be editable by users and could be deleted if they don't want to appear in the member list or empty to be listed but with nothing about them.

A question appear to me: how do they want to be called ? maybe users don't want to reveal their username. That add a problematic of how to store it. Maybe the first H1 title could be the name.

After that, I imagine a CRON script to transform in html, or that simply put the content in the W page membres and update the modification time. Or even a function in W that can print content of a file in a page... I'd like to find out what is the most simple solution for doing that.

But yeah, the main idea is to use as much as possible simple config files in the user home directory.

vincent-peugnet commented 2 years ago

last idea was to code a daemon that will detect files editing, convert markdown to HTML, then update a Json W Page file filling the ASIDE using the following structure :

<div class="member">USERNAME</div>

<div class="aboutme" id="USERNAME">
    <div class="handle">USERNAME</div>
    <div class="close">x</div>

    <div class="content">
      ABOUTME in HTML
    </div>
</div>

This structure can be negotiate with @Mement0o .

vincent-peugnet commented 2 years ago

I think this would be better to do a more simple approach:

  1. create a list of users in a file
  2. create a php script that simply agregate ABOUTME content into html divs to an URL according to the user list
  3. import this as a iframe in club1.fr/membres
  4. display names of users according to a Front Matter name parameter in the ABOUTME file
  5. convert Markdown to HTML
vincent-peugnet commented 2 years ago

https://github.com/club-1/members-presentation