mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-11-03 18:27:55 -06:00 
			
		
		
		
	Customizable View source icon
This commit is contained in:
		@@ -27,8 +27,9 @@ params:
 | 
			
		||||
  wordcount: true
 | 
			
		||||
  readingtime: true
 | 
			
		||||
 | 
			
		||||
  # used for "View history"
 | 
			
		||||
  historyURL: https://github.com/BBaoVanC/bobatheme/commits/master
 | 
			
		||||
  # used for "View source"
 | 
			
		||||
  gitFileURL: https://github.com/BBaoVanC/bobatheme/blob/master
 | 
			
		||||
  gitFileIcon: github-circle
 | 
			
		||||
 | 
			
		||||
privacy:
 | 
			
		||||
  googleAnalytics:
 | 
			
		||||
 
 | 
			
		||||
@@ -60,11 +60,16 @@
 | 
			
		||||
    </span>
 | 
			
		||||
    {{ end }}
 | 
			
		||||
 | 
			
		||||
    {{ with .Site.Params.historyURL }}
 | 
			
		||||
    {{ with .Site.Params.gitFileURL }}
 | 
			
		||||
    <span class="post-meta-item">
 | 
			
		||||
        {{ partial "icon.html" "history" }}
 | 
			
		||||
        {{ with $.Site.Params.gitFileIcon }}
 | 
			
		||||
        {{ partial "icon.html" . }}
 | 
			
		||||
        {{ else }}
 | 
			
		||||
        {{ partial "icon.html" "file" }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
 | 
			
		||||
        <a href="{{ printf "%s/content/%s" . $.File.Path }}" target="_blank" rel="noopener">
 | 
			
		||||
            View history
 | 
			
		||||
            View source
 | 
			
		||||
        </a>
 | 
			
		||||
    </span>
 | 
			
		||||
    {{ end }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user