Skip to content

Commit

Permalink
Add medium link to footer (#8)
Browse files Browse the repository at this point in the history
* Add medium link to footer
* Add medium to README and config.toml
  • Loading branch information
kavehmz authored and aos committed Mar 3, 2018
1 parent 06fe6c2 commit 0f74d74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -76,6 +76,7 @@ copyright = "(c) 2008 - 2014"
email = "your@email.com"
gaid = "Your Google Analytics ID"
twitter = "twitterID"
medium = "mediumUsername"
```

There is also a fixed `About` page on the navbar. Create it using:
Expand Down
1 change: 1 addition & 0 deletions exampleSite/config.toml
Expand Up @@ -26,3 +26,4 @@ copyright = "(c) 2017 - 2018 Aos Dabbagh -- All rights reserved."
email = "your@email.com"
gaid = "Your Google Analytics ID"
twitter = "twitterID"
medium = "mediumUsername"
6 changes: 6 additions & 0 deletions layouts/partials/footer.html
Expand Up @@ -26,6 +26,12 @@
</li>
{{ end }}

{{ if .Site.Author.medium }}
<li class="pure-menu-item">
<a href="https://medium.com/@{{ .Site.Author.medium }}" class="pure-menu-link">Medium</a>
</li>
{{ end }}

</ul>
<a href="#" class="pure-menu-link pull-right" id="gototop-btn">↑↑</a>
<a href="{{ .RSSLink }}" class="pure-menu-link pull-right">RSS</a>
Expand Down

0 comments on commit 0f74d74

Please sign in to comment.