-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
147 changed files
with
249 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Safety settings (see https://gist.github.com/ilg-ul/383869cbb01f61a51c4d). | ||
|
||
if [[ ! -z ${DEBUG} ]] | ||
then | ||
set ${DEBUG} # Activate the expand mode if DEBUG is anything but empty. | ||
else | ||
DEBUG="" | ||
fi | ||
|
||
set -o errexit # Exit if command failed. | ||
set -o pipefail # Exit if pipe failed. | ||
set -o nounset # Exit if variable not set. | ||
|
||
# Remove the initial space and instead use '\n'. | ||
IFS=$'\n\t' | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Identify the script location, to reach, for example, the helper scripts. | ||
|
||
script_path="$0" | ||
if [[ "${script_path}" != /* ]] | ||
then | ||
# Make relative path absolute. | ||
script_path="$(pwd)/$0" | ||
fi | ||
|
||
script_name="$(basename "${script_path}")" | ||
|
||
script_folder_path="$(dirname "${script_path}")" | ||
script_folder_name="$(basename "${script_folder_path}")" | ||
|
||
# ============================================================================= | ||
|
||
find "$(dirname ${script_folder_path})/website/events" -name index.md -print -exec bash "${script_folder_path}/update-post-title-from-summary.sh" '{}' ';' | ||
|
||
# ----------------------------------------------------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Safety settings (see https://gist.github.com/ilg-ul/383869cbb01f61a51c4d). | ||
|
||
if [[ ! -z ${DEBUG} ]] | ||
then | ||
set ${DEBUG} # Activate the expand mode if DEBUG is anything but empty. | ||
else | ||
DEBUG="" | ||
fi | ||
|
||
set -o errexit # Exit if command failed. | ||
set -o pipefail # Exit if pipe failed. | ||
set -o nounset # Exit if variable not set. | ||
|
||
# Remove the initial space and instead use '\n'. | ||
IFS=$'\n\t' | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Identify the script location, to reach, for example, the helper scripts. | ||
|
||
script_path="$0" | ||
if [[ "${script_path}" != /* ]] | ||
then | ||
# Make relative path absolute. | ||
script_path="$(pwd)/$0" | ||
fi | ||
|
||
script_name="$(basename "${script_path}")" | ||
|
||
script_folder_path="$(dirname "${script_path}")" | ||
script_folder_name="$(basename "${script_folder_path}")" | ||
|
||
# ============================================================================= | ||
|
||
file_path="$1" | ||
|
||
summary=$(grep 'eventSummary:' ${file_path} | sed -e 's|eventSummary: ||') | ||
echo $summary | ||
|
||
sed -i.bak -e "s|title: .*|title: $summary|" -e "/eventSummary: /d" ${file_path} | ||
|
||
# ----------------------------------------------------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.