Welcome to mirror list, hosted at ThFree Co, Russian Federation.

main_content.html « partials « layouts - github.com/SAGGameDeveloper/hugo-minimalist-spa.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e9f59bf6fe834e69290d72c6c90875fd61224d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="main-content">	
	
	{{ partial "navbar.html" . }}
	
	<div class="main-content-window">
		
		<div class="tabs-list" id="tabs-list">
			
			{{ if fileExists "content/tabs" }}
			
				{{ range (readDir "content/tabs") }}
					<div id="content-{{ replace (substr .Name 0 -3) " " "" }}" style="display: none"></div>
				{{ end }}
				
			{{ else }}
				{{ range (readDir "themes/hugo-minimalist-spa/layouts/partials/theme-content") }}
			
					{{ $path := printf "%s%s" "theme-content/" .Name }}
					<div id="content-{{ replace (substr .Name 2 -5) " " "" }}" style="display: none">{{ partial $path . }}</div>
			
				{{ end }}
			
			{{ end }}
			
		</div>
	</div>
	
</div>