refactoring of code to support themes and new hellug theme
	
		
			
	
		
	
	
		
	
		
			Κάποιοι έλεγχοι απέτυχαν
		
		
	
	
		
			
				
	
				Hellug Projects/Hellug/www/pipeline/head There was a failure building this commit
				
			
		
		
	
	
		
	
		
			Κάποιοι έλεγχοι απέτυχαν
		
		
	
	Hellug Projects/Hellug/www/pipeline/head There was a failure building this commit
				
			Αυτό το commit περιλαμβάνεται σε:
		
					γονέας
					
						
							
								781ede797c
							
						
					
				
			
			
				commit
				
					
						acfecc9a4d
					
				
			
		
					 119 αρχεία άλλαξαν με 3973 προσθήκες και 7 διαγραφές
				
			
		
							
								
								
									
										30
									
								
								layouts.old/_default/pages.gmi
									
										
									
									
									
										Κανονικό αρχείο
									
								
							
							
						
						
									
										30
									
								
								layouts.old/_default/pages.gmi
									
										
									
									
									
										Κανονικό αρχείο
									
								
							| 
						 | 
				
			
			@ -0,0 +1,30 @@
 | 
			
		|||
# {{ .Title }}{{ $scratch := newScratch }}
 | 
			
		||||
{{ $content := .RawContent -}}
 | 
			
		||||
{{ $content := $content | replaceRE `</tr>` "\n" -}}
 | 
			
		||||
{{ $content := $content | replaceRE `<br/??>` "\n" -}}
 | 
			
		||||
{{ $content := $content | replaceRE `<br??/??>` "\n" -}}
 | 
			
		||||
{{ $content := $content | replaceRE `<a .*href="(.+?)".*>(.+?)</a>` "[$2]($1)" -}}
 | 
			
		||||
{{ $content := $content | plainify -}}
 | 
			
		||||
{{ $content := $content | replaceRE `#### ` "### " -}}
 | 
			
		||||
{{ $content := $content | replaceRE `\n- (.+?)` "\n* $1" -}}
 | 
			
		||||
{{ $content := $content | replaceRE `\n(\d+). (.+?)` "\n* $2" -}}
 | 
			
		||||
{{ $content := $content | replaceRE `\[\^(.+?)\]:?` "" -}}
 | 
			
		||||
{{ $content := $content | replaceRE `\sgemini://(\S*)` " [gemini://$1](gemini://$1)" -}}
 | 
			
		||||
{{ $content := $content | replaceRE "([^`])<.*?>([^`])" "$1$2" -}}
 | 
			
		||||
{{ $content := $content | replaceRE `\n\n!\[.*\]\((.+?) \"(.+?)\"\)` "\n\n=> $1 Image: $2" -}}
 | 
			
		||||
{{ $content := $content | replaceRE `\n\n!\[.*]\((.+?)\)` "\n\n=> $1 Embedded Image: $1" -}}
 | 
			
		||||
{{ $links := findRE `\n=> ` $content }}{{ $scratch.Set "ref" (add (len $links) 1) }}
 | 
			
		||||
{{ $refs := findRE `\[.+?\]\(.+?\)` $content }}
 | 
			
		||||
{{ $scratch.Set "content" $content }}{{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $contentInLoop := $scratch.Get "content" }}{{ $url := (printf "%s #%d" . $ref) }}{{ $contentInLoop := replace $contentInLoop . $url -}}{{ $scratch.Set "content" $contentInLoop }}{{ $scratch.Set "ref" (add $ref 1) }}{{ end }}{{ $content := $scratch.Get "content" | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$1 [$3]" -}}
 | 
			
		||||
{{ $content | safeHTML }}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{{ $scratch.Set "ref" (add (len $links) 1) }}{{ if $refs }}
 | 
			
		||||
## Παραπομπές
 | 
			
		||||
{{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $url := (printf "%s #%d" . $ref) }}
 | 
			
		||||
=> {{ $url | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$2 [$3] $1 ($2)" -}}
 | 
			
		||||
{{ $scratch.Set "ref" (add $ref 1) }}{{ end}}
 | 
			
		||||
---{{end}}
 | 
			
		||||
 | 
			
		||||
=> / Αρχική
 | 
			
		||||
=> https://www.hellug.gr{{ replace (replace .RelPermalink "/gemini" "" 1) "index.gmi" "" }} Έκδοση HTML - Web Page
 | 
			
		||||
		Φόρτωση…
	
	Προσθήκη πίνακα
		Προσθήκη υπερσυνδέσμου
		
	
		Παράθεση σε νέο ζήτημα