Merge remote-tracking branch 'refs/remotes/halogenica/master'
# Conflicts: # layouts/index.html
This commit is contained in:
commit
b9d04230d9
14 changed files with 77 additions and 72 deletions
|
|
@ -7,12 +7,12 @@
|
|||
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
{{ if .Site.Params.bigimg }}
|
||||
{{ if isset .Site.Params.bigimg 1 }}
|
||||
<div id="header-big-imgs" data-num-img={{len .Site.Params.bigimg}} {{range $i, $img := .Site.Params.bigimg}}data-img-src-{{add $i 1}}="{{$img.src}}" data-img-desc-{{add $i 1}}="{{$img.desc}}"{{end}}></div>
|
||||
{{ end }}
|
||||
|
||||
<header class="header-section {{ if .Site.Params.bigimg }}has-img{{ end }}">
|
||||
<div class="intro-header {{ if .Site.Params.bigimg }}big-img{{ else }}no-img{{ end }}">
|
||||
|
||||
<header class="header-section {{ if isset .Site.Params.bigimg 1 }}has-img{{ end }}">
|
||||
<div class="intro-header {{ if isset .Site.Params.bigimg 1 }}big-img{{ else }}no-img{{ end }}">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{{ if (.Params.comments) | or (and (not (isset .Params "comments")) (.Site.Params.comments)) }}
|
||||
{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }}
|
||||
{{ if .Site.DisqusShortname }}
|
||||
<div class="comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@
|
|||
{{ end }}
|
||||
{{ if .Site.Params.rss }}
|
||||
<li>
|
||||
<a href="{{ .Site.BaseURL}}index.xml" title="RSS">
|
||||
<a href="{{ .Site.BaseURL}}/index.xml" title="RSS">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-rss fa-stack-1x fa-inverse"></i>
|
||||
|
|
|
|||
|
|
@ -44,21 +44,6 @@
|
|||
<meta property="og:type" content="website" />
|
||||
|
||||
{{ if .Params.id }}
|
||||
<<<<<<< HEAD
|
||||
<meta property="og:url" content="{{ .URL | absURL }}" />
|
||||
<link rel="canonical" href="{{ .URL | absURL }}" />
|
||||
{{ else }}
|
||||
<meta property="og:url" content="{{ .URL | absURL }}" />
|
||||
<link rel="canonical" href="{{ .URL | absURL }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.share_img }}
|
||||
<meta property="og:image" content="{{ .Params.share_img | absURL }}" />
|
||||
{{ else if .Params.bigimg }}
|
||||
<meta property="og:image" content="{{ .Params.bigimg | absURL }}" />
|
||||
{{ else if .Site.Params.logo }}
|
||||
<meta property="og:image" content="{{ .Site.Params.logo | absURL }}" />
|
||||
=======
|
||||
<meta property="og:url" content="{{ .URL | absURL }}" />
|
||||
<link rel="canonical" href="{{ .URL | absURL }}" />
|
||||
{{ else }}
|
||||
|
|
@ -72,7 +57,6 @@
|
|||
<meta property="og:image" content="{{ .Params.bigimg | absURL }}" />
|
||||
{{ else if .Site.Params.logo }}
|
||||
<meta property="og:image" content="{{ .Site.Params.logo | absURL }}" />
|
||||
>>>>>>> refs/remotes/halogenica/master
|
||||
{{ end }}
|
||||
|
||||
<!-- Twitter summary cards -->
|
||||
|
|
@ -81,30 +65,6 @@
|
|||
<meta name="twitter:creator" content="@{{ .Site.Author.twitter }}" />
|
||||
|
||||
{{ if .Params.meta_title }}
|
||||
<<<<<<< HEAD
|
||||
<meta name="twitter:title" content="{{ .Params.meta_title }}" />
|
||||
{{ else if .Title }}
|
||||
<meta name="twitter:title" content="{{ .Title }}" />
|
||||
{{ else }}
|
||||
<meta name="twitter:title" content="{{ .Site.Title }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.meta_description }}
|
||||
<meta name="twitter:description" content="{{ .Params.meta_description }}">
|
||||
{{ else if .Params.subtitle }}
|
||||
<meta name="twitter:description" content="{{ .Params.subtitle }}">
|
||||
{{ else }}
|
||||
<meta name="twitter:description" content="{{ .Content | plainify | htmlEscape | truncate 200 }}">
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.share_img }}
|
||||
<meta name="twitter:image" content="{{ .Params.share_img }}" />
|
||||
{{ else if .Params.bigimg }}
|
||||
<meta name="twitter:image" content="{{ .Params.bigimg | absURL }}" />
|
||||
{{ else if .Site.Params.logo }}
|
||||
<meta name="twitter:image" content="{{ .Site.Params.logo | absURL }}" />
|
||||
{{ end }}
|
||||
=======
|
||||
<meta name="twitter:title" content="{{ .Params.meta_title }}" />
|
||||
{{ else if .Title }}
|
||||
<meta name="twitter:title" content="{{ .Title }}" />
|
||||
|
|
@ -127,6 +87,5 @@
|
|||
{{ else if .Site.Params.logo }}
|
||||
<meta name="twitter:image" content="{{ .Site.Params.logo | absURL }}" />
|
||||
{{ end }}
|
||||
>>>>>>> refs/remotes/halogenica/master
|
||||
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -1,17 +1,12 @@
|
|||
{{ if or .Params.bigimg .Title }}
|
||||
{{ if .Params.bigimg }}
|
||||
<div id="header-big-imgs" data-num-img=1 data-img-src-1="{{.Params.bigimg}}"></div>
|
||||
{{ if isset .Params.bigimg 1 }}
|
||||
<div id="header-big-imgs" data-num-img={{len .Params.bigimg}} {{range $i, $img := .Params.bigimg}}data-img-src-{{add $i 1}}="{{$img.src}}" {{ if $img.desc}}data-img-desc-{{add $i 1}}="{{$img.desc}}"{{end}}{{end}}></div>
|
||||
{{ end }}
|
||||
|
||||
<header class="header-section {{ if .Params.bigimg }}has-img{{ end }}">
|
||||
{{ if .Params.bigimg }}
|
||||
<div class="big-img intro-header">
|
||||
{{ partial "header.html" . }}
|
||||
<span class='img-desc'></span>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="intro-header no-img">
|
||||
<header class="header-section {{ if isset .Params.bigimg 1 }}has-img{{ end }}">
|
||||
<div class="intro-header {{ if isset .Params.bigimg 1 }}big-img{{ else }}no-img{{ end }}">
|
||||
{{ partial "header.html" . }}
|
||||
<span class="img-desc" style="display: inline;"></span>
|
||||
</div>
|
||||
</header>
|
||||
{{ else }}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{{ .Content }}
|
||||
{{ if (.Params.comments) | or (and (not (isset .Params "comments")) (.Site.Params.comments)) }}
|
||||
{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }}
|
||||
{{ if .Site.DisqusShortname }}
|
||||
<div class="disqus-comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ if (.Params.comments) | or (and (not (isset .Params "comments")) (.Site.Params.comments)) }}
|
||||
{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }}
|
||||
{{ if .Site.DisqusShortname }}
|
||||
<div class="disqus-comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue