mirror of
https://github.com/RGBCube/GCCPreprocessHTML
synced 2025-06-02 13:28:14 +00:00
Make it work
This commit is contained in:
parent
e48a14f103
commit
b07ef3c39c
7 changed files with 33 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,7 @@
|
||||||
*
|
*
|
||||||
|
|
||||||
|
!src/
|
||||||
|
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
|
||||||
!*.html
|
!*.html
|
||||||
|
|
4
build.sh
4
build.sh
|
@ -8,5 +8,7 @@ rm -rf ./build
|
||||||
mkdir ./build
|
mkdir ./build
|
||||||
|
|
||||||
for html_file in $(find -name "*.html"); do
|
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
|
done
|
||||||
|
|
5
build/src/discord-embed-metadata.html
Normal file
5
build/src/discord-embed-metadata.html
Normal 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
11
build/src/index.html
Normal 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>
|
|
@ -1,4 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
</html>
|
|
5
src/discord-embed-metadata.html
Normal file
5
src/discord-embed-metadata.html
Normal 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
7
src/index.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>My Site</title>
|
||||||
|
#include "src/discord-embed-metadata.html"
|
||||||
|
</head>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue