diff --git a/images/screenshot.png b/images/screenshot.png deleted file mode 100644 index 44e96d7..0000000 Binary files a/images/screenshot.png and /dev/null differ diff --git a/images/tn.png b/images/tn.png deleted file mode 100644 index 887e5e5..0000000 Binary files a/images/tn.png and /dev/null differ diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e0b7cd1..d14e966 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,14 @@ + {{ with .Site.Params.google_adsense }} + + + + {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2a6eaec..e3c2314 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -4,9 +4,12 @@ + {{ with .Site.Params.description }} + + {{ end }} {{ with .Site.Params.themecolor }} - {{ end }} + {{ end }} {{ with .Params.images }}{{ range first 5 . }} @@ -51,13 +54,22 @@
diff --git a/layouts/partials/navi.html b/layouts/partials/navi.html deleted file mode 100644 index ba448e4..0000000 --- a/layouts/partials/navi.html +++ /dev/null @@ -1,37 +0,0 @@ -
- - {{ with .Site.Params.avatar }} - - {{ end }} - - {{ with .Site.Params.about }} - - - - {{ end }} - {{ with .Site.Params.email }} - - - - {{ end }} - {{ with .Site.Params.github }} - - - - {{ end }} - {{ with .Site.Params.youtube }} - - - - {{ end }} - {{ with .Site.Params.twitter }} - - - - {{ end }} - {{ with .Site.Params.steam }} - - - - {{ end }} -
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 474f028..84793f4 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -5,7 +5,6 @@ {{if .HasPrev}} Newer Posts {{end}} - Page {{ .PageNumber }} of {{.TotalPages}} {{if .HasNext}} Older Posts {{end}} diff --git a/layouts/partials/social.html b/layouts/partials/social.html new file mode 100644 index 0000000..603d7b8 --- /dev/null +++ b/layouts/partials/social.html @@ -0,0 +1,67 @@ +
+ {{ with .Site.Params.rss }} + + + + {{ end }} + {{ with .Site.Params.about }} + + + + {{ end }} + {{ with .Site.Params.email }} + + + + {{ end }} + {{ with .Site.Params.github }} + + + + {{ end }} + {{ with .Site.Params.youtube }} + + + + {{ end }} + {{ with .Site.Params.twitter }} + + + + {{ end }} + {{ with .Site.Params.steam }} + + + + {{ end }} + {{ with .Site.Params.instagram }} + + + + {{ end }} + {{ with .Site.Params.googleplus }} + + + + {{ end }} + {{ with .Site.Params.facebook }} + + + + {{ end }} + {{ with .Site.Params.stackoverflow }} + + + + {{ end }} + {{ with .Site.Params.linkedin }} + + + + {{ end }} + {{ with .Site.Params.keybase }} + + + + {{ end }} +
diff --git a/static/css/main.css b/static/css/main.css index 332de77..c90d338 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -31,14 +31,14 @@ main { font-weight: 300; } -.header-text .sns-navi { +.header-text .sns-social { text-align: center; } -.header-text .sns-navi a { +.header-text .sns-social a { display: inline-block; - width: 42px; - height: 42px; + width: 32px; + height: 32px; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 24px; @@ -46,7 +46,7 @@ main { transition: color,border-color 0.1s linear; } -.header-text .sns-navi a:hover { +.header-text .sns-social a:hover { border-color: rgba(255, 255, 255, 1.0); color: rgba(255, 255, 255, 1.0); } @@ -66,8 +66,6 @@ a.btn-header { position: absolute; top: 20px; padding: 7px 16px; - border: 1px solid rgba(255, 255, 255, 1.0); - border-radius: 3px; background-color: rgba(0, 0, 0, 0.1); color: rgba(255, 255, 255, 1.0); text-decoration: none; @@ -81,10 +79,6 @@ a.btn-header:hover { color: rgba(0, 0, 0, 1.0); } -a.btn-back { - left: 20px; -} - /* Footer */ .global-footer { @@ -94,6 +88,7 @@ a.btn-back { height: 100px; border-top: 1px solid rgba(0, 0, 0, 0.2); color: rgba(0, 0, 0, 0.4); + text-align: center; } /* Article */ @@ -113,11 +108,9 @@ a.btn-back { .post-tag a { padding: 0 10px; - border: 1px solid rgba(0, 0, 0, 0.3); - border-radius: 12px; color: rgba(0, 0, 0, 0.3); text-decoration: none; - transition: color,border-color,background-color 0.1s linear; + transition: color,background-color 0.1s linear; } .post-tag a:hover { @@ -135,70 +128,16 @@ a.btn-back { text-align: center; } -.author-info { - padding: 25px 0; - border-top: 1px solid rgba(0, 0, 0, 0.2); - border-bottom: 1px solid rgba(0, 0, 0, 0.2); -} - -.author-name { - margin: 0 0 5px 0; - font-size: 30px; -} - -.author-bio { - color: rgba(0, 0, 0, 0.5); -} - -.author-contact { - position: relative; - display: inline-block; - padding-top: 10px; - height: 100px; - text-align: center; -} - -.author-contact a { - display: inline-block; - padding: 7px 16px; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 3px; - color: rgba(0, 0, 0, 0.7); - text-decoration: none; - font-weight: 300; - font-size: 13px; - transition: background-color,border-color,color 0.1s linear; -} - -.author-contact a:hover { - border: 1px solid rgba(51, 122, 182, 1.0); - background-color: rgba(51, 122, 183, 1.0); - color: rgba(255, 255, 255, 1.0); -} - /* Pagination */ - .pagination { width: 100%; - text-align: center; } - .older-posts,.newer-posts { display: inline!important; - border: 1px solid #ddd; - border-radius: 15px; text-decoration: none; - transition: border .3s ease; - padding: 5px 14px; -} - -.page-number -{ - display: inline-block; - min-width: 100px; - padding: 2px 0; + transition: background-color .1s linear; } .newer-posts @@ -213,8 +152,7 @@ a.btn-back { .older-posts:hover,.newer-posts:hover { - color: #889093; - border-color: #98a0a4; + text-decoration: none; } /* Override some of Bootstrap's styles */ @@ -230,6 +168,7 @@ pre code { } .pager li>a { + border: 0px; transition: background-color 0.1s linear; } diff --git a/theme.toml b/theme.toml index 62ddc78..7d6050c 100644 --- a/theme.toml +++ b/theme.toml @@ -1,7 +1,6 @@ -author = "Keichi Takahashi" -modified_by = "Jakub Filo" +author = "Jakub Filo" description = "Simple and clean blog theme for hugo. Added Adsense functionality, fixed unwanted scrollbar behavior and renamed for my personal use." license = "MIT" name = "planblog" -source_repo = "git@github.com:keichi/vienna.git" +source_repo = "git@github.com:plantroon/planblog.git" tags = ["blog", "tags", "bootstrap"]