Initial check-in after refactoring to use Hugo site generator with ReLearn template. HTTP Status Codes page not done--nor adwords added.
This commit is contained in:
		
							
								
								
									
										21
									
								
								themes/relearn/layouts/shortcodes/tabs.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								themes/relearn/layouts/shortcodes/tabs.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | ||||
| {{- with .Inner }}{{/* don't do anything, just call it */}}{{ end }} | ||||
| {{- $groupId := .Get "groupId" | default "default" }} | ||||
| <div class="tab-panel"> | ||||
|   <div class="tab-nav"> | ||||
|   {{- range $idx, $tab := .Scratch.Get "tabs" }} | ||||
|     <button | ||||
|       data-tab-item="{{ .name }}" | ||||
|       data-tab-group="{{ $groupId }}" | ||||
|       class="tab-nav-button {{ cond (eq $idx 0) "active" ""}}" | ||||
|       onclick="switchTab('{{ $groupId }}','{{ .name }}')" | ||||
|       ><span>{{ .name }}</span></button> | ||||
|   {{- end }} | ||||
|   </div> | ||||
|   <div class="tab-content"> | ||||
|     {{- range $idx, $tab := .Scratch.Get "tabs" }} | ||||
|     <div data-tab-item="{{ .name }}" data-tab-group="{{ $groupId }}" class="tab-item {{ cond (eq $idx 0) "active" ""}}"> | ||||
| {{ .content }} | ||||
|     </div> | ||||
|     {{- end }} | ||||
|   </div> | ||||
| </div> | ||||
		Reference in New Issue
	
	Block a user