Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jnjosh/internet-weblog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Johnson <jnjosh@jnjosh.com>2017-01-05 07:46:47 +0300
committerGitHub <noreply@github.com>2017-01-05 07:46:47 +0300
commit69c0730b993ca8903d21afbe439134fef0166238 (patch)
tree54104026cfe7e334cf2ca2303508fe22300ce2f5
parent3d318f339feca77a77784d69ff6c10d73d4c0b55 (diff)
parente87daf2a2db8667994c7910b69d3a7429ec4bd8d (diff)
Merge pull request #2 from ghlecl/hugo0.18
Made the theme compatible with Hugo 0.18.
-rw-r--r--layouts/partials/custom_image_handler.html2
-rw-r--r--layouts/partials/page_footer.html12
-rw-r--r--layouts/partials/page_header.html6
-rw-r--r--layouts/partials/site_header.html12
-rw-r--r--layouts/rss.xml4
5 files changed, 19 insertions, 17 deletions
diff --git a/layouts/partials/custom_image_handler.html b/layouts/partials/custom_image_handler.html
index 1271545..e953884 100644
--- a/layouts/partials/custom_image_handler.html
+++ b/layouts/partials/custom_image_handler.html
@@ -3,7 +3,7 @@
// @summary: jquery implementation
$(function() {
// @summary: Use the author's flickr ID to load images from the public flickr feed
- $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id={{ .Site.Author.FlickrID }}&format=json&jsoncallback=?", function(data) {
+ $.getJSON("https://api.flickr.com/services/feeds/photos_public.gne?id={{ .Site.Author.flickrid }}&format=json&jsoncallback=?", function(data) {
iweblog.application.displayImages(data, 8);
});
});
diff --git a/layouts/partials/page_footer.html b/layouts/partials/page_footer.html
index dc661cf..19a39b5 100644
--- a/layouts/partials/page_footer.html
+++ b/layouts/partials/page_footer.html
@@ -1,22 +1,24 @@
<footer>
<div class="footer_text">
<div>
- <h3>Hi, <a href="{{ .Site.Author.AboutPage }}">I'm {{ .Site.Author.FirstName }}</a></h3>
+ <h3>Hi, <a href="{{ .Site.Author.aboutpage }}">I'm {{ .Site.Author.firstname }}</a></h3>
<p>
{{ partial "bio.html" . }}
</p>
</div>
+ {{ if isset .Site.Author "flickrid" | and ( not ( eq .Site.Author.flickrid "" ) ) }}
<div>
- <h3><a href="https://www.flickr.com/photos/{{ .Site.Author.FlickrID }}/">Photo Stream</a></h3>
+ <h3><a href="https://www.flickr.com/photos/{{ .Site.Author.flickrid }}/">Photo Stream</a></h3>
<div id="photos"></div>
</div>
</div>
+ {{ end }}
</div>
- {{ if .Site.Params.ShowCopyright }}
+ {{ if .Site.Params.showcopyright }}
<div class="footer_copyright">
- &copy; {{ .Now.Format "2006" }} <a href="{{ .Site.Author.AboutPage }}">{{ .Site.Author.FirstName }} {{ .Site.Author.LastName }}</a>
- {{ with .Site.Author.Location }} - Made in {{ . }}{{ end }}
+ &copy; {{ .Now.Format "2006" }} <a href="{{ .Site.Author.aboutpage }}">{{ .Site.Author.firstname }} {{ .Site.Author.lastname }}</a>
+ {{ with .Site.Author.location }} - Made in {{ . }}{{ end }}
</div>
{{ end }}
</footer>
diff --git a/layouts/partials/page_header.html b/layouts/partials/page_header.html
index d566947..a8038a5 100644
--- a/layouts/partials/page_header.html
+++ b/layouts/partials/page_header.html
@@ -1,8 +1,8 @@
<header>
<nav>
- <h1><a href="/">@{{ .Site.Author.Handle }}</a>’s {{ .Site.Title }}.</h1>
+ <h1><a href="/">@{{ .Site.Author.handle }}</a>’s {{ .Site.Title }}.</h1>
<div class="menu">
- {{ $.Scratch.Add "sections" .Site.Params.RSSSections }}
+ {{ $.Scratch.Add "sections" .Site.Params.rsssections }}
<ul>
{{ range .Site.Menus.main }}
<li>
@@ -12,7 +12,7 @@
{{ end }}
</li>
{{ end }}
- {{ with .Site.Author.AboutPage }}<li><a href="{{ . }}">About</a></li>{{ end }}
+ {{ with .Site.Author.aboutpage }}<li><a href="{{ . }}">About</a></li>{{ end }}
</ul>
</div>
</nav>
diff --git a/layouts/partials/site_header.html b/layouts/partials/site_header.html
index 4bc4168..daaf2c0 100644
--- a/layouts/partials/site_header.html
+++ b/layouts/partials/site_header.html
@@ -4,19 +4,19 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="{{ with .Site.Author.FirstName }}{{ . }}{{ end }}">
- <meta name="description" content="{{ with .Site.Params.Description }}{{ . }}{{ end }}">
+ <meta name="author" content="{{ with .Site.Author.firstname }}{{ . }}{{ end }} {{ with .Site.Author.lastname }}{{ . }}{{ end }}">
+ <meta name="description" content="{{ with .Site.Params.description }}{{ . }}{{ end }}">
{{ .Hugo.Generator }}
{{ $.Scratch.Add "title" .Site.Title }}
- <title>{{ with .Title }}{{ if ne . ($.Scratch.Get "title") }}{{ . }} &middot; {{ end }}{{ end }}@{{ .Site.Author.Handle }}’s {{ .Site.Title }}</title>
+ <title>{{ with .Title }}{{ if ne . ($.Scratch.Get "title") }}{{ . }} &middot; {{ end }}{{ end }}@{{ .Site.Author.handle }}’s {{ .Site.Title }}</title>
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/weblog.css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.2.14/css/lightgallery.min.css" type="text/css" />
{{ partial "custom_stylesheets.html" . }}
- {{ if .Site.Params.RSSEnabled }}
- <link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
- {{ end }}
+ {{ if .Site.Params.rssenabled }}
+ <link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+ {{ end }}
</head>
<body class="site">
diff --git a/layouts/rss.xml b/layouts/rss.xml
index 243ab90..2d352a9 100644
--- a/layouts/rss.xml
+++ b/layouts/rss.xml
@@ -1,7 +1,7 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
- <title>@{{ .Site.Author.Handle }}’s {{ .Site.Title }}{{ with .Title }} - {{ . }}{{ end }}</title>
+ <title>@{{ .Site.Author.handle }}’s {{ .Site.Title }}{{ with .Title }} - {{ . }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>All entries {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>
@@ -15,7 +15,7 @@
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
- {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
+ {{ with .Site.Author.email }}<author>{{.}}{{end}} ({{ with .Site.Author.firstname }}{{.}}{{ end }} {{ with .Site.Author.lastname }}{{.}}{{end}})</author>
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>