PageCreate can create .txt file but treats it like a .md file
See original GitHub issueDescribe in one or two sentences why you’re opening this issue:
I’m new to JekyllAdmin and had no idea that Create New Page should be used to create only markdown documents. Moreover the plugin did not stop me from creating a .txt file.
Tell us a bit about yourself
- Version of JekyllAdmin I’m using <hint: use
bundle show
to check>: 0.1.0 - Version of Jekyll I’m using <hint: use
bundle show
to check>: 3.2.1 - Operating System <e.g. OS X, Windows>: Windows 7
- Browser <e.g, Safari, Chrome>: Chrome
Steps to reproduce
Navigate to http://localhost:3000/admin/page/new
create demo.txt by entering that in the breadcrumb
Navigate up one level to http://localhost:3000/admin/page
Expected
Expected demo.txt to not be listed there. Expected demo.txt to be listed at /staticfiles.
Actual
demo.txt is listed at /pages
Other details
- There is no clear indication that tells a user, that this interface is to be used only for creating markdown pages nor any validation if he tries to create a .txt file or .html file.
- demo.txt created above has the frontmatter dashes inserted.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
How to create a Readme.md file? - Medium
Before creating a Readme.md file you need a text editor. There are plugins for many editors (e.g. Atom, Emacs, Sublime Text, Notepad++, Vim,...
Read more >What's the point of .MD files if there are already .txt files? - Quora
MD files are just text files. The .md extension just tells the program to treat any special markup (called MarkDown, to differentiate from...
Read more >Hosting an R Markdown HTML file on a GitHub page
Open a browser and go to your GitHub page. Create a new repository. For this tutorial, I'll create the “R Markdown GitHub Page”...
Read more >Introduction to R markdown - GitHub Pages
R markdown documents consist of a header, code chunks and text. R markdown files (.Rmd) can be rendered to other document formats (e.g....
Read more >How to get a document to display its contents in quick look
I've associated the extension (*.md) with TextMate, but this doesn't have the desired effect. Other text files (e.g. *.rb) work with quick look ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closed via #307
@ashmaroli Just tested this and I think this is half-way fixed in v0.2.0. Creating a file with .txt extension does not result in pages view. The files are created but listed in nowhere. The reason is a wild txt file with front matter :trollface: