Insert existing html as a page

Hi I am trying to build a static site that is hosting both jekyll rendered markdowns and a pre-generated html file with some assets. the pre-generated file gets built by another commandline tool and returns a complete html. On its own when I put it at the root of the directory it’s able to show the content. However I also have markdown content that is outside of the rendered html and I just can’t seem to be able to combine the two or figure out a way to render/link both the markdowns and html file together.

here is my folder structure:

docs
|
|___  _includes
|     |___  some_reusable_markdown.md
|     |___  ...
|
|___  pages
|   |___  page_one.md
|   |___  page_two.md
|   |___  pre-rendered.html
|   |___  pre-rendered_asset_one.json
|   |___  pre-rendered_asset_two.json
|___  index.md

my _config.yml looks like this, just using the default theme when jekyll creates a site by running jekyll new docs --skip-bundle :

...
# Build settings
theme: minima
markdown: GFM
plugins:
  - jekyll-feed

header_pages:
  - pages/page_one.md
  - pages/page_two.md
  - pages/pre-rendered.html (I tried naively doing this but it didn't work)
...

I want to be able to add the pre-rendered.html as another page to the header, it is not a layout unfortunately. I’ve tried embedding it into a markdown and bringing it in as a includes file but because there are functions jekyll complains when trying to render the “liquid syntax”

Is there any way to combine the two? I am an absolute beginner :frowning: and if this is a bad question to ask, I apologize in advance. Unfortunately it needs to be in the same repo as I am unable to break out the two. Right now I am able to have the markdown and the already rendered html working separately of each other…

I found a temporary solution by moving the pre-rendered html and assets to its own folder under pages (for organization & to make the url a little nicer) and then hyperlinking in one of the markdown pages. Not ideal since I would like to be able to have a dedicated header page automatically go to the rendered page but for now it works. If there is a better way please let me know.

jekyll will move any item that doesn’t have front matter to the same place within the _site folder.

So if that ends up being pages/pre-rendered.html I would think you could build a link to that directly and it should work.

Is your problem how to make a link to the page within the minima theme? it would need to be hardcoded if I remember correctly - I think the minima theme loops thru pages and adds them automatically but that won’t work if the page doesn’t have front matter.

can you show code for that? hard to understand what you mean.

I think you are saying that you want to include the static file’s content in your markdown. Is that correct?

You will want to move your static content to the _includes folder. For example, you can move pre-rendered.html to the _includes folder like below:

docs
|
|___  _includes
|     |___  some_reusable_markdown.md
|     |___ pre-rendered.html
|     |___  ...
|
|___  pages
|   |___  page_one.md
|   |___  page_two.md
|   |___  pre-rendered_asset_one.json
|   |___  pre-rendered_asset_two.json
|___  index.md

And then in the file page_one.md, you can add the following line:

{% include pre-rendered.html %}

I have not tried including a JSON file, but I suppose it would work, assuming you want to include the contents and not read the data.

Below is more detail about including content, which provides more detail on include_relative, which I think you will find helpful.

Hi @rdyar essentially what I ended up doing:

The format of my folders look like this now:

docs
|
|___  _includes
|     |___  some_reusable_markdown.md
|     |___  ...
|
|___  pages
|   |___  pre-rendered
|   |       |___  pre-rendered.html
|   |       |___  pre-rendered_asset_one.json
|   |       |___  pre-rendered_asset_two.json
|   |___  page_one.md
|   |___  page_two.md
|___  index.md

and then within one of the markdown pages I link to the pre-rendered

---
layout: page
title: page_one
description: some description
permalink: /page_one/
---
[link]({% link /pages/pre-rendered/pre-rendered.html %}) to the pre-rendered.

I was hoping to directly link it as a header page using the jekyll theme, but I couldn’t find a way to insert frontmatter. I tried previous basically what @BillRaymond suggested however I got some liquid syntax errors.

liquid syntax error (/github/workspace/docs/_includes/pre-rendered.html line 93): variable '{{ ${e.model}' was not properly terminated with regexp: /\}\}/ included

I want to display the pre-rendered html as is without modifying the file so not sure how to fix that error. Plus there’s a bunch of {{ brackets in a 100 line html so not sure if that would be the approach.

Yes that is basically want I want to achieve. However testing with bringing the static file as _includes content throws

liquid syntax error (/github/workspace/docs/_includes/pre-rendered.html line 93): variable '{{ ${e.model}' was not properly terminated with regexp: /\}\}/ included

I want to display the pre-rendered html as is without modifying the file so not sure how to fix that error. Plus there’s a bunch of {{ brackets in a 100 line html so not sure if that would be the approach.

Can you show us an example of what the pre-rendered file looks like and or share your repo if it is public?

Unfortunately it’s private for internal use so I cannot share the repo but here is the file and what it looks like on the static site

The html is too large to be shared in its entirety unless there’s a way to attach?
here is a snippet:

<!DOCTYPE html>
<html dir="ltr" lang="en-US" ng-app='dbt' class='no-flash video supports no-touchevents formvalidation webgl no-cssgridlegacy cssgrid cssfilters objectfit object-fit click landscape videoautoplay loaded'>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, initial-scale=1" />

        <title>dbt Docs</title>
        <meta name="description" content="dbt Docs" />
        <link rel="canonical" href="/overview/" />

        <link rel="shortcut icon" href="data:image/vnd.microsoft.icon;charset=utf-8;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAACUWAAAlFgAAAAAAAAAAAABFZP8ASmn/H0pp/49Kaf/mSmn/7Epp/5ZJaf8pRmL/AUhn/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAExs/wBHYf8AS2n/G0tp/39Kaf/bSmn/1Upp/35KaP8VSmj/AEtp/x1Kaf+tSmn/+0pp//9Kaf//Smn//Upp/9JKaf9rSWn/F0lq/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABJaf8ASGj/E0lp/1pKaf+/Smn/+Epp//9Kaf//Smn/+Ulo/51JaP8YSmn/jEpp//pKaf//Smn//0pp//9Kaf//Smn//0pp//lKaf/ASWn/Ukhp/wtKav8ARWf/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAERn/wBLaP8ASGj/CUlp/0VKaf+2Smn/90pp//9Kaf//Smn//0pp//9Kaf//Smn/+kpp/4RKaf/lSmn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf/ySmn/oElp/zVGa/8ER2v/AAAAAAAAAAAAAAAAAAAAAABIaP8ARmj/BEpo/zJKaf+cSmn/7kpp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn/4Epp/+dKaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf/+Smn/3kpp/35JZ/8aSWr/AAAAAABIZ/8AQ2L/AEpo/xpJaf99Smn/3kpp//5Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf/uSmn/jEpp//tKaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn/0Epo/ytKaf8ASGj/AEho/w1JaP9gSmn/ykpp//lKaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//Upp/5dKaP8lSmn/z0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp/+lJaf9LTmv/AEhn/wZJaf87Smn/rUpp//JKaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf/VSWn/MUpp/wBKaf9sSmn/90pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn/lkhp/whJaf8jSWn/iEpp/+ZKaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn/+klp/2xYYv8ASmj/AEpo/xRKaf+9Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//JJaf9hSmn/Ykpp/9JKaf/8Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf/ESWn/G0lp/wAAAAAASmn/AEpp/1FKaf/uSmn//0pp//9Kaf//Smn//0pp//9Kaf//Smn/9kpp/9dKaf/zSmn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn/8klp/1RTYv8AEJT/AAAAAABKaP8ASmj/Ckpp/6BKaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf+lSWn/DElp/wAAAAAAAAAAAAAAAABKaf8ASmr/M0pp/95Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//Smn//0pp//9Kaf//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Jav8hSmn/kEtp/+VLaf/sSmn/kkpp/yVJaf8BSmr/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATGj/AE9k/wFJaP8tSmn/lkpp/+tKaf/hSmn/jEhq/xxOZP8AgP//gQB//gAAH/gAAAfgAAADwAAAAwAAAAQAAIAAAAGAAAABwAAAA8AAAAPgAAAH4AAAB/AAAA/wAAAP+AGAH/gBgB/wAAAP8AAAD+AAAAfgAAAHwAAAA8AAAAOAAAABgAAAAQAAIAAAAMAAAAPAAAAH4AAAH/gAAH/+AID//wE=" />
        <meta name="msapplication-TileColor" content="#2b5797">
        <meta name="theme-color" content="#ffffff">

        <meta property="og:locale" content="en_US" />
        <meta property="og:type" content="website" />
        <meta property="og:site_name" content="dbt Docs" />
        <meta property="og:title" content="dbt Docs" />
        <meta property="og:description" content="documentation for dbt" />
        <meta name="twitter:title" content="dbt Docs"/>
        <meta name="twitter:description" content="documentation for dbt"/>

    </head>

The body:

<body>
        <div style="display:none"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><title>icons</title><g id="icn"><rect width="16" height="16" fill="none"/></g><g id="icn-menu"><path d="M14.5,8a.5.5,0,0,1-.5.5H2a.5.5,0,0,1,0-1H14A.5.5,0,0,1,14.5,8ZM2,3H14a.5.5,0,0,0,0-1H2A.5.5,0,0,0,2,3ZM14,13H2a.5.5,0,0,0,0,1H14a.5.5,0,0,0,0-1Z" transform="translate(0 0)"/></g><g id="icn-dbt"><path d="M12.6,9.265l0,0L10.9,6.325a3.31,3.31,0,0,0-.529-.7h0a3.264,3.264,0,0,0-3.184-.867,4.022,4.022,0,0,1,4.194.938,3.977,3.977,0,0,1,.635.833l.38.657a2.488,2.488,0,0,1,.2-.465l2.226-3.851a1.2,1.2,0,0,0-.2-1.5,1.2,1.2,0,0,0-1.5-.2h0L9.27,3.4a2.539,2.539,0,0,1-2.54,0L2.877,1.178A1.253,1.253,0,0,0,2.247,1a1.247,1.247,0,0,0-.871.375,1.2,1.2,0,0,0-.2,1.5L3.4,6.726a2.542,2.542,0,0,1,0,2.539l-2.226,3.85a1.2,1.2,0,0,0,.2,1.5,1.2,1.2,0,0,0,1.5.2L6.73,12.588a2.455,2.455,0,0,1,.465-.2l-.657-.379a3.857,3.857,0,0,1-1.462-1.467,4.118,4.118,0,0,1-.288-3.368,3.453,3.453,0,0,0,.33,2.507A3.141,3.141,0,0,0,6.329,10.89l2.94,1.7h0l3.853,2.224a1.243,1.243,0,0,0,1.7-1.7Zm.814-7.353a.478.478,0,1,1,0,.676A.48.48,0,0,1,13.41,1.912ZM2.59,2.588a.478.478,0,1,1,0-.676A.479.479,0,0,1,2.59,2.588Zm0,11.49a.478.478,0,1,1,0-.676A.479.479,0,0,1,2.59,14.078Zm6.827-5.9a1.022,1.022,0,1,0-1.231,1.23,1.433,1.433,0,1,1,1.231-1.23Zm4.67,5.9a.478.478,0,1,1,0-.676A.479.479,0,0,1,14.087,14.078Z" transform="translate(0 0)"/></g><g id="icn-doc-on"><path d="M13.707,4.707,10.293,1.293A1,1,0,0,0,9.586,1H3A1,1,0,0,0,2,2V14a1,1,0,0,0,1,1H13a1,1,0,0,0,1-1V5.414A1,1,0,0,0,13.707,4.707ZM5,4H9V5H5Zm6,8H5V11h6Zm0-2H5V9h6Zm0-2H5V7h6Z" transform="translate(0 0)"/></g><g id="icn-doc"><path d="M9.586,2h0L13,5.414V14H3V2H9.586m0-1H3A1,1,0,0,0,2,2V14a1,1,0,0,0,1,1H13a1,1,0,0,0,1-1V5.414a1,1,0,0,0-.293-.707L10.293,1.293A1,1,0,0,0,9.586,1Z" transform="translate(0 0)"/><rect x="5" y="11" width="6" height="1" fill="#fff"/><polygon points="11 11 5 11 5 12 11 12 11 11 11 11"/><rect x="5" y="9" width="6" height="1" fill="#fff"/><polygon points="11 9 5 9 5 10 11 10 11 9 11 9"/><rect x="5" y="7" width="6" height="1" fill="#fff"/><polygon points="11 7 5 7 5 8 11 8 11 7 11 7"/><rect x="5" y="4" width="4" height="1" fill="#fff"/><polygon points="9 4 5 4 5 5 9 5 9 4 9 4"/></g><g id="icn-down"><path d="M8,10.5a.5.5,0,0,1-.354-.146l-3-3a.5.5,0,0,1,.708-.708L8,9.293l2.646-2.647a.5.5,0,0,1,.708.708l-3,3A.5.5,0,0,1,8,10.5Z" transform="translate(0 0)"/></g><g id="icn-up"><path d="M11,9.5a.5.5,0,0,1-.354-.146L8,6.707,5.354,9.354a.5.5,0,0,1-.708-.708l3-3a.5.5,0,0,1,.708,0l3,3A.5.5,0,0,1,11,9.5Z" transform="translate(0 0)"/></g><g id="icn-left"><path d="M9.5,5a.5.5,0,0,1-.146.354L6.707,8l2.647,2.646a.5.5,0,0,1-.708.708l-3-3a.5.5,0,0,1,0-.708l3-3A.5.5,0,0,1,9.5,5Z" transform="translate(0 0)"/></g><g id="icn-right"><path d="M10.5,8a.5.5,0,0,1-.146.354l-3,3a.5.5,0,0,1-.708-.708L9.293,8,6.646,5.354a.5.5,0,0,1,.708-.708l3,3A.5.5,0,0,1,10.5,8Z" transform="translate(0 0)"/></g><g id="icn-dir"><path d="M14,4H8.414a1,1,0,0,1-.707-.293L6.293,2.293A1,1,0,0,0,5.586,2H2A1,1,0,0,0,1,3V13a1,1,0,0,0,1,1H14a1,1,0,0,0,1-1V5A1,1,0,0,0,14,4ZM2,3H5.586l1,1H2ZM14,13H2V5H14Z" transform="translate(0 0)"/></g><g id="icn-tree"><path d="M14,5V2H11V3H4V2H1V5H4V4H7V14h4v1h3V12H11v1H8V9h3v1h3V7H11V8H8V4h3V5ZM3,4H2V3H3Zm9,9h1v1H12Zm0-5h1V9H12Zm0-5h1V4H12Z" transform="translate(0 0)"/></g><g id="icn-tree-on"><path d="M14,5V2H11V3H4V2H1V5H4V4H7V14h4v1h3V12H11v1H8V9h3v1h3V7H11V8H8V4h3V5Z" transform="translate(0 0)"/></g><g id="icn-dir-on"><path d="M14.878,7H14V5a1,1,0,0,0-1-1H7.414a1,1,0,0,1-.707-.293L5.293,2.293A1,1,0,0,0,4.586,2H1A1,1,0,0,0,0,3V13a1,1,0,0,0,1,1H13.271a1,1,0,0,0,.952-.694l1.607-5A1,1,0,0,0,14.878,7ZM4.586,3,6,4.414A1.986,1.986,0,0,0,7.414,5H13V7H2.979a1,1,0,0,0-.952.694L1,10.889V3Z" transform="translate(0 0)"/></g><g id="icn-db-on"><path d="M8,1C7,1,2,1.121,2,3.5v9C2,14.879,7,15,8,15s6-.121,6-2.5v-9C14,1.121,9,1,8,1Zm5,10.482c0,.828-2.239,1.5-5,1.5s-5-.672-5-1.5V11c1.511.915,4.281.982,5,.982s3.489-.067,5-.982ZM13,8.5c0,.828-2.239,1.5-5,1.5S3,9.328,3,8.5V8.018C4.511,8.933,7.281,9,8,9s3.489-.067,5-.982Zm0-3C13,6.328,10.761,7,8,7S3,6.328,3,5.5V5.018C4.511,5.933,7.281,6,8,6s3.489-.067,5-.982Z" transform="translate(0 0)"/></g><g id="icn-db"><path d="M8,1C7,1,2,1.121,2,3.5v9C2,14.879,7,15,8,15s6-.121,6-2.5v-9C14,1.121,9,1,8,1ZM3,8.018C4.511,8.933,7.281,9,8,9s3.489-.067,5-.982V9.5c0,.828-2.239,1.5-5,1.5s-5-.672-5-1.5ZM8,8C5.239,8,3,7.328,3,6.5V5.018C4.511,5.933,7.281,6,8,6s3.489-.067,5-.982V6.5C13,7.328,10.761,8,8,8ZM8,2c2.761,0,5,.672,5,1.5S10.761,5,8,5,3,4.328,3,3.5,5.239,2,8,2ZM8,14c-2.761,0-5-.672-5-1.5V11.018C4.511,11.933,7.281,12,8,12s3.489-.067,5-.982V12.5C13,13.328,10.761,14,8,14Z" transform="translate(0 0)"/></g><g id="icn-close"><path d="M12.354,11.646a.5.5,0,0,1-.708.708L8,8.707,4.354,12.354a.5.5,0,0,1-.708-.708L7.293,8,3.646,4.354a.5.5,0,0,1,.708-.708L8,7.293l3.646-3.647a.5.5,0,0,1,.708.708L8.707,8Z" transform="translate(0 0)"/></g><g id="icn-search"><path d="M6.5,1A5.5,5.5,0,1,0,12,6.5,5.5,5.5,0,0,0,6.5,1Zm0,10A4.5,4.5,0,1,1,11,6.5,4.505,4.505,0,0,1,6.5,11Zm8.854,4.354a.5.5,0,0,1-.708,0l-3-3a.5.5,0,0,1,.708-.708l3,3A.5.5,0,0,1,15.354,15.354Z" transform="translate(0 0)"/></g><g id="icn-more"><path d="M8,6a2,2,0,1,0,2,2A2,2,0,0,0,8,6ZM8,9A1,1,0,1,1,9,8,1,1,0,0,1,8,9ZM2,6A2,2,0,1,0,4,8,2,2,0,0,0,2,6ZM2,9A1,1,0,1,1,3,8,1,1,0,0,1,2,9ZM14,6a2,2,0,1,0,2,2A2,2,0,0,0,14,6Zm0,3a1,1,0,1,1,1-1A1,1,0,0,1,14,9Z" transform="translate(0 0)"/></g><g id="icn-flow"><path d="M4,3V2H1V5H4V4H7v9a1,1,0,0,0,1,1h5V13H8V9h5V8H8V4h5V3H4ZM3,4H2V3H3Z" transform="translate(0 0)"/><polygon points="13 1.5 13 5.5 15 3.5 13 1.5"/><polygon points="13 6.5 13 10.5 15 8.5 13 6.5"/><polygon points="13 11.5 13 15.5 15 13.5 13 11.5"/></g><g id="icn-expand"><path d="M6,2.5a.5.5,0,0,1-.5.5H3V5.5a.5.5,0,0,1-1,0v-3A.5.5,0,0,1,2.5,2h3A.5.5,0,0,1,6,2.5ZM13.5,2h-3a.5.5,0,0,0,0,1H13V5.5a.5.5,0,0,0,1,0v-3A.5.5,0,0,0,13.5,2Zm0,8a.5.5,0,0,0-.5.5V13H10.5a.5.5,0,0,0,0,1h3a.5.5,0,0,0,.5-.5v-3A.5.5,0,0,0,13.5,10Zm-8,3H3V10.5a.5.5,0,0,0-1,0v3a.5.5,0,0,0,.5.5h3a.5.5,0,0,0,0-1Z" transform="translate(0 0)"/></g><g id="icn-contract"><path d="M6,2.5v3a.5.5,0,0,1-.5.5h-3a.5.5,0,0,1,0-1H5V2.5a.5.5,0,0,1,1,0ZM10.5,6h3a.5.5,0,0,0,0-1H11V2.5a.5.5,0,0,0-1,0v3A.5.5,0,0,0,10.5,6Zm3,4h-3a.5.5,0,0,0-.5.5v3a.5.5,0,0,0,1,0V11h2.5a.5.5,0,0,0,0-1Zm-8,0h-3a.5.5,0,0,0,0,1H5v2.5a.5.5,0,0,0,1,0v-3A.5.5,0,0,0,5.5,10Z" transform="translate(0 0)"/></g><g id="icn-filter"><path d="M14.5,4.5A.5.5,0,0,1,14,5H2A.5.5,0,0,1,2,4H14A.5.5,0,0,1,14.5,4.5ZM12,8H4A.5.5,0,0,0,4,9h8a.5.5,0,0,0,0-1Zm-2,4H6a.5.5,0,0,0,0,1h4a.5.5,0,0,0,0-1Z" transform="translate(0 0)"/></g></svg></div>
        <div ui-view></div>

The body contains some javascript, a snippet

<script type="text/javascript">!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=207)}([function(e,t,n){"use strict";(function(e){n.d(t,"M",(function(){return s})),n.d(t,"x",(function(){return c})),n.d(t,"Q",(function(){return u})),n.d(t,"w",(function(){return d})),n.d(t,"r",(function(){return f})),n.d(t,"q",(function(){return p})),n.d(t,"y",(function(){return h})),n.d(t,"E",(function(){return g})),n.d(t,"n",(function(){return m})),n.d(t,"A",(function(){return v})),n.d(t,"z",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"L",(function(){return x})),n.d(t,"d",(function(){return w})),n.d(t,"K",(function(){return k})),n.d(t,"c",(function(){return A})),n.d(t,"p",(function(){return E})),n.d(t,"o",(function(){return S})),n.d(t,"D",(function(){return $})),n.d(t,"f",(function(){return C})),n.d(t,"H",(function(){return _})),n.d(t,"F",(function(){return O})),n.d(t,"I",(function(){return j})),n.d(t,"s",(function(){return T})),n.d(t,"t",(function(){return P})),n.d(t,"C",(function(){return D})),n.d(t,"B",(function(){return R})),n.d(t,"U",(function(){return I})),n.d(t,"e",(function(){return N})),n.d(t,"g",(function(){return M})),n.d(t,"T",(function(){return z})),n.d(t,"v",(function(){return L})),n.d(t,"J",(function(){return B})),n.d(t,"R",(function(){return F})),n.d(t,"S",(function(){return q})),n.d(t,"u",(function(){return V})),n.d(t,"l",(function(){return U})),n.d(t,"k",(function(){return H})),n.d(t,"j",(function(){return G})),n.d(t,"G",(function(){return W})),n.d(t,"i",(function(){return Y})),n.d(t,"h",(function(){return X})),n.d(t,"P",(function(){return Z})),n.d(t,"m",(function(){return Q})),n.d(t,"a",(function(){return J})),n.d(t,"N",(function(){return ee})),n.d(t,"O",(function(){return te}));var r=n(1),i=n(3),o=n(6),a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},s="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||void 0,l=s.angular||{},c=l.fromJson||JSON.parse.bind(JSON),u=l.toJson||JSON.stringify.bind(JSON),d=l.forEach||function(e,t,n){if(Object(r.a)(e))return e.forEach(t,n);Object.keys(e).forEach((function(n){return t(e[n],n)}))},f=Object.assign||J,p=l.equals||K;function h(e){return e}function g(){}function m(e,t,n,r,i){void 0===i&&(i=!1);var o=function(t){return e()[t].bind(n())};return(r=r||Object.keys(e())).reduce((function(e,n){var r;return e[n]=i?(r=n,function(){return t[r]=o(r),t[r].apply(null,arguments)}):o(n),e}),t)}var v=function(e,t){return f(Object.create(e),t)},b=Object(i.e)(y);function y(e,t){return-1!==e.indexOf(t)}var x=Object(i.e)(w);function w(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),e}var k=Object(i.e)(A);function A(e,t){return e.push(t),t}var E=function(e){return e.slice().forEach((function(t){"function"==typeof t&&t(),x(e,t)}))};function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=f.apply(void 0,a([{}],t.reverse()));return f(r,_(e||{},Object.keys(r)))}var $=function(e,t){return f(e,t)};function C(e,t){var n=[];for(var r in e.path)

just making a link to that doesn’t work? not sure why it wouldn’t. When you build the site is that file at that location in the _site folder? it should be.

What is the link you are using?

You shouldn’t need front matter in the pre rendered file. it will be copied to the _site folder as is which should work.

Maybe your issue is you are using link inside something? not sure that would work on a static file. Just build a normal <a href="/pages/pre-rendered/pre-rendered.html">Cool link</a> and see if it works.

Are you trying to insert that code as a header for your HTML or are you trying to display it like a code block?

sorry i was unable to post the whole code it is just a portion of javascript that exists on the page, but I want the entirety displayed as an html page without any modifications, not a code block.

Add a code block like this?

Here’s some HTML code:

<html/> 
…

Or do you want that header to drive how the page displays?

Please explain the purpose of it html file and your expectations