Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlp4 committed Aug 1, 2024
1 parent 0950a9c commit 3088443
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/scripts/modify_html/add_meta.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/bin/sh

metas=$(cat <<'EOF'
<meta property="og:title" content="cyber docs">
metas=' <meta property="og:title" content="cyber docs">
<meta name="description" content="cyber docs">
<meta property="og:description" content="cyber docs">
<meta property="og:image" content="/static/img/logo.png">'

<meta property="og:image" content="/static/img/logo.png">
EOF
)
file="$GITHUB_WORKSPACE/build/index.html"

sed "/<\/head>/i\\ $metas" "$GITHUB_WORKSPACE/build/index.html"
sed -i "/<\/head>/i\\
$(echo "$metas" | sed 's/$/\\n/' | tr -d '\n')\\
" "$file"

0 comments on commit 3088443

Please sign in to comment.