aboutsummaryrefslogtreecommitdiff
path: root/md
diff options
context:
space:
mode:
authorAlex <alex@scerba.org>2024-03-13 17:09:48 -0400
committerAlex Scerba <alex@scerba.org>2024-10-29 13:20:01 -0400
commitf97d476b495126fd2474b8e3a2968658395d2a0f (patch)
tree866ce2531ea9ada192e01faeecd42fc02bc5b0c1 /md
parent99d92792daedc0501886edc7c4e4a9f3768f9b8a (diff)
Complete restructure
Diffstat (limited to 'md')
-rw-r--r--md/POST_TEMPLATE.tmpl.html15
-rw-r--r--md/deployed/Chevrolet_Vision_SS/Chevrolet_Vision_SS.md20
-rw-r--r--md/deployed/Chevrolet_Vision_SS/images/VisionSS_1.jpgbin146903 -> 0 bytes
-rw-r--r--md/deployed/Chevrolet_Vision_SS/images/VisionSS_2.jpgbin203950 -> 0 bytes
-rw-r--r--md/deployed/Chevrolet_Vision_SS/images/VisionSS_3.jpgbin402057 -> 0 bytes
-rw-r--r--md/deployed/Chevrolet_Vision_SS/images/VisionSS_4.jpgbin357898 -> 0 bytes
-rw-r--r--md/deployed/Chevrolet_Vision_SS/images/VisionSS_5.jpgbin320262 -> 0 bytes
-rw-r--r--md/deployed/Chevrolet_Vision_SS/images/VisionSS_6.jpgbin290014 -> 0 bytes
-rw-r--r--md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_1.jpgbin1429876 -> 0 bytes
-rw-r--r--md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_2.jpgbin747339 -> 0 bytes
-rw-r--r--md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_3.jpgbin866076 -> 0 bytes
-rwxr-xr-xmd/postDeploy.sh74
-rw-r--r--md/postDeployWSL.sh74
-rw-r--r--md/staged/NewPost.md15
-rw-r--r--md/template.md15
15 files changed, 0 insertions, 213 deletions
diff --git a/md/POST_TEMPLATE.tmpl.html b/md/POST_TEMPLATE.tmpl.html
deleted file mode 100644
index cca9a30..0000000
--- a/md/POST_TEMPLATE.tmpl.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{{define "title"}}{{.Post.Title}}{{end}}
-{{define "description"}}$description${{end}}
-{{define "keywords"}}$tags${{end}}
-{{ define "canonical" }}$canonical${{end}}
-
-{{define "main"}}
-<h1>$page$</h1>
-<div class="postBackground">
- <article class="$type$Content">
- <h2>{{.Post.Title}}</h2>
- $body$
- <p>Uploaded: <time datetime="$date$">$date$</time></p>
- </article>
-</div>
-{{end}}
diff --git a/md/deployed/Chevrolet_Vision_SS/Chevrolet_Vision_SS.md b/md/deployed/Chevrolet_Vision_SS/Chevrolet_Vision_SS.md
deleted file mode 100644
index 57921b5..0000000
--- a/md/deployed/Chevrolet_Vision_SS/Chevrolet_Vision_SS.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-page: Project
-title: 2035 Chevrolet Vision SS
-date: 2023-11-02
-description: Chevrolet design project set in 2035. Purpose-built EV sports car.
-tags: project exterior Chevrolet CCS sports-car
-cononical: /projects
-type: post
----
-
-The 2035 Chevrolet Vision SS project is aimed at designing a purpose-built sports car for the EV future.
-
-![](VisionSS_1.jpg)
-![](VisionSS_2.jpg)
-![](VisionSS_3.jpg)
-![](VisionSS_4.jpg)
-![](VisionSS_Render_1.jpg)
-![](VisionSS_Render_2.jpg){class="mainImage"}
-![](VisionSS_Render_3.jpg)
-![](VisionSS_6.jpg) \ No newline at end of file
diff --git a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_1.jpg b/md/deployed/Chevrolet_Vision_SS/images/VisionSS_1.jpg
deleted file mode 100644
index 0846ade..0000000
--- a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_1.jpg
+++ /dev/null
Binary files differ
diff --git a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_2.jpg b/md/deployed/Chevrolet_Vision_SS/images/VisionSS_2.jpg
deleted file mode 100644
index 48a3aa8..0000000
--- a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_2.jpg
+++ /dev/null
Binary files differ
diff --git a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_3.jpg b/md/deployed/Chevrolet_Vision_SS/images/VisionSS_3.jpg
deleted file mode 100644
index a6d7c1b..0000000
--- a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_3.jpg
+++ /dev/null
Binary files differ
diff --git a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_4.jpg b/md/deployed/Chevrolet_Vision_SS/images/VisionSS_4.jpg
deleted file mode 100644
index ea1afd3..0000000
--- a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_4.jpg
+++ /dev/null
Binary files differ
diff --git a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_5.jpg b/md/deployed/Chevrolet_Vision_SS/images/VisionSS_5.jpg
deleted file mode 100644
index 8ae501e..0000000
--- a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_5.jpg
+++ /dev/null
Binary files differ
diff --git a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_6.jpg b/md/deployed/Chevrolet_Vision_SS/images/VisionSS_6.jpg
deleted file mode 100644
index ce570b2..0000000
--- a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_6.jpg
+++ /dev/null
Binary files differ
diff --git a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_1.jpg b/md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_1.jpg
deleted file mode 100644
index 0b41954..0000000
--- a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_1.jpg
+++ /dev/null
Binary files differ
diff --git a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_2.jpg b/md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_2.jpg
deleted file mode 100644
index a7f1cda..0000000
--- a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_2.jpg
+++ /dev/null
Binary files differ
diff --git a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_3.jpg b/md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_3.jpg
deleted file mode 100644
index 02e64b3..0000000
--- a/md/deployed/Chevrolet_Vision_SS/images/VisionSS_Render_3.jpg
+++ /dev/null
Binary files differ
diff --git a/md/postDeploy.sh b/md/postDeploy.sh
deleted file mode 100755
index b8a8570..0000000
--- a/md/postDeploy.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh
-# converts md to .tmpl.html with pandoc
-# Usage: ./postDeploy.sh title_of_post.md type
-# type can be 'blog' or 'projects' in my case
-
-if [ -z $3 ]
-then
- base_dir="/home/ascerba/go/alexscerba.com"
-else
- base_dir="$3"
-fi
-
-readonly posts_dir="$base_dir/html/$2"
-readonly post_temp="$base_dir/md/POST_TEMPLATE.tmpl.html"
-
-post=$(basename "$1" .md)
-echo "converting $1 to HTML"
-echo "Outputting at '$posts_dir/$post.tmpl.html'"
-
-# pandoc for md to html
-pandoc -f markdown-auto_identifiers -t html --template=$post_temp --wrap=none -o "$posts_dir/$post.tmpl.html" "$1"
-
-# # adds in filename to path no longer needed
-sed -i "s;src=\";src=\"/static/media/$post/;" "$posts_dir/$post.tmpl.html"
-
-# Pull images from <p> tags
-sed -i "s;<p><img;<img;" "$posts_dir/$post.tmpl.html"
-sed -i "s;/></p>;/>;" "$posts_dir/$post.tmpl.html"
-
-# Same but for video
-sed -i "s;<p><video;<video;" "$posts_dir/$post.tmpl.html"
-sed -i "s;</video></p>;</video>;" "$posts_dir/$post.tmpl.html"
-
-# makes http & https links have target _blank and rel noopener noreferrer
-perl -i -0pe 's/(<\W*a\W*[^>]*href=)(["'"'"']http[s]?:\/\/[^"'"'"'>]*["'"'"'])([^>]*>)/$1$2 target="_blank" rel="noopener noreferrer"$3/g' "$posts_dir/$post.tmpl.html"
-
-media_dir="$base_dir/static/media/$post"
-
-if [ -d "$base_dir/md/staged/images" ]
-then
- echo "Converting and deploying images:"
- if [ ! -d "$base_dir/static/media/$post" ]
- then
- mkdir "$base_dir/static/media/$post"
- fi
- for image in $(ls "$base_dir/md/staged/images")
- do
- echo "Converting $image and deploying at $media_dir/$image"
- convert $base_dir/md/staged/images/$image -resize 1000x1000\> "$media_dir/$image"
- /home/ascerba/.local/bin/cwebp -q 70 "$media_dir/$image" "$media_dir/${image%.*}.webp"
- done
-fi
-
-if [ -d "$base_dir/md/staged/videos" ]
-then
- echo "Deploying videos:"
- if [ ! -d "$base_dir/static/media/$post" ]
- then
- mkdir "$base_dir/static/media/$post"
- fi
- for video in $(ls "$base_dir/md/staged/videos")
- do
- echo "Copying $video to $media_dir/$video"
- cp $base_dir/md/staged/videos/$video $media_dir/$video
- done
-fi
-
-#echo "Contents of 'staged' will not be moved or deleted"
-echo "Moving staged contents to 'deployed' folder"
-mv -vT "$base_dir/md/staged" "$base_dir/md/deployed/$post"
-mkdir "$base_dir/md/staged"
-cp "$base_dir/md/template.md" "$base_dir/md/staged/NewPost.md"
-echo "Post deploy complete!"
-echo "Dont forget to edit $post_dir/$post.tmpl.html if any videos were added...!" \ No newline at end of file
diff --git a/md/postDeployWSL.sh b/md/postDeployWSL.sh
deleted file mode 100644
index 0aed051..0000000
--- a/md/postDeployWSL.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh
-# converts md to .tmpl.html with pandoc
-# Usage: ./postDeploy.sh title_of_post.md type
-# type can be 'blog' or 'projects' in my case
-
-if [ -z $3 ]
-then
- base_dir="/home/ascerba/go/alexscerba.com"
-else
- base_dir="$3"
-fi
-
-readonly posts_dir="$base_dir/html/$2"
-readonly post_temp="$base_dir/md/POST_TEMPLATE.tmpl.html"
-
-post=$(basename "$1" .md)
-echo "converting $1 to HTML"
-echo "Outputting at '$posts_dir/$post.tmpl.html'"
-
-# pandoc for md to html
-pandoc -f markdown-auto_identifiers -t html --template=$post_temp --wrap=none -o "$posts_dir/$post.tmpl.html" "$1"
-
-# # adds in filename to path no longer needed
-sed -i "s;src=\";src=\"/static/media/$post/;" "$posts_dir/$post.tmpl.html"
-
-# Pull images from <p> tags
-sed -i "s;<p><img;<img;" "$posts_dir/$post.tmpl.html"
-sed -i "s;/></p>;/>;" "$posts_dir/$post.tmpl.html"
-
-# Same but for video
-sed -i "s;<p><video;<video;" "$posts_dir/$post.tmpl.html"
-sed -i "s;</video></p>;</video>;" "$posts_dir/$post.tmpl.html"
-
-# makes http & https links have target _blank and rel noopener noreferrer
-perl -i -0pe 's/(<\W*a\W*[^>]*href=)(["'"'"']http[s]?:\/\/[^"'"'"'>]*["'"'"'])([^>]*>)/$1$2 target="_blank" rel="noopener noreferrer"$3/g' "$posts_dir/$post.tmpl.html"
-
-media_dir="$base_dir/static/media/$post"
-
-if [ -d "$base_dir/md/staged/images" ]
-then
- echo "Converting and deploying images:"
- if [ ! -d "$base_dir/static/media/$post" ]
- then
- mkdir "$base_dir/static/media/$post"
- fi
- for image in $(ls "$base_dir/md/staged/images")
- do
- echo "Converting $image and deploying at $media_dir/$image"
- convert $base_dir/md/staged/images/$image -resize 1800x1800\> "$media_dir/$image"
- #/home/ascerba/.local/bin/cwebp -q 70 "$media_dir/$image" "$media_dir/${image%.*}.webp" <------- ignore for now
- done
-fi
-
-if [ -d "$base_dir/md/staged/videos" ]
-then
- echo "Deploying videos:"
- if [ ! -d "$base_dir/static/media/$post" ]
- then
- mkdir "$base_dir/static/media/$post"
- fi
- for video in $(ls "$base_dir/md/staged/videos")
- do
- echo "Copying $video to $media_dir/$video"
- cp $base_dir/md/staged/videos/$video $media_dir/$video
- done
-fi
-
-#echo "Contents of 'staged' will not be moved or deleted"
-echo "Moving staged contents to 'deployed' folder"
-mv -vT "$base_dir/md/staged" "$base_dir/md/deployed/$post"
-mkdir "$base_dir/md/staged"
-cp "$base_dir/md/template.md" "$base_dir/md/staged/NewPost.md"
-echo "Post deploy complete!"
-echo "Dont forget to edit $post_dir/$post.tmpl.html if any videos were added...!" \ No newline at end of file
diff --git a/md/staged/NewPost.md b/md/staged/NewPost.md
deleted file mode 100644
index fa3223b..0000000
--- a/md/staged/NewPost.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-page: Project
-title: Title
-date: 2021-04-27
-description: Description
-tags: tmp
-cononical: /projects
-type: post
----
-
-text
-
-<div class="imgGrid">
-![caption](/file/path/image.jpg "title"){alt="atext" id="thumbnail"}
-</div> \ No newline at end of file
diff --git a/md/template.md b/md/template.md
deleted file mode 100644
index fa3223b..0000000
--- a/md/template.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-page: Project
-title: Title
-date: 2021-04-27
-description: Description
-tags: tmp
-cononical: /projects
-type: post
----
-
-text
-
-<div class="imgGrid">
-![caption](/file/path/image.jpg "title"){alt="atext" id="thumbnail"}
-</div> \ No newline at end of file