question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PageCreate can create .txt file but treats it like a .md file

See original GitHub issue

Describe 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:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mertkahyaoglucommented, Feb 22, 2017

Closed via #307

0reactions
mertkahyaoglucommented, Jan 5, 2017

@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:

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found