mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
layouts: replace all get on Params.
This commit is contained in:
@@ -1,18 +1,18 @@
|
|||||||
<!-- Google Analytics -->
|
<!-- Google Analytics -->
|
||||||
{{ if .Site.Params.GATracker }}
|
{{ if .Site.Param "GATracker" }}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
try {
|
try {
|
||||||
var pageTracker = _gat._getTracker("{{ .Site.Params.GATracker }}");
|
var pageTracker = _gat._getTracker("{{ .Site.Param "GATracker" }}");
|
||||||
pageTracker._trackPageview();
|
pageTracker._trackPageview();
|
||||||
} catch(err) {}
|
} catch(err) {}
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.HighlightJS }}
|
{{ if .Site.Param "HighlightJS" }}
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@@ -10,18 +10,18 @@
|
|||||||
|
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
|
|
||||||
{{ if .Site.Params.HighlightJS }}
|
{{ if .Site.Param "HighlightJS" }}
|
||||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css">
|
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ if eq true .Site.Params.CacheBuster }}
|
{{ if eq true .Site.Param "CacheBuster" }}
|
||||||
|
|
||||||
<link rel="stylesheet" href="/css/reset.css">
|
<link rel="stylesheet" href="/css/reset.css">
|
||||||
<link rel="stylesheet" href="/css/pygments.css">
|
<link rel="stylesheet" href="/css/pygments.css">
|
||||||
<link rel="stylesheet" href="/css/main.css">
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
|
||||||
{{range .Site.Params.ExtraCssFiles}}
|
{{range .Site.Param "ExtraCssFiles"}}
|
||||||
<link rel="stylesheet" href="{{.}}">
|
<link rel="stylesheet" href="{{.}}">
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
<link rel="stylesheet" href="/css/pygments.css?{{ .Now.Unix }}">
|
<link rel="stylesheet" href="/css/pygments.css?{{ .Now.Unix }}">
|
||||||
<link rel="stylesheet" href="/css/main.css?{{ .Now.Unix }}">
|
<link rel="stylesheet" href="/css/main.css?{{ .Now.Unix }}">
|
||||||
|
|
||||||
{{range .Site.Params.ExtraCssFiles}}
|
{{range .Site.Param "ExtraCssFiles"}}
|
||||||
<link rel="stylesheet" href="{{.}}?{{ .Now.Unix }}">
|
<link rel="stylesheet" href="{{.}}?{{ .Now.Unix }}">
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
@@ -39,8 +39,8 @@
|
|||||||
|
|
||||||
<!-- Icon -->
|
<!-- Icon -->
|
||||||
<link rel="shortcut icon"
|
<link rel="shortcut icon"
|
||||||
{{ if .Site.Params.FaviconFile }}
|
{{ if .Site.Param "FaviconFile" }}
|
||||||
href="/{{ .Site.Params.FaviconFile }}"
|
href="/{{ .Site.Param "FaviconFile" }}"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
href="/img/favicon.ico"
|
href="/img/favicon.ico"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -3,12 +3,12 @@
|
|||||||
|
|
||||||
{{ partial "head.html" . }}
|
{{ partial "head.html" . }}
|
||||||
|
|
||||||
<body lang="{{ .Site.Params.Lang }}">
|
<body lang="{{ .Site.Param "Lang" }}">
|
||||||
|
|
||||||
<section class="header">
|
<section class="header">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<a href="/"><div class="name">{{ .Site.Params.Author }}</div></a>
|
<a href="/"><div class="name">{{ .Site.Param "Author" }}</div></a>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
<a href="/blog/"><li>Blog</li></a>
|
<a href="/blog/"><li>Blog</li></a>
|
||||||
@@ -24,38 +24,38 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
||||||
{{ if .Site.Params.GitHub }}
|
{{ if .Site.Param "GitHub" }}
|
||||||
<a href="{{ .Site.Params.GitHub }}" target="_blank">
|
<a href="{{ .Site.Param "GitHub" }}" target="_blank">
|
||||||
<i class="icon ion-social-github"></i>
|
<i class="icon ion-social-github"></i>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.Twitter }}
|
{{ if .Site.Param "Twitter" }}
|
||||||
<a href="{{ .Site.Params.Twitter }}" target="_blank">
|
<a href="{{ .Site.Param "Twitter" }}" target="_blank">
|
||||||
<i class="icon ion-social-twitter"></i>
|
<i class="icon ion-social-twitter"></i>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.LinkedIn }}
|
{{ if .Site.Param "LinkedIn" }}
|
||||||
<a href="{{ .Site.Params.LinkedIn }}" target="_blank">
|
<a href="{{ .Site.Param "LinkedIn" }}" target="_blank">
|
||||||
<i class="icon ion-social-linkedin"></i>
|
<i class="icon ion-social-linkedin"></i>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.Facebook }}
|
{{ if .Site.Param "Facebook" }}
|
||||||
<a href="{{ .Site.Params.Facebook }}" target="_blank">
|
<a href="{{ .Site.Param "Facebook" }}" target="_blank">
|
||||||
<i class="icon ion-social-facebook larger"></i>
|
<i class="icon ion-social-facebook larger"></i>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.SoundCloud }}
|
{{ if .Site.Param "SoundCloud" }}
|
||||||
<a href="{{ .Site.Params.SoundCloud }}" target="_blank">
|
<a href="{{ .Site.Param "SoundCloud" }}" target="_blank">
|
||||||
<i class="icon ion-ios-musical-notes larger"></i>
|
<i class="icon ion-ios-musical-notes larger"></i>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.Email }}
|
{{ if .Site.Param "Email" }}
|
||||||
<a href="mailto:{{ .Site.Params.Email }}">
|
<a href="mailto:{{ .Site.Param "Email" }}">
|
||||||
<i class="icon ion-ios-email larger"></i>
|
<i class="icon ion-ios-email larger"></i>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -3,4 +3,4 @@
|
|||||||
<meta name="HandheldFriendly" content="True">
|
<meta name="HandheldFriendly" content="True">
|
||||||
<meta name="MobileOptimized" content="320">
|
<meta name="MobileOptimized" content="320">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
{{ if .Site.Params.Description }}<meta name="description" content="{{ .Site.Params.Description }}">{{ end }}
|
{{ if .Site.Param "Description" }}<meta name="description" content="{{ .Site.Param "Description" }}">{{ end }}
|
||||||
|
Reference in New Issue
Block a user