diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..88eb8a2 --- /dev/null +++ b/build.sh @@ -0,0 +1,50 @@ +if [ -f "build/index.html" ]; then + python3 << 'EOF' +with open('build/index.html', 'r') as f: + content = f.read() + +script = ''' + +''' + +if '' in content: + content = content.replace('', script + '\n') + with open('build/index.html', 'w') as f: + f.write(content) + print("Smooth scroll script injected successfully") +else: + print("Warning: tag not found in index.html") +EOF +fi +