Is there a way to dynamically generate a list of files under the current page's folder structure in mkdocs? I'm looking for something kind of like the Confluence "children display" macro, so that if my folder structure is
Page1/index.md
Page1/subfolder/sub1.md
Page1/subfolder/sub2.md
Page2/index.md
then I want some way to list subfolder and its contents within the body of Page1/index.md.
Related
Say I have a large number of HTML and CSS files, and I need to re-organize their folder structure. Are there any shortcuts (in VS Code preferably) to changing the links to stylesheets and hypertext links that the HTML files contain?
Or would I have to do it all manually (restructure the folders and then manually copy each individual file path into it's respective point in each HTML file?)
If the links to the files are within HTML or any other file, VS Code offers feature called "find and replace"
First one is what you want to change, second one is to what you want to change it to.
Search menu > Replace. And then you can either select "replace" or "replace all".
https://code.visualstudio.com/docs/editor/codebasics
The image describes the main website folder that contains nested files and folders of website can i place like this ?
Yes, of course, you can even put other folders inside the sub-folder. If you are using this for a navigation bar or whatever, when making links, use:
/subfolder/page12345.html
and not:
https://mysite/subfolder/pag12345.html
you can use both but he first option gives cleaner code.
I'm making a website/blog that catalogs DIY projects, currently I have each project as a post, and recent posts are displayed on the home page.
What Im trying to do is have a separate page with project/post categories (projects.html). This page lists a collection of post categories that manually I've made, and will not show any actual posts.
I would then like these categories/collection items to be generated into a page that links to a layout where I can specify a FOR loop that will display each post specific to that category on the page.
I've tried many ways to generate pages from a collection of .md files as jekyll does for posts but I can't get this working. Is this possible to do? or is there a way to automatically generate an html page for every .md file in a folder?
Here is a link to the page I'm working with. http://happy-swallow.cloudvent.net/
Thanks!
You can use Collections and specify to render each file in the collection folder as a page:
tell Jekyll to render individual collection pages, in _config.yml:
collections:
my_collection:
output: true
Then create a folder named _my_collection (the folder name must start with an underscore) and every markdown file inside it will have a single page.
Ok so I've made an basic upload system with php to upload files from a device to a selected folder.
Trouble is the look of the folder where the files go to is basically the default index look(Basically it looks bland)
I'm wondering what code (html, php etc.) can display the items inside as a more user friendly way.
Get the hierarchy of a directory with PHP
... and style that using css or use a javascript api like Galleria or jsTree
I created a form that would send the data to an email address and I'm trying to figure out on how to separate my back-end from my front-end in Wordpress. They said i should use get_template_part(). Do I code this inside my functions.php or is this a separate file?
This should answer that: http://codex.wordpress.org/Function_Reference/get_template_part
Load a template part into a template (other than header, sidebar,
footer). Makes it easy for a theme to reuse sections of code and an
easy way for child themes to replace sections of their parent theme.
Includes the named template part for a theme or if a name is specified
then a specialized part will be included. If the theme contains no
{slug}.php file then no template will be included.
For the parameter, if the file is called "{slug}-{name}.php".