-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
Blog system is overly complicated #5778
Comments
All valid comments. But, it would only work for a portion of it. There are places where we could improve the experience. We create a separate folder for every blog so that everything is grouped together. If we were to use a
I agree with the polluting the Regarding the media files. They must be placed in the |
Separate folderThe generated files all have unique names, why do we need to keep them in separate folders? For the Index.razor file it's a different, but we can make it Examples and Code folderExcluding them from vcs will not cause building them every time. Only every time someone new clones the repo or when the site is build and deployed. I am not familiar with the deployment system, but I guess it doesn't happen so often. Correct me if I am wrong, but the current build "script" that will generate the Examples and Code is being run before the project is build, so not having Examples and Code before build time isn't really an issue (??) Media filesEasily done by app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "..","Blazorise.Docs", "Pages","Blog", "media")),
RequestPath = "/media"
}); And then this |
I have realized some drawbacks while creating a blog post.
I admit I might be wrong in some assumptions. In that case, correct me accordingly.
Issues
1. When one wants to create a blog post, there are many unnecessary actions to undergo.
.md
file. This makes it harder to work seamlessly because one has to have the links ready, but IDEs don't display the pictures when working with markdown.2. There is a lot of repetitive information across the whole post creation process.
posted-on
(in a different format) and inimage-url
Index.razor
in theBlogEntries
3. Generated code (in
SomeBlogPost/Code
andSomeBlogPost/Examples
) is unnecessary to keep in the repository.Is there a reason not to
.gitignore
them? What I have found so far:git status
and has to be resolved locally.Proposal
Let the generated files be where they should be.
.gitignore
them. The second step is creating a source generator and letting them live only in memory.Simplify the blog post creation process (addresses issues 1 and 2).
Visual explanation:
BlogPosts
YYYY-MM-DD_url-of-the-blog-post.md
. This addresses several issues:BlogPosts
folder will also contain amedia
folder, where every image will be placed in a subfolder namedYYYY-MM-DD_url-of-the-blog-post
. The advantage of this approach is that it aligns with how VSCode (and probably other markdown editors) handle pasted images (they save them inmedia/filename
folder). It's also more straightforward to copy the media folder.Opinions?
The text was updated successfully, but these errors were encountered: