From 3bb532df30e5ed3cf3713dc450a1a0ec99172e08 Mon Sep 17 00:00:00 2001 From: Track3 Date: Wed, 12 Dec 2018 00:02:36 +0800 Subject: Improve code quality & consistency * Add EditorConfig * Rebuild animate.css: remove an unused animation * Slightly rewrite header part --- layouts/partials/footer.html | 2 +- layouts/partials/header.html | 22 +++++++++------------- layouts/partials/social-icons.html | 2 +- 3 files changed, 11 insertions(+), 15 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 18aeaf3..423ef8f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,4 @@ \ No newline at end of file + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7e8f747..8c241fe 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -10,18 +10,14 @@ {{- end }} -
-
- {{- with .Params.featuredImg }} - - {{- end }} - {{- with .Site.Params.social }} - - {{- partialCached "social-icons.html" . -}} - - {{- end }} - -
+
+ {{- with .Params.featuredImg }} + + {{- end }} + {{- with .Site.Params.social -}} + {{ partialCached "social-icons.html" . }} + {{- end -}} +
@@ -31,4 +27,4 @@
  • {{ .Name }}
  • {{- end }} - \ No newline at end of file + diff --git a/layouts/partials/social-icons.html b/layouts/partials/social-icons.html index 61c44a6..3496bef 100644 --- a/layouts/partials/social-icons.html +++ b/layouts/partials/social-icons.html @@ -1,3 +1,3 @@ {{ range . -}} {{ .name }}{{ partial "svg.html" . }} -{{- end }} \ No newline at end of file +{{- end -}} -- cgit v1.2.3