bugfixes
This commit is contained in:
		
							parent
							
								
									53ba526ca2
								
							
						
					
					
						commit
						626b0c3219
					
				
							
								
								
									
										5
									
								
								make.sh
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								make.sh
									
									
									
									
									
								
							@ -69,7 +69,7 @@ do
 | 
			
		||||
  pubdate=$(grep "pubdate:" $p | sed 's/pubdate: //')
 | 
			
		||||
  title=$(grep "title:" $p | sed 's/title: //')
 | 
			
		||||
  slug=$(grep "slug:" $p | sed 's/slug: //' | tr -d \[:blank:\])
 | 
			
		||||
  summary=$(grep "summary:" $p | sed 's/summary: //' | tr -d \[:blank:\])
 | 
			
		||||
  summary=$(grep "summary:" $p | sed 's/summary: //')
 | 
			
		||||
  httpLink="https://tilde.town/~vilmibm/blog#${slug}"
 | 
			
		||||
  if [ -z "$pubdate" ] || [ -z "$title" ] || [ -z "$slug" ] || [ -z "$summary" ]
 | 
			
		||||
  then
 | 
			
		||||
@ -102,11 +102,12 @@ do
 | 
			
		||||
    grep -Ev "$metadataKeys" $p | $lp --mode "gemini" >> $geminiPostPath
 | 
			
		||||
 | 
			
		||||
    # RSS
 | 
			
		||||
    rfc822=$(date -d"$pubdate" +'%a, %d %b %Y %H:%M:%S %Z')
 | 
			
		||||
    echo "    <item>"                                  >> $rssIndex
 | 
			
		||||
    echo "      <title>${title}</title>"               >> $rssIndex
 | 
			
		||||
    echo "      <link>${httpLink}</link>"              >> $rssIndex
 | 
			
		||||
    echo "      <guid>${httpLink}</guid>"              >> $rssIndex
 | 
			
		||||
    echo "      <pubDate>${rfc822pubDate}</pubDate>"   >> $rssIndex
 | 
			
		||||
    echo "      <pubDate>${rfc822}</pubDate>"          >> $rssIndex
 | 
			
		||||
    echo "      <description>${summary}</description>" >> $rssIndex
 | 
			
		||||
    echo "    </item>"                                 >> $rssIndex
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user