Move sitemap XML files into their own folder, add to .gitignore
This commit is contained in:
		
							parent
							
								
									f7381a88e5
								
							
						
					
					
						commit
						630967680f
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
sitemap
 | 
			
		||||
@ -27,7 +27,7 @@ BLOCK_HASH=$(curl -s https://mempool.space/electrs/mainnet/block-height/${BLOCK_
 | 
			
		||||
BLOCK=$(curl -s https://mempool.space/electrs/mainnet/block/${BLOCK_HASH})
 | 
			
		||||
BLOCK_TIMESTAMP=$(echo "${BLOCK}"|sed -e 's/.*timestamp.://' -e 's/,.*//')
 | 
			
		||||
 | 
			
		||||
SITEMAP_FILE=$(printf "sitemap-%05d.xml" "${FILE}")
 | 
			
		||||
SITEMAP_FILE=$(printf "sitemap/%05d.xml" "${FILE}")
 | 
			
		||||
SITEMAP_LASTMOD=$(date -r "${BLOCK_TIMESTAMP}" +"%Y-%m-%dT%H:%M:%SZ")
 | 
			
		||||
 | 
			
		||||
if [ ! -f "${SITEMAP_FILE}" ] || [ "${BLOCK_HEIGHT}" -gt $(($BLOCK_TIP_HEIGHT - 2000)) ];then
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user