From ed8fefdea89f3d87939c515eaf71043ffe4ec157 Mon Sep 17 00:00:00 2001 From: Hauke Stieler Date: Sat, 25 Aug 2018 04:52:17 +0200 Subject: Adjust formatting --- layouts/partials/header.html | 58 +++++++++++++++++----------------- layouts/partials/link.html | 74 ++++++++++++++++++++++---------------------- 2 files changed, 67 insertions(+), 65 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 47215f6..e771705 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -5,24 +5,26 @@ {{ with .Site.Params.themecolor }} - - {{ end }} + + {{ end }} - {{ with .Params.images }}{{ range first 5 . }} - - {{ end }}{{ end }} - {{ if .IsPage }} - - {{ with .Site.Params.facebook }} - - {{ end }} - - {{ range .Params.tags }} - + {{ with .Params.images }} + {{ range first 5 . }} + + {{ end }} {{ end }} + {{ if .IsPage }} + + {{ with .Site.Params.facebook }} + + {{ end }} + + {{ range .Params.tags }} + + {{ end }} {{ else }} - + {{ end }} @@ -39,11 +41,11 @@ <link rel="apple-touch-icon" href="{{ .Site.BaseURL }}images/apple-touch-icon.png" /> {{ range .Site.Params.customCSS }} - <link rel="stylesheet" href="{{ (print "css/" . ) | absURL }}"> + <link rel="stylesheet" href="{{ (print "css/" . ) | absURL }}"> {{ end }} {{ if eq .URL "/" }} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }} </head> <body> @@ -51,15 +53,15 @@ <section class="header-text"> <h1><a href="{{ "/" | absLangURL }}">{{ .Site.Title }}</a></h1> {{ with .Site.Params.subtitle }} - <h3 class="tag-line"> - {{ . }} - </h3> + <h3 class="tag-line"> + {{ . }} + </h3> {{ end }} {{ if ne ( trim .URL "/" ) .Site.Language.Lang }} - <a class="btn btn-default btn-home" href="{{ "/" | absLangURL }}"> - <i class="fa fa-angle-left" aria-hidden="true"></i> -  {{ i18n "home" }} - </a> + <a class="btn btn-default btn-home" href="{{ "/" | absLangURL }}"> + <i class="fa fa-angle-left" aria-hidden="true"></i> +  {{ i18n "home" }} + </a> {{ end }} <!-- sites --> <div class="navbar-container"> @@ -73,11 +75,11 @@ {{ $url := urls.Parse .Permalink }} {{ $path := strings.TrimPrefix (print "/" .Language "/") $url.Path }} {{ if .IsTranslated }} - <div class="language-container"> - {{ range .Site.Home.AllTranslations }} - <a class="btn btn-default language-button" href="{{ .URL }}{{ strings.TrimPrefix "/" $path }}">{{ .Language.LanguageName }}</a> - {{ end }} - </div> + <div class="language-container"> + {{ range .Site.Home.AllTranslations }} + <a class="btn btn-default language-button" href="{{ .URL }}{{ strings.TrimPrefix "/" $path }}">{{ .Language.LanguageName }}</a> + {{ end }} + </div> {{ end }} </section> </header> diff --git a/layouts/partials/link.html b/layouts/partials/link.html index c8b685c..b183211 100644 --- a/layouts/partials/link.html +++ b/layouts/partials/link.html @@ -1,62 +1,62 @@ <div class="sns-links hidden-print"> {{ with .Site.Params.contact }} - <a href="{{ . }}"> - <i class="fa fa-envelope"></i> - </a> + <a href="{{ . }}"> + <i class="fa fa-envelope"></i> + </a> {{ end }} {{ with .Site.Params.twitter }} - <a href="https://twitter.com/{{ . }}" target="_blank"> - <i class="fa fa-twitter"></i> - </a> - {{ end }} + <a href="https://twitter.com/{{ . }}" target="_blank"> + <i class="fa fa-twitter"></i> + </a> + {{ end }} {{ with .Site.Params.instagram }} - <a href="https://instagram.com/{{ . }}" target="_blank"> - <i class="fa fa-instagram"></i> - </a> + <a href="https://instagram.com/{{ . }}" target="_blank"> + <i class="fa fa-instagram"></i> + </a> {{ end }} {{ with .Site.Params.googleplus }} - <a href="https://plus.google.com/+{{ . }}" target="_blank"> - <i class="fa fa-google"></i> - </a> + <a href="https://plus.google.com/+{{ . }}" target="_blank"> + <i class="fa fa-google"></i> + </a> {{ end }} {{ with .Site.Params.facebook }} - <a href="https://facebook.com/{{ . }}" target="_blank"> - <i class="fa fa-facebook"></i> - </a> + <a href="https://facebook.com/{{ . }}" target="_blank"> + <i class="fa fa-facebook"></i> + </a> {{ end }} {{ with .Site.Params.github }} - <a href="https://github.com/{{ . }}" target="_blank"> - <i class="fa fa-github"></i> - </a> + <a href="https://github.com/{{ . }}" target="_blank"> + <i class="fa fa-github"></i> + </a> {{ end }} {{ with .Site.Params.gitlab }} - <a href="https://gitlab.com/{{ . }}" target="_blank"> - <i class="fa fa-gitlab"></i> - </a> + <a href="https://gitlab.com/{{ . }}" target="_blank"> + <i class="fa fa-gitlab"></i> + </a> {{ end }} {{ with .Site.Params.reddit }} - <a href="https://reddit.com/user/{{ . }}" target="_blank"> - <i class="fa fa-reddit-alien"></i> - </a> + <a href="https://reddit.com/user/{{ . }}" target="_blank"> + <i class="fa fa-reddit-alien"></i> + </a> {{ end }} {{ with .Site.Params.hackernews }} - <a href="https://news.ycombinator.com/user?id={{ . }}" target="_blank"> - <i class="fa fa-hacker-news"></i> - </a> + <a href="https://news.ycombinator.com/user?id={{ . }}" target="_blank"> + <i class="fa fa-hacker-news"></i> + </a> {{ end }} {{ with .Site.Params.stackoverflow }} - <a href="https://stackoverflow.com/users/{{ . }}" target="_blank"> - <i class="fa fa-stack-overflow"></i> - </a> + <a href="https://stackoverflow.com/users/{{ . }}" target="_blank"> + <i class="fa fa-stack-overflow"></i> + </a> {{ end }} {{ with .Site.Params.linkedin }} - <a href="https://linkedin.com/in/{{ . }}" target="_blank"> - <i class="fa fa-linkedin"></i> - </a> + <a href="https://linkedin.com/in/{{ . }}" target="_blank"> + <i class="fa fa-linkedin"></i> + </a> {{ end }} {{ with .Site.Params.keybase }} - <a href="https://keybase.io/{{ . }}" target="_blank"> - <i class="fa fa-key"></i> - </a> + <a href="https://keybase.io/{{ . }}" target="_blank"> + <i class="fa fa-key"></i> + </a> {{ end }} </div> -- cgit v1.2.3