Compare commits
	
		
			No commits in common. "81b232fa91b5fe0a3f07bb95be4d8a2037c36816" and "6a61b3eb428b5d0f2b3384efba17d11a4faac127" have entirely different histories.
		
	
	
		
			81b232fa91
			...
			6a61b3eb42
		
	
		
					 2 changed files with 3 additions and 42 deletions
				
			
		
							
								
								
									
										5
									
								
								build.sh
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								build.sh
									
										
									
									
									
								
							|  | @ -1,11 +1,12 @@ | ||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
| set -ex | set -ex | ||||||
|  | export DEPLOY_PRIME_URL=https://harald.hoyer.xyz | ||||||
| rm -fr public | rm -fr public | ||||||
| nix shell nixpkgs#zola -c zola build | nix shell nixpkgs#zola -c zola build --base-url "$DEPLOY_PRIME_URL" | ||||||
| nix shell nixpkgs#nodejs_20 nixpkgs#zola -c npm install  | nix shell nixpkgs#nodejs_20 nixpkgs#zola -c npm install  | ||||||
| nix shell nixpkgs#nodejs_20 nixpkgs#zola -c npm run abridge | nix shell nixpkgs#nodejs_20 nixpkgs#zola -c npm run abridge | ||||||
| nix shell nixpkgs#zola -c zola build | nix shell nixpkgs#zola -c zola build --base-url "$DEPLOY_PRIME_URL" | ||||||
| nix shell nixpkgs#brotli -c find public -type f -regextype posix-extended -regex '.*\.(htm|html|css|js|xml|xsl|txt|woff|woff2|svg|otf|eot|ttf)' -exec gzip --best -k -f {} \+ -exec brotli --best -f {} \; | nix shell nixpkgs#brotli -c find public -type f -regextype posix-extended -regex '.*\.(htm|html|css|js|xml|xsl|txt|woff|woff2|svg|otf|eot|ttf)' -exec gzip --best -k -f {} \+ -exec brotli --best -f {} \; | ||||||
| rsync -a --delete-after public/ /var/www/harald.hoyer.xyz/html/ | rsync -a --delete-after public/ /var/www/harald.hoyer.xyz/html/ | ||||||
| chmod go-w -R /var/www/harald.hoyer.xyz/ | chmod go-w -R /var/www/harald.hoyer.xyz/ | ||||||
|  |  | ||||||
|  | @ -1,40 +0,0 @@ | ||||||
| <?xml version="1.0" encoding="UTF-8"?> |  | ||||||
| <rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> |  | ||||||
|     <channel> |  | ||||||
|         <title>{{ config.title }} |  | ||||||
|             {%- if term %} - {{ term.name }} |  | ||||||
|             {%- elif section.title %} - {{ section.title }} |  | ||||||
|             {%- endif -%} |  | ||||||
|         </title> |  | ||||||
|         <link> |  | ||||||
|             {%- if section -%} |  | ||||||
|             {{ section.permalink | escape_xml | safe }} |  | ||||||
|             {%- else -%} |  | ||||||
|             {{ config.base_url | escape_xml | safe }} |  | ||||||
|             {%- endif -%} |  | ||||||
|         </link> |  | ||||||
|         <description>{{ config.description }}</description> |  | ||||||
|         <generator>Zola</generator> |  | ||||||
|         <language>{{ lang }}</language> |  | ||||||
|         <atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/> |  | ||||||
|         <lastBuildDate>{{ last_updated | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate> |  | ||||||
|         {%- for page in pages %} |  | ||||||
|         <item> |  | ||||||
|             <title>{{ page.title }}</title> |  | ||||||
|             <pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate> |  | ||||||
|             <author> |  | ||||||
|                 {%- if page.authors -%} |  | ||||||
|                 {{ page.authors[0] }} |  | ||||||
|                 {%- elif config.author -%} |  | ||||||
|                 {{ config.author }} |  | ||||||
|                 {%- else -%} |  | ||||||
|                 Unknown |  | ||||||
|                 {%- endif -%} |  | ||||||
|             </author> |  | ||||||
|             <link>{{ page.permalink | escape_xml | safe }}</link> |  | ||||||
|             <guid>{{ page.permalink | escape_xml | safe }}</guid> |  | ||||||
|             <description>{% if page.summary %}{{ page.summary }} {{ '<p class="post-meta"><a href="' | escape_xml | safe }}{{ page.permalink }}{{ '">Read More</a></p>'  | escape_xml | safe }} {% else %}{{ page.content }}{% endif %}</description> |  | ||||||
|         </item> |  | ||||||
|         {%- endfor %} |  | ||||||
|     </channel> |  | ||||||
| </rss> |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue