Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes several deprecated items in the them aligned to Hugo version 0.139 #132

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ author = "Your name"
# Shown in the side menu
copyright = "© 2016. All rights reserved."
canonifyurls = true
paginate = 10

[pagination]
pagerSize = 10

[indexes]
tag = "tags"
Expand Down Expand Up @@ -124,7 +126,7 @@ paginate = 10
weight = 4
url = "/contact/"

[social]
[params.social]
# Link your social networking accounts to the side menu
# by entering your username or ID.

Expand Down
6 changes: 4 additions & 2 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ theme = "blackburn"
author = "Yoshiharu Yamashita"
copyright = "© 2016. All rights reserved."
canonifyurls = true
paginate = 10

[pagination]
pagerSize = 10

[indexes]
tag = "tags"
Expand Down Expand Up @@ -47,7 +49,7 @@ paginate = 10
weight = 4
url = "/contact/"

[social]
[params.social]
# Link your social networking accouns to the side menu
# by entering your username or ID.
twitter="*"
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/prev_next_post.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if or (.NextPage) (.PrevPage) }}
{{ if or (.Next) (.Prev) }}
<div class="prev-next-post pure-g">
<div class="pure-u-1-24" style="text-align: left;">
{{ if .PrevInSection }}
Expand Down
54 changes: 27 additions & 27 deletions layouts/partials/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,177 +10,177 @@

<!-- SNS microblogging -->

{{ with .Site.Social.twitter }}
{{ with .Site.Params.Social.twitter }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://twitter.com/{{ . }}" rel="me" target="_blank"><i class="fab fa-twitter-square fa-fw"></i>Twitter</a>
</li>
{{ end }}

{{ with .Site.Social.gnusocial }}
{{ with .Site.Params.Social.gnusocial }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="{{ . }}" rel="me" target="_blank"><i class="fas fa-comment fa-fw"></i>GNU social</a>
</li>
{{ end }}

{{ with .Site.Social.facebook }}
{{ with .Site.Params.Social.facebook }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://facebook.com/{{ . }}" rel="me" target="_blank"><i class="fab fa-facebook-square fa-fw"></i>Facebook</a>
</li>
{{ end }}

{{ with .Site.Social.weibo }}
{{ with .Site.Params.Social.weibo }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="http://weibo.com/{{ . }}" rel="me" target="_blank"><i class="fab fa-weibo fa-fw"></i>Weibo</a>
</li>
{{ end }}

{{ with .Site.Social.tumblr }}
{{ with .Site.Params.Social.tumblr }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://{{ . }}.tumblr.com/" rel="me" target="_blank"><i class="fab fa-tumblr-square fa-fw"></i>Tumblr</a>
</li>
{{ end }}

<!-- SNS photo/video sharing -->

{{ with .Site.Social.instagram }}
{{ with .Site.Params.Social.instagram }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://instagram.com/{{ . }}" rel="me" target="_blank"><i class="fab fa-instagram fa-fw"></i>Instagram</a>
</li>
{{ end }}

{{ with .Site.Social.flickr }}
{{ with .Site.Params.Social.flickr }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://flickr.com/photos/{{ . }}" rel="me" target="_blank"><i class="fab fa-flickr fa-fw"></i>Flickr</a>
</li>
{{ end }}

{{ with .Site.Social.photo500px }}
{{ with .Site.Params.Social.photo500px }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://500px.com/{{ . }}" rel="me" target="_blank"><i class="fab fa-500px fa-fw"></i>500px</a>
</li>
{{ end }}

{{ with .Site.Social.pinterest }}
{{ with .Site.Params.Social.pinterest }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://pinterest.com/{{ . }}" rel="me" target="_blank"><i class="fab fa-pinterest-square fa-fw"></i>Pinterest</a>
</li>
{{ end }}

{{ with .Site.Social.youtube }}
{{ with .Site.Params.Social.youtube }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://youtube.com/user/{{ . }}" rel="me" target="_blank"><i class="fab fa-youtube-square fa-fw"></i>YouTube</a>
</li>
{{ end }}

{{ with .Site.Social.vimeo }}
{{ with .Site.Params.Social.vimeo }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://vimeo.com/{{ . }}" rel="me" target="_blank"><i class="fab fa-vimeo-square fa-fw"></i>Vimeo</a>
</li>
{{ end }}

{{ with .Site.Social.vine }}
{{ with .Site.Params.Social.vine }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://vine.co/{{ . }}" rel="me" target="_blank"><i class="fab fa-vine fa-fw"></i>Vine</a>
</li>
{{ end }}

{{ with .Site.Social.slideshare }}
{{ with .Site.Params.Social.slideshare }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="http://slideshare.net/{{ . }}" rel="me" target="_blank"><i class="fab fa-slideshare fa-fw"></i>SlideShare</a>
</li>
{{ end }}

<!-- SNS career oriented -->

{{ with .Site.Social.linkedin }}
{{ with .Site.Params.Social.linkedin }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://linkedin.com/in/{{ . }}" rel="me" target="_blank"><i class="fab fa-linkedin fa-fw"></i>LinkedIn</a>
</li>
{{ end }}

{{ with .Site.Social.xing }}
{{ with .Site.Params.Social.xing }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://xing.com/profile/{{ . }}" rel="me" target="_blank"><i class="fab fa-xing-square fa-fw"></i>Xing</a>
</li>
{{ end }}

<!-- SNS news -->

{{ with .Site.Social.reddit }}
{{ with .Site.Params.Social.reddit }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://reddit.com/user/{{ . }}" rel="me" target="_blank"><i class="fab fa-reddit-square fa-fw"></i>Reddit</a>
</li>
{{ end }}

{{ with .Site.Social.hackernews }}
{{ with .Site.Params.Social.hackernews }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://news.ycombinator.com/user?id={{ . }}" rel="me" target="_blank"><i class="fab fa-hacker-news fa-fw"></i>Hacker News</a>
</li>
{{ end }}

<!-- Techie -->

{{ with .Site.Social.github }}
{{ with .Site.Params.Social.github }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://github.com/{{ . }}" rel="me" target="_blank"><i class="fab fa-github-square fa-fw"></i>GitHub</a>
</li>
{{ end }}

{{ with .Site.Social.gitlab }}
{{ with .Site.Params.Social.gitlab }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://gitlab.com/{{ . }}" rel="me" target="_blank"><i class="fab fa-gitlab fa-fw"></i>GitLab</a>
</li>
{{ end }}

{{ with .Site.Social.bitbucket }}
{{ with .Site.Params.Social.bitbucket }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://bitbucket.org/{{ . }}" rel="me" target="_blank"><i class="fab fa-bitbucket fa-fw"></i>Bitbucket</a>
</li>
{{ end }}

{{ with .Site.Social.stackoverflow }}
{{ with .Site.Params.Social.stackoverflow }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://stackoverflow.com/users/{{ . }}" rel="me" target="_blank"><i class="fab fa-stack-overflow fa-fw"></i>Stack Overflow</a>
</li>
{{ end }}

{{ with .Site.Social.serverfault }}
{{ with .Site.Params.Social.serverfault }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://serverfault.com/users/{{ . }}" rel="me" target="_blank"><i class="fab fa-server fa-fw"></i>Server Fault</a>
</li>
{{ end }}

<!-- Gaming -->

{{ with .Site.Social.steam }}
{{ with .Site.Params.Social.steam }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://steamcommunity.com/id/{{ . }}" rel="me" target="_blank"><i class="fab fa-steam-square fa-fw"></i>Steam</a>
</li>
{{ end }}

{{ with .Site.Social.mobygames }}
{{ with .Site.Params.Social.mobygames }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://www.mobygames.com/developer/sheet/view/developerId,{{ . }}" rel="me" target="_blank"><i class="fas fa-gamepad fa-fw"></i>MobyGames</a>
</li>
{{ end }}

<!-- Music -->

{{ with .Site.Social.lastfm }}
{{ with .Site.Params.Social.lastfm }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="http://last.fm/user/{{ . }}" rel="me" target="_blank"><i class="fab fa-lastfm-square fa-fw"></i>Last.fm</a>
</li>
{{ end }}

{{ with .Site.Social.discogs }}
{{ with .Site.Params.Social.discogs }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://www.discogs.com/user/{{ . }}" rel="me" target="_blank"><i class="fab fa-music fa-fw"></i>Discogs</a>
</li>
{{ end }}

<!-- Other -->

{{ with .Site.Social.keybase }}
{{ with .Site.Params.Social.keybase }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="https://keybase.io/{{ . }}" rel="me" target="_blank"><i class="fas fa-key fa-fw"></i>Keybase</a>
</li>
Expand Down