From 9122b6da0df311b1080738cfb288360d29c61f03 Mon Sep 17 00:00:00 2001 From: anadahz Date: Mon, 15 Apr 2019 19:36:34 +0000 Subject: [PATCH] Remove unused script and comments --- config.toml | 7 ------- publish_to_ghpages.sh | 35 ----------------------------------- 2 files changed, 42 deletions(-) delete mode 100755 publish_to_ghpages.sh diff --git a/config.toml b/config.toml index a19fb64..0ab2a73 100644 --- a/config.toml +++ b/config.toml @@ -16,10 +16,3 @@ theme = "mondrian" posts = "gold" page = "#cb0713" sketch = "limegreen" - - -#[menu] -# [[menu.main]] -# name = "previous editions" -# url = "/past" -# weight = 1 diff --git a/publish_to_ghpages.sh b/publish_to_ghpages.sh deleted file mode 100755 index 68d5cbf..0000000 --- a/publish_to_ghpages.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -DIR=$(dirname "$0") - -# cd $DIR/.. - -if [[ $(git status -s) ]] -then - echo "The working directory is dirty. Please commit any pending changes." - exit 1; -fi - -echo "Deleting old publication" -rm -rf public -mkdir public -git worktree prune -rm -rf .git/worktrees/public/ - -echo "Checking out gh-pages branch into public" -git worktree add -B gh-pages public origin/gh-pages - -echo "Initializing submodules" -git submodule update --init --recursive - -echo "Removing existing files" -rm -rf public/* - -echo "Creating CNAME for tics.site domain" -echo tics.site > public/CNAME - -echo "Generating site" -hugo - -echo "Updating gh-pages branch" -cd public && git add --all && git commit -m "Publishing to gh-pages (publish.sh)"