diff --git a/index-generation.sh b/index-generation.sh index 89acc744..38423c20 100755 --- a/index-generation.sh +++ b/index-generation.sh @@ -39,20 +39,20 @@ done DISCOURSE_URL="$source" # Fetch the JSON data -json_data=$(curl -s $DISCOURSE_URL) +json_data="$(curl -s "$DISCOURSE_URL")" # Extract the first 3 topics -topics=$(echo $json_data | jq -r ".topic_list.topics[:$count]") +topics=$(echo "$json_data" | jq -r ".topic_list.topics[:$count]") -users=$(echo $json_data | jq -r ".users") +users=$(echo "$json_data" | jq -r ".users") # Generate HTML for the first 3 posts html_output="" for row in $(echo "${topics}" | jq -r '.[] | @base64'); do _jq() { - echo ${row} | base64 --decode | jq -r ${1} + echo "${row}" | base64 --decode | jq -r "${1}" } - title=$(_jq '.title') + title="$(_jq '.title')" id=$(_jq '.id') like_count=$(_jq '.like_count') reply_count=$(_jq '.posts_count') @@ -83,7 +83,7 @@ for row in $(echo "${topics}" | jq -r '.[] | @base64'); do done tempfile=$(mktemp) -echo "$html_output" > $tempfile +echo "$html_output" > "$tempfile" # Insert the HTML output between the comments in index.html -sed -i'.bak' "//,//{//!d;}; //r $tempfile" $destination +sed -i'.bak' "//,//{//!d;}; //r $tempfile" "$destination" diff --git a/theme/video-post.html b/theme/video-post.html index e74d6b0a..db28fb99 100644 --- a/theme/video-post.html +++ b/theme/video-post.html @@ -174,6 +174,29 @@ + + + {% if page.config.links %} +
+ {% endif %} diff --git a/videos/posts/5-easy-steps-to-protect-yourself-online.md b/videos/posts/5-easy-steps-to-protect-yourself-online.md index 962a1fa4..cfc36ac5 100644 --- a/videos/posts/5-easy-steps-to-protect-yourself-online.md +++ b/videos/posts/5-easy-steps-to-protect-yourself-online.md @@ -10,6 +10,22 @@ thumbnail: https://neat.tube/lazy-static/previews/59e10e27-2bc4-4cd4-8cb7-605b10 embed: https://neat.tube/videos/embed/059b71a5-a1aa-44d5-b410-14a69e3082da peertube: https://neat.tube/w/1GaeNH2GyUark4kNXCcL6Q youtube: https://www.youtube.com/watch?v=x5bKUA2sVFM +links: + - Password Managers: https://www.privacyguides.org/en/passwords/ + - Multifactor Authentication: https://www.privacyguides.org/en/multi-factor-authentication/ + - Desktop Browsers: https://www.privacyguides.org/en/desktop-browsers/ + - Browser Extensions: https://www.privacyguides.org/en/browser-extensions/ + - Recommendation Criteria: https://www.privacyguides.org/en/about/criteria/ --- Worried about hackers and data breaches? You're not alone. In this video we outline 5 simple yet crucial steps you can take today to dramatically improve your online security and protect your personal information. + +## Sources + +- The biggest data breaches in 2024: