Browse Source

Add about text to sidebar

master
Trevor Slocum 2 years ago
parent
commit
9e65f0ab57
  1. 15
      config.toml
  2. 2
      content/donate/_index.md
  3. 7
      layouts/partials/widgets/about.html
  4. 90
      layouts/partials/widgets/social.html

15
config.toml

@ -31,12 +31,17 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id @@ -31,12 +31,17 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
customCSS = ["css/custom.css"] # Include custom CSS files
customJS = ["js/custom.js"] # Include custom JS files
#[Params.logo]
# image = "https://www.gravatar.com/avatar/5e7cc07a69488c7110d8a4f6df94c1b7?s=200" # Logo image. Path relative to "static"
# title = "Rocket Nine Labs" # Logo title, otherwise will use site title
# subtitle = "Trevor Slocum, Developer" # Logo subtitle
[Params.sidebar]
home = "right" # Configure layout for home page
list = false # Configure layout for list pages
single = false # Configure layout for single pages
# Enable widgets in given order
widgets = ["social", "recent"]
widgets = ["social", "about"]
[Params.widgets]
recent_num = 5 # Set the number of articles in the "Recent articles" widget
@ -56,13 +61,17 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id @@ -56,13 +61,17 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
# Custom social links
[[Params.widgets.social.custom]]
title = "GitLab"
title = "GitLab profile"
url = "https://gitlab.com/tslocum"
[[Params.widgets.social.custom]]
title = "GitHub"
title = "GitHub profile"
url = "https://github.com/tslocum"
[[Params.widgets.social.custom]]
title = "Résumé"
url = "https://tslocum.github.io/resume"
[[menu.main]]
name = "Home"
weight = -110

2
content/donate/_index.md

@ -9,3 +9,5 @@ paginate: 0 @@ -9,3 +9,5 @@ paginate: 0
---
Please consider donating via [LiberaPay](https://liberapay.com/rocketnine.space).
<a href="https://liberapay.com/rocketnine.space" target="_blank"><img alt="Donate" src="https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay"></a>

7
layouts/partials/widgets/about.html

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
<div class="widget">
<!--<h4 class="widget__title">About Trevor</h4>-->
<div class="widget__content">
<div style="margin-bottom: 33px;">Trevor is a software developer and system administrator seeking short and long-term work.</div>
<a href="https://secure.gravatar.com/avatar/5e7cc07a69488c7110d8a4f6df94c1b7?size=1080" target="_blank"><img alt="Avatar" src="https://www.gravatar.com/avatar/5e7cc07a69488c7110d8a4f6df94c1b7?s=540" style="width: 100%;"></a>
</div>
</div>

90
layouts/partials/widgets/social.html

@ -0,0 +1,90 @@ @@ -0,0 +1,90 @@
{{- if .Site.Params.widgets.social }}
<div class="widget-social widget">
<!--<h4 class="widget-social__title widget__title">{{ T "social_title" }}</h4>-->
<div class="widget-social__content widget__content">
{{- with .Site.Params.widgets.social.facebook }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Facebook" rel="noopener noreferrer" href="https://facebook.com/{{ . }}" target="_blank">
{{ partial "svg/facebook.svg" (dict "class" "widget-social__link-icon") }}
<span>Facebook</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.twitter }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Twitter" rel="noopener noreferrer" href="https://twitter.com/{{ . }}" target="_blank">
{{ partial "svg/twitter.svg" (dict "class" "widget-social__link-icon") }}
<span>Twitter</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.instagram }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Instagram" rel="noopener noreferrer" href="https://www.instagram.com/{{ . }}" target="_blank">
{{ partial "svg/instagram.svg" (dict "class" "widget-social__link-icon") }}
<span>Instagram</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.linkedin }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="LinkedIn" rel="noopener noreferrer" href="https://linkedin.com/in/{{ . }}" target="_blank">
{{ partial "svg/linkedin.svg" (dict "class" "widget-social__link-icon") }}
<span>LinkedIn</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.telegram }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Telegram" rel="noopener noreferrer" href="https://t.me/{{ . }}" target="_blank">
{{ partial "svg/telegram.svg" (dict "class" "widget-social__link-icon") }}
<span>Telegram</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.github }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="GitHub" rel="noopener noreferrer" href="https://github.com/{{ . }}" target="_blank">
{{ partial "svg/github.svg" (dict "class" "widget-social__link-icon") }}
<span>GitHub</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.gitlab }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="GitLab" rel="noopener noreferrer" href="https://gitlab.com/{{ . }}" target="_blank">
{{ partial "svg/gitlab.svg" (dict "class" "widget-social__link-icon") }}
<span>GitLab</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.bitbucket }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Bitbucket" rel="noopener noreferrer" href="https://bitbucket.org/{{ . }}" target="_blank">
{{ partial "svg/bitbucket.svg" (dict "class" "widget-social__link-icon") }}
<span>Bitbucket</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.email }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Email" href="mailto:{{ . }}">
{{ partial "svg/email.svg" (dict "class" "widget-social__link-icon") }}
<span>{{ . }}</span>
</a>
</div>
{{- end }}
{{ range .Site.Params.widgets.social.custom }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="{{ .title }}" rel="noopener noreferrer" href="{{ .url }}" target="_blank">
{{- if .icon }}
{{ partial .icon (dict "class" "widget-social__link-icon") }}
{{- end }}
<span>{{ .title }}</span>
</a>
</div>
{{ end }}
</div>
</div>
{{- end }}
Loading…
Cancel
Save