I am using Academic theme. I wish to put some raw html page as post. but sounds like it doesn’t show correctly on my post pages. my html page has title there!
<html>
<head>
<meta charset="utf-8">
<title>Example html post</title>
</head>
....
How show I change my theme to show my raw html posts?
another option is to create a _default/ layout file called blank.html that only shows {{ .Content | safeHTML }} then set the frontmatter layout to this:
We can assist, but we need to see your project to understand why that is happening. For instance, that could be caused by your config, the theme template, or the front matter in the content. Check out Requesting Help and share a repo and I’m sure someone will figure it out.
Great, I can fix it by add below lines at the beginning of html file:
—
title: hello html
date: ‘2018-11-22’
categories:
- Example
tags:
- Markdown
—
But as a user, I wish only copy a html page to folder then everything is done! if no such header there, then use file creation date as date! how can we add code to implement it in theme?