diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4248f25..42ebd9f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,7 +5,7 @@ <h1><a href="{{.Permalink}}" class="no-underline">{{ .Title }}</a></h1> {{if not .Params.hideMetadata }} - <header class="article__header"> + <header class="text-right pb-6"> {{ $readTime := cond (gt .ReadingTime 1) "minutes" "minute" }} <span class=""> Read in {{ .ReadingTime }} {{ $readTime }} · @@ -16,24 +16,24 @@ </header> {{ end }} - <div class="article__content py-5"> + <div class="article__content"> {{ .Content }} </div> {{if not .Params.hideAuthorBio }} - <section class="author"> + <section class="my-5 pt-10 pb-5 border-t border-gray-400 flex items-center"> {{if or (eq (substr .Site.Params.avatar 0 7) "http://") (eq (substr .Site.Params.avatar 0 8) "https://")}} - <img alt="Avatar photo" class="author__avatar" src="{{.Site.Params.avatar}}"> + <img alt="Avatar photo" class="border border-gray-400 p-1 w-10 h-10 rounded-full mr-3" src="{{.Site.Params.avatar}}"> {{ else }} - <img alt="Avatar photo" class="author__avatar" src="{{.Site.Params.avatar | relURL}}"> + <img alt="Avatar photo" class="border border-gray-400 p-1 w-10 h-10 rounded-full mr-3" src="{{.Site.Params.avatar | relURL}}"> {{ end }} - <span class="author__bio">{{ .Site.Params.authorBio | safeHTML }}</span> + <span class="flex-grow">{{ .Site.Params.authorBio | safeHTML }}</span> {{ $title := .Title }} {{ $url := printf "%s" .URL | absLangURL }} {{ $body := print $title ", by " .Site.Title "\n" .Params.description "\n\n" $url "\n" }} - <a href="http://twitter.com/share?url={{ $url }}&text={{ $title }}&via={{with .Site.Params.twitter }}{{ . }}{{ end }}" class="author__share bg-twitter hover:color-white hover:opacity-75"> + <a href="http://twitter.com/share?url={{ $url }}&text={{ $title }}&via={{with .Site.Params.twitter }}{{ . }}{{ end }}" class="text-white text-xs font-bold rounded-md no-underline flex items-center px-3 py-2 bg-twitter hover:color-white hover:opacity-75 no-underline"> <svg class="fill-current w-4 h-4 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"> <title>Twitter</title> <path d="M6.29 18.25c7.55 0 11.67-6.25 11.67-11.67v-.53c.8-.59 1.49-1.3 2.04-2.13-.75.33-1.54.55-2.36.65a4.12 4.12 0 0 0 1.8-2.27c-.8.48-1.68.81-2.6 1a4.1 4.1 0 0 0-7 3.74 11.65 11.65 0 0 1-8.45-4.3 4.1 4.1 0 0 0 1.27 5.49C2.01 8.2 1.37 8.03.8 7.7v.05a4.1 4.1 0 0 0 3.3 4.03 4.1 4.1 0 0 1-1.86.07 4.1 4.1 0 0 0 3.83 2.85A8.23 8.23 0 0 1 0 16.4a11.62 11.62 0 0 0 6.29 1.84"></path> @@ -45,7 +45,7 @@ {{ end }} {{if not .Params.hideComments }} - <section class="comments "> + <section class="my-5 py-5 "> <h2>Comments</h2> {{ template "_internal/disqus.html" . }} </section> |