I want to make section with a different name from content directory name.
e.g.
content : /content/post/…
section : /layouts/section/archives.html
If I make an emtpy markdown at /content/archives/ and deal with .Site.Pages not .Data.Pages at archives.html,
It seems work and shows what I wanted.
But I don’t want dummy files. Is there any way to solve this?
             
            
              
              
              
            
            
           
          
            
            
              In posts’ front matter change the type using type: archives. This will override the type based on location in the content directory. Here’s how I made my archive page.
             
            
              
              
              
            
            
           
          
            
            
              I mean, I don’t want to make a “/content/archives/archives.md”.
Changing type doesn’t work if not dummy md file exists.
             
            
              
              
              
            
            
           
          
            
            
              Create a content file /content/post/sample.md with a front-matter field of type = archives.