static footer
This commit is contained in:
		
							parent
							
								
									45ce87e6b1
								
							
						
					
					
						commit
						c47942b451
					
				
					 4 changed files with 4 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,5 @@
 | 
			
		|||
&root = .
 | 
			
		||||
&tmpl_dir = ./templates
 | 
			
		||||
&gen_tmpl_dir = ./build/templates
 | 
			
		||||
 | 
			
		||||
HTML_TEMPLATE = main.html
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -10,8 +9,8 @@ HTML_TEMPLATE = main.html
 | 
			
		|||
	--template=&(tmpl_dir)/$(HTML_TEMPLATE) \
 | 
			
		||||
	--include-in-header=&(tmpl_dir)/header.html \
 | 
			
		||||
	--include-before-body=&(tmpl_dir)/nav.html \
 | 
			
		||||
	--include-after-body=&(tmpl_dir)/footer.html \
 | 
			
		||||
	--css &(root)/css/style.css \
 | 
			
		||||
	--include-after-body=&(gen_tmpl_dir)/footer.html \
 | 
			
		||||
	%f | sed 's|%%webRoot%%|&(root)|g' > %o \
 | 
			
		||||
	|> %B.html
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1 +0,0 @@
 | 
			
		|||
: |> ./generate_footer.sh > %o |> footer.html ./<tmpl_group>
 | 
			
		||||
							
								
								
									
										3
									
								
								templates/footer.html
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								templates/footer.html
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
<div id="footer">
 | 
			
		||||
Copyright © Fabien Freling since 2007
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -1,9 +0,0 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
set -euo pipefail
 | 
			
		||||
 | 
			
		||||
cat << EOF
 | 
			
		||||
<div id="footer">
 | 
			
		||||
Copyright © Fabien Freling 2007-$(date +%Y)
 | 
			
		||||
</div>
 | 
			
		||||
EOF
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue