mirror of
https://gitlab.com/siarp/siarp.de.git
synced 2026-08-07 11:08:20 +00:00
add cleanup steps to README
This commit is contained in:
@@ -74,3 +74,12 @@ mv martin.xml misc modules rss.xml sites themes tilman.xml ../../httrack-clean/s
|
||||
cd ../../working-dir/siarp.de
|
||||
find . -name "*.html" -type f -print0 | xargs -0 perl -i -pe "s/\/index\././g"
|
||||
```
|
||||
|
||||
### More cleanup
|
||||
|
||||
```
|
||||
find . -name "*.html" -type f -print0 | xargs -0 perl -i -pe 's/<link rel="(canonical|shortlink)" href=".+?" \/>\n//g'
|
||||
```
|
||||
```
|
||||
find . -name "*.html" -type f -print0 | xargs -0 perl -i -pe 's/<\!\-\- Added by HTTrack \-\-><meta http\-equiv="content-type" content="text\/html;charset=utf\-8" \/><\!\-\- \/Added by HTTrack \-\->\n//g'
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user