Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate new author and category pages automatically. #107

Closed
kgodey opened this issue Jul 25, 2019 · 13 comments
Closed

Generate new author and category pages automatically. #107

kgodey opened this issue Jul 25, 2019 · 13 comments

Comments

@kgodey
Copy link
Member

kgodey commented Jul 25, 2019

Is your feature request related to a problem? Please describe.
Category and author pages have to be added manually for new authors and categories despite having enough information to generate basic pages automatically. This makes the process of adding a new blog post take longer. See the instructions on https://opensource.creativecommons.org/community/write-a-blog-post/, we could reduce a couple of steps.

Describe the solution you'd like
Whenever Lektor builds its static files, it should create missing author or category files for new blog posts.

Describe alternatives you've considered
Keep doing it manually like we do now, but that's a pain.

@kgodey kgodey added good first issue New-contributor friendly help wanted Open to participation from the community labels Jul 25, 2019
@SamOdum
Copy link
Contributor

SamOdum commented Oct 8, 2019

Hello @kgodey , I am an Outreachy applicant. Please may I work on this issue?

@kgodey
Copy link
Member Author

kgodey commented Oct 9, 2019

Sure @SamOdum, I see you've commented on a couple of other issues on this repo as well, please pick one issue at a time so that others have a chance too. Let me know which one you want to tackle first and I'll mark that one as in progress.

@chimenekouomogne
Copy link

Hi @kgodey ! I'am an outreachy applicant , i have just received your mail according to the other project that is already in progress. Please is it possible for me to work on this one ?

@kgodey
Copy link
Member Author

kgodey commented Oct 21, 2019

Yes, go ahead

@chimenekouomogne
Copy link

chimenekouomogne commented Oct 21, 2019 via email

@chimenekouomogne
Copy link

Capture
Capture2

@chimenekouomogne
Copy link

Hi @kgodey ! I thought that generate new author were about something like that. But i discovered that it is already available through admin interface. Now ,i don't know whether i should create a link to a page that allows an author to fill its informations directly and to involve category. please Ma i'm a bit confused , need your help .

@kgodey
Copy link
Member Author

kgodey commented Oct 29, 2019

@chimenekouomogne We don't always use the Lektor admin interface to write posts. When a new blog post entry is created with an unknown author username in the author field (e.g. if this entry was created and there was no makkoncept author file present), it would be great for the corresponding author folder and file (like here) to get created automatically. Only the username field can be automatically created, the rest of the fields should not be present.

@chimenekouomogne
Copy link

code
code2
Hi @kriti ! I have modified the file author.html so that when you want to create a new blog post, you can only enter your username in the file.lr

@chimenekouomogne
Copy link

result
reult2
Here are the results. As you can see, for a new author , only his username and post are display. For an old author, his name and his post are display. Please is that what you wanted me to do ?

@chimenekouomogne
Copy link

Hi @kgodey ! i have face too dificulties while making pull request to this site . but i have done it on my github link :
https://github.com/chimenekouomogne/creativecommons.github.io-source.

@chimenekouomogne
Copy link

Hi @kgodey ! please here is a link for my final application :
https://docs.google.com/document/d/1Gr-xw99jg_wgqOXVNm4hd5lglhRS4trWqDWVFAXgnGA/edit?pli=1#

@kgodey
Copy link
Member Author

kgodey commented Nov 26, 2019

hi @chimenekouomogne, sorry for the delay on getting back to you on this. Your work does not address this issue, but after thinking about it, I don't think this issue makes sense to implement at this time anyway.

We want people to be thoughtful about adding new authors and categories and this issue would automatically generate missing authors/categories, which would make errors harder to catch.

I'm going to close the issue.

@kgodey kgodey closed this as completed Nov 26, 2019
@kgodey kgodey removed in progress good first issue New-contributor friendly help wanted Open to participation from the community labels Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants