|
7 | 7 | <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> |
8 | 8 | <ul class="list-inline text-center footer-links"> |
9 | 9 | {{ range .Site.Data.beautifulhugo.social.social_icons }} |
10 | | - {{- if isset $.Site.Author .id }} |
| 10 | + {{- if isset $.Site.Params.author .id }} |
11 | 11 | <li> |
12 | | - {{ if or ( hasPrefix ( index $.Site.Author .id ) "http://" ) ( hasPrefix ( index $.Site.Author .id ) "https://" ) }} |
13 | | - <a {{ if .rel }}rel="{{ .rel }}"{{- end -}} href="{{ printf "%s" (index $.Site.Author .id) }}" title="{{ .title }}"> |
| 12 | + {{ if or ( hasPrefix ( index $.Site.Params.author .id ) "http://" ) ( hasPrefix ( index $.Site.Params.author .id ) "https://" ) }} |
| 13 | + <a {{ if .rel }}rel="{{ .rel }}"{{- end -}} href="{{ printf "%s" (index $.Site.Params.author .id) }}" title="{{ .title }}"> |
14 | 14 | {{ else }} |
15 | | - <a {{ if .rel }}rel="{{ .rel }}"{{- end -}} href="{{ printf .url (index $.Site.Author .id) }}" title="{{ .title }}"> |
| 15 | + <a {{ if .rel }}rel="{{ .rel }}"{{- end -}} href="{{ printf .url (index $.Site.Params.author .id) }}" title="{{ .title }}"> |
16 | 16 | {{ end }} |
17 | 17 | <span class="fa-stack fa-lg"> |
18 | 18 | <i class="fas fa-circle fa-stack-2x"></i> |
|
115 | 115 | <!-- End Piwik Code --> |
116 | 116 | {{ end }} |
117 | 117 |
|
118 | | -{{ if and .Site.Params.delayDisqus .Site.DisqusShortname }} |
| 118 | +{{ if isset .Site.Params "disqusShortname" }}{{ if .Site.Params.delayDisqus }} |
119 | 119 | <!-- Delayed Disqus --> |
120 | 120 | <script type="text/javascript"> |
121 | 121 | $(function(){ |
122 | 122 | $('#show-comments').on('click', function(){ |
123 | | - var disqus_shortname = '{{ .Site.DisqusShortname }}'; |
| 123 | + var disqus_shortname = '{{ .Site.Params.DisqusShortname }}'; |
124 | 124 |
|
125 | 125 | (function() { |
126 | 126 | var disqus = document.createElement('script'); |
|
135 | 135 | }); |
136 | 136 |
|
137 | 137 | </script> |
138 | | -<script id="dsq-count-scr" src="//{{ .Site.DisqusShortname }}.disqus.com/count.js" async></script> |
| 138 | +<script id="dsq-count-scr" src="//{{ .Site.Params.DisqusShortname }}.disqus.com/count.js" async></script> |
139 | 139 | <!-- End Delayed Disqus --> |
140 | | -{{ end }} |
| 140 | +{{ end }}{{ end }} |
141 | 141 |
|
142 | 142 | {{- partial "footer_custom.html" . }} |
0 commit comments