fix md images

This commit is contained in:
Peter 2023-08-09 20:38:56 +08:00
parent 64dbedb77a
commit b408b9b99a
3 changed files with 8 additions and 4 deletions

View File

@ -12,10 +12,10 @@ I recently purchased [this DC block](https://www.aliexpress.com/item/10050025758
Firstly, I did a continuity check with a multimeter and it does not conduct DC, and it has a capacitance of about 2.2 nF.
![Broadband performance](../assets/img/2023-08-09-Aliexpress-DC-block/IMG20230809200336.jpg)
![Broadband performance](/assets/img/2023-08-09-Aliexpress-DC-block/IMG20230809200336.jpg)
The DC block performs well over the 1 MHz to 2.9 GHz frequency range. At 2.45 GHz and 915 MHz there is an insertion loss of -0.2 dB. The response is "linear enough" for my tests. There is of course some non-linearity but it seems the loss in this frequency range varies, up to a maximum of -0.5 dB. The HP 8560A has a maximum frequency of 2.9 GHz, so I was not able to test it's performance up to the stated 6 GHz maximum frequency, quoted on the DC block's specifications.
![Performance near 0 Hz](../assets/img/2023-08-09-Aliexpress-DC-block/IMG20230809200758.jpg)
![Performance near 0 Hz](/assets/img/2023-08-09-Aliexpress-DC-block/IMG20230809200758.jpg)
The -3 dB cutoff point is at ~850 kHz. The figure shows the performance from 300 kHz to 2 MHz (Note that the minimum frequency of the HP 8560A tracking generator is 300 kHz). So if you are using this block above 1 MHz, you should be fine.

View File

@ -36,6 +36,6 @@ if [ -e "$filepath" ]; then
else
# Create the new file and add the front matter
generate_front_matter "$user_title" > "$filepath"
mkdir -p "assets/img/${filename}"
mkdir -p "assets/img/${filename:0:31}"
echo "File '$filename.md' created successfully in the '_posts' subdirectory."
fi

View File

@ -20,8 +20,12 @@ if [ -n "$new_posts" ]; then
git add $new_posts
for post in $new_posts; do
echo $post
sed 's|](../|](/|' -i "$post" # make markdown images absolute
post="${post#_posts/}"
git add "assets/img/${post%.md}"
post="${post%.md}"
git add "assets/img/${post:0:31}"
done
Commit the changes with the generated message