not-matthias / apollo

Modern and minimalistic blog theme.
https://not-matthias.github.io/apollo
MIT License
121 stars 70 forks source link

Html truncatre error #40

Closed lmnzx closed 10 months ago

lmnzx commented 10 months ago

I am trying to deploy this site to vercel but I keep getting this error.

Error: Failed to truncate html at character 3986: 
Expected attribute name.
--
1\|<!DOCTYPE html><html class="dark light"><head><meta charset=UTF-8><meta http-equiv=X-UA-Compatible content=IE=edge><meta name=viewport content="width=device-width, initial-scale=1.0"><title> not-matthias </title><meta property=og:title content=not-matthias><link rel=icon type=image/png href=/icon/favicon.png><link href=https://not-matthias.github.io/apollo/fonts.css rel=stylesheet><script>
2\|            MathJax = {
3\|              tex: {
4\|                inlineMath: [[', '], ['\\(', '\\)']]
5\|              }
6\|            };
7\|            </script><script id=MathJax-script async src=https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js>
8\|        </script><link rel=alternate type=application/atom+xml title=not-matthias href=https://not-matthias.github.io/apollo/atom.xml><link rel=stylesheet href=https://not-matthias.github.io/apollo/theme/light.css><link id=darkModeStyle rel=stylesheet href=https://not-matthias.github.io/apollo/theme/dark.css><link rel=stylesheet media=screen href=https://not-matthias.github.io/apollo/main.css><body><div class=content><header><div class=main><a href=https://not-matthias.github.io/apollo/>not-matthias</a><div class=socials><a rel=me href=https://twitter.com/not_matthias class=social> <img alt=twitter src=/social_icons/twitter.svg> </a><a rel=me href=https://github.com/not-matthias/ class=social> <img alt=github src=/social_icons/github.svg> </a></div></div><nav><a href=/posts style="margin-left: 0.7em">/posts</a><a href=/projects style="margin-left: 0.7em">/projects</a><a href=/about style="margin-left: 0.7em">/about</a> \| <a id=dark-mode-toggle onclick=toggleTheme() href=javascript:void(0)> <img src=/feather/sun.svg id=sun-icon style="filter: invert(1);"> <img src=/feather/moon.svg id=moon-icon> </a><script src=https://not-matthias.github.io/apollo/js/themetoggle.js></script></nav></header><div class=page-header>Projects<span class=primary-color style="font-size: 1.6em">.</span></div><main><div class=cards><div class=card><img class=card-image alt=/projects/project-1.jpg src=https://not-matthias.github.io/apollo/projects/project-1.jpg><div class=card-info><h1 class=card-title><a href=https://github.com/not-matthias/apollo>Apollo</a></h1><div class=meta></div><div class=card-description>Modern and minimalistic blog theme.</div></div></div><div class=card><img class=card-image alt=https://images.unsplash.com/photo-1523821741446-edb2b68bb7a0?ixlib </a>
9\|
10\|        <a href=/#x2F/about style="margin-left: 0.7em">/#x2F/about</a>
11\|
not-matthias commented 10 months ago

Hey, I'm not really sure what the issue is. Have you fixed it?

lmnzx commented 10 months ago

the error occurs due to the remote_image in the project_2.md. The truncate error happens because this html template was generated

<img class=card-image alt=https://images.unsplash.com/photo-1523821741446-edb2b68bb7a0?ixlib </a>
not-matthias commented 10 months ago

Good catch! I fixed it.