File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments