Skip to content

Commit c6a59be

Browse files
committed
Inject metadata into generated pages
1 parent d1fc76a commit c6a59be

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ExportPluto.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ jobs:
5454
Export_baked_state=false,
5555
# more parameters can go here
5656
)'
57-
- name: Inject top navigation bar
57+
- name: Inject top navigation bar and metadata
5858
run: |
59-
INSERT_CODE='<link href="https://juliaquantumcontrol.github.io/QuantumControl.jl/dev/assets/topbar/topbar.css" rel="stylesheet" type="text/css"/><script src="https://juliaquantumcontrol.github.io/QuantumControl.jl/dev/assets/topbar/topbar.js"></script>'
59+
INSERT_CODE_HEAD='<link href="https://juliaquantumcontrol.github.io/QuantumControl.jl/dev/assets/topbar/topbar.css" rel="stylesheet" type="text/css"/><script src="https://juliaquantumcontrol.github.io/QuantumControl.jl/dev/assets/topbar/topbar.js"></script>'
60+
INSERT_META_DESCRIPTION='<meta name="description" content="Tutorials for the JuliaQuantumControl Organization."/>'
6061
for file in *.html; do
6162
# Use sed to insert the code before </head>
62-
sed -i "/<\/head>/i $INSERT_CODE" "$file"
63+
sed -i "/<\/head>/i $INSERT_CODE_HEAD" "$file"
64+
sed -i "/<meta property='og:type' content='article'>/i $INSERT_META_DESCRIPTION" "$file"
6365
done
6466
- name: Deploy to gh-pages
6567
uses: JamesIves/github-pages-deploy-action@releases/v4

0 commit comments

Comments
 (0)