Submitted by casualwriter-hk t3_ybzatb in coolgithubprojects
ivanmoony t1_itp7sjl wrote
Reply to comment by casualwriter-hk in directly use markdown files as web page or web site by casualwriter-hk
I'm afraid that will not work. The idea is to assume that google would index html before running any scripts while you are populating the noscript
within your jit-compiler script. The thing works only if you have a separate html
per each md
, and you manually put noscript
tag in each of them. Not very elegant solution, that is why I posed the question in the first place.
Maybe if you push your html rendering scripts to some server-side scripting tech? Something like you call a php
script that constructs html
output based on md
file you pass as a parameter. That way search crawlers would seamlessly index the resulting html. No miss. I like this solution better than noscript
one, but it requires rewriting parts of your code. What you'd finally get is files properly structured for search engines indexing.
casualwriter-hk OP t1_itt4y18 wrote
if the <noscript> tag should appear in html file for SEO purpose, I think another approach will be more suitable.
https://github.com/casualwriter/casual-markdown-doc
It is a html file which body content in markdown/html format. html tag can be added directly in body content. Please check if it fit your use case.
ivanmoony t1_ittbo56 wrote
I think it could work. Very clever solution. Thank you for the idea.
Viewing a single comment thread. View all comments