add entry_id links all entries listed in years.html
All entries listed in `years.html` now have a link so that historic links to _years.html#entry_id_ will work. **IMPORTANT NOTE**: We do this for backward compatibility only. When linking to an entry, it is **much better and more useful** to link to _YYYY/dir/index.html_ instead. Changed `bin/gen-years.sh` VERSION from "1.2 2024-04-15" to "1.3 2024-04-21". Run `make gen_years` to perform the above.
This commit is contained in:
1 parent
53873f5153
commit
d71de68c68
2 files changed
+965
-323
No files matched your search
+2
-2
@@ -83,7 +83,7 @@ shopt -s globstar # enable ** to match all files and zero or more directories an
|
||||
|
||||
# set variables referenced in the usage message
|
||||
#
|
||||
export VERSION="1.2 2024-04-15"
|
||||
export VERSION="1.3 2024-04-21"
|
||||
NAME=$(basename "$0")
|
||||
export NAME
|
||||
export V_FLAG=0
|
||||
@@ -795,7 +795,7 @@ for YYYY in $("$TAC_TOOL" "$TOP_FILE"); do
|
||||
|
||||
# output markdown for this entry
|
||||
#
|
||||
echo "* [$YYYY_DIR]($YYYY_DIR/index.html) - $AWARD"
|
||||
echo "* <div id=\"${YEAR_DIR}_${ENTRY_DIR}\">[$YYYY_DIR]($YYYY_DIR/index.html) - $AWARD</div>"
|
||||
done | if [[ -z $NOOP ]]; then
|
||||
cat >> "$TMP_YEARS_MD"
|
||||
else
|
||||
|
||||
+963
-321
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user