diff options
Diffstat (limited to 'blogthis')
| -rwxr-xr-x | blogthis | 30 |
1 files changed, 17 insertions, 13 deletions
@@ -2,8 +2,8 @@ # create text, assemble html file, add to articles -#web is a symlink to /home/philip/src/web/wittamore.fr -ROOT=/home/philip/web +#web is a symlink to $HOME/src/web/example.com +ROOT="$HOME/web" mkdir -p $ROOT/.tmp cd $ROOT/.tmp || exit @@ -28,26 +28,30 @@ FIXEDTITLE=${TITLE// /-} ARTICLE="$FIXEDTITLE.html" echo "<!doctype html> -<html lang=\"EN\"> +<html lang=\"en\"> <head> - <meta charset=\"utf-8\"> - <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> + <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" > + <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"> <link rel=\"stylesheet\" href=\"/style.css\"> + <link rel=\"icon\" type=\"image/x-icon\" href=\"/favicon.ico\"> <title>$TITLE</title> </head> <body> <header> <h1>Bloggings</h1> - <a href=\"/index.php\">Back</a> - <hr> + <a href=\"/index.php\"> < Blog </a> </header> - <!-- article start -->" > "$ARTICLE" + <main> + <article>" > "$ARTICLE" + cat "$EDITFILE" >> "$ARTICLE" -echo '<!-- article end --> -<p> </p> -<hr> -<p>§</p> + +echo " </article> + </main> + <footer> + <p>§</p> + </footer> </body> -</html>' >> "$ARTICLE" +</html>" >> "$ARTICLE" mv "$ARTICLE" "$DEST" echo "saved as $DEST/$ARTICLE" |
