diff options
author | syui <syui@syui.cf> | 2018-03-20 17:18:50 +0300 |
---|---|---|
committer | syui <syui@syui.cf> | 2019-02-24 22:15:03 +0300 |
commit | 4fb91545c9fe3f818068e34098dc914581ea232f (patch) | |
tree | 3a8298d0c898cd5881dce26b37e2c5682207c0a6 | |
parent | d22e57625aa75f24e4f2c009638abdaf657bd515 (diff) |
fix author
-rw-r--r-- | LICENSE.md | 20 | ||||
-rw-r--r-- | config.toml | 3 | ||||
-rw-r--r-- | layouts/_default/single.html | 3 | ||||
-rw-r--r-- | layouts/partials/author.html | 19 |
4 files changed, 7 insertions, 38 deletions
diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index 7251605..0000000 --- a/LICENSE.md +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 YOUR_NAME_HERE - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/config.toml b/config.toml index 6a9ecd6..2597eac 100644 --- a/config.toml +++ b/config.toml @@ -6,6 +6,9 @@ DisqusShortname = "" Copyright = "All rights reserved - 2016" canonifyurls = true +[author] + name = "syui" + [params] description = "this is my description" cover = "images/user.jpg" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2de9683..fc5b8c2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -59,7 +59,8 @@ {{if .Site.Params.logo}} <figure class="author-image"> - <a class="img" href="{{.Site.BaseURL}}" style="background-image: url({{ $baseurl }}{{.Site.Params.logo}})"><span class="hidden">{{.Site.Params.author}}'s Picture</span></a> + + <a class="img" href="{{.Site.BaseURL}}" style="background-image: url({{ $baseurl }}{{.Site.Params.logo}})"><span class="hidden">{{ .Site.Params.author }}</span></a> </figure> {{end}} diff --git a/layouts/partials/author.html b/layouts/partials/author.html index 7f3ba03..cfb61f6 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -1,19 +1,4 @@ -{{ if not .Params.noauthor }} -{{$author := index .Site.Data.authors (or .Params.author .Site.Params.author)}} -{{$authorname := or $author.name .Site.Params.author }} -{{$authorbio := or $author.bio .Site.Params.bio }} -{{$authorlocation := or $author.location .Site.Params.authorlocation }} -{{$authorwebsite := or $author.website .Site.Params.authorwebsite }} <section class="author"> - <h4><a href="{{.Site.BaseURL}}">{{$authorname}}</a></h4> - {{if $authorbio}} - <p>{{$authorbio}}</p> - {{else}} - <p>Read <a href="{{.Site.BaseURL}}">more posts</a> by this author.</p> - {{end}} - <div class="author-meta"> - {{with $authorlocation}}<span class="author-location icon-location">{{.}}</span>{{end}} - {{with $authorwebsite}}<span class="author-link icon-link"><a href="{{.}}">{{.}}</a></span>{{end}} - </div> + <p>{{ .Site.Params.author }}</p> + <p>Read <a href="{{ .Site.BaseURL }}">more posts</a> by this author.</p> </section> -{{end}} |