1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-12-22 12:23:54 +01:00

add search bar

close #40
This commit is contained in:
q-posev 2021-11-19 12:50:12 +01:00
parent 697ccd5e40
commit d44883f0ea
2 changed files with 11 additions and 1 deletions

View File

@ -2,6 +2,11 @@
#+PROPERTY: comments org
#+SETUPFILE: ../docs/theme.setup
#+BEGIN_EXPORT html
<script async src="https://cse.google.com/cse.js?cx=a67f8ab65a66f97f2"></script>
<div class="gcse-search"></div>
#+END_EXPORT
------------------
- [[./tutorial_benzene.html][Tutorial]]

View File

@ -123,6 +123,11 @@ function main() {
then
cd ${DOCS}
rm -f index.html
# enter Google verificator into the HTML head
local GOOGLE_VERIF="<meta name="google-site-verification" content="jdDnuP2rYGJVy8AHSd-8LkmOmvK_dyz5buZ98wilYII" />"
LINE_NO=$(($(awk '/meta name="viewport"/{print NR}' README.html) + 1))
sed -i "$LINE_NO i ${GOOGLE_VERIF}" README.html
ln README.html index.html
exit 0
else