File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed 
website_and_docs/layouts/shortcodes Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2121
2222{{ $fullPath := .Get "path" }}
2323{{ $path := index (split $fullPath "#") 0 }}
24+ {{ $hasFragment := in $fullPath "#" }}
2425
2526{{ $apiUrl := printf "%s/%s/%s/contents%s?ref=%s" $apiBaseUrl $org $repo $path $branch }}
2627{{ $webUrl := printf "%s/%s/%s/blob/%s/%s" $webBaseUrl $org $repo $branch $fullPath }}
5051
5152  {{ highlight $codeSnippet $language }}
5253
54+ {{ if $hasFragment }}
55+ < details  class ="mt-2 "> 
56+   < summary > Show full example</ summary > 
57+   < div  class ="pt-2 "> {{ highlight $content $language }}</ div > 
58+ </ details > 
59+ {{ end }}
60+ 
5361  < div  class ="text-end pb-2 "> 
5462    < a  href ="{{- $webUrl -}} " target ="_blank "> 
5563      < i  class ="fas fa-external-link-alt pl-2 "> </ i > 
5866  </ div > 
5967{{ else }}
6068  {{ partial "github-content.html" }}
61- {{ end }}
62- 
63- 
69+ {{ end }}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments