1
Fork 0
mirror of https://github.com/RGBCube/GCCPreprocessHTML synced 2025-05-31 04:18:12 +00:00

Make it work

This commit is contained in:
RGBCube 2023-05-07 00:50:31 +03:00
parent e48a14f103
commit b07ef3c39c
7 changed files with 33 additions and 5 deletions

2
.gitignore vendored
View file

@ -1,5 +1,7 @@
*
!src/
!.gitignore
!*.html

View file

@ -8,5 +8,7 @@ rm -rf ./build
mkdir ./build
for html_file in $(find -name "*.html"); do
sed "/^#/d" <(process $html_file) > ./build/${html_file#./}
path=./build/${html_file#./}
mkdir $(dirname $path) 2> /dev/null
sed "/^#/d" <(process $html_file) > $path
done

View file

@ -0,0 +1,5 @@
<meta content="Embed Title" property="og:title"/>
<meta content="Site Description" property="og:description"/>
<meta content="https://embed.com/this-is-the-site-url" property="og:url"/>
<meta content="https://embed.com/embedimage.png" property="og:image"/>
<meta content="#43B581" data-react-helmet="true" name="theme-color"/>

11
build/src/index.html Normal file
View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Site</title>
<meta content="Embed Title" property="og:title"/>
<meta content="Site Description" property="og:description"/>
<meta content="https://embed.com/this-is-the-site-url" property="og:url"/>
<meta content="https://embed.com/embedimage.png" property="og:image"/>
<meta content="#43B581" data-react-helmet="true" name="theme-color"/>
</head>
</html>

View file

@ -1,4 +0,0 @@
<!DOCTYPE html>
<html lang="en">
</html>

View file

@ -0,0 +1,5 @@
<meta content="Embed Title" property="og:title"/>
<meta content="Site Description" property="og:description"/>
<meta content="https://embed.com/this-is-the-site-url" property="og:url"/>
<meta content="https://embed.com/embedimage.png" property="og:image"/>
<meta content="#43B581" data-react-helmet="true" name="theme-color"/>

7
src/index.html Normal file
View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Site</title>
#include "src/discord-embed-metadata.html"
</head>
</html>