LogSource/lib/functions/inline/clear_metadata.sh

23 lines
593 B
Bash
Raw Normal View History

2025-09-01 18:57:24 -03:00
#!/bin/bash
#############
# DESCRIPTION
#############
# Clears the metadata variables to prevent metadata from carrying over to the wrong page. This is important because of how promiscuous bash is with its variables.
#
#############
# Usage:
# clear_metadata
clear_metadata() {
metadata=''
title=''
author=''
description=''
language=''
thumbnail=''
published_date=''
modified_date=''
relative_url=''
canonical_url=''
}