Skip to content

Commit

Permalink
ref(social)!: Move hide name to social settings
Browse files Browse the repository at this point in the history
Move hideSocialName settings to social section
  • Loading branch information
coolapso committed Jun 6, 2024
1 parent 7ae282b commit 794e4c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exampleSite/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ params:
# promptSimbols: ":~$"
# promptSimbolsColor: grey
# startxLocation: https://example.com
# hideSocialName: true
# useLess: true
exitLocation: 'about:blank'
source: true
Expand All @@ -36,6 +35,7 @@ params:
social:
# settings:
# useLess: true
# hideName: true
details:
## IF you want to keep them aligned just add spaces
- name: "github"
Expand Down
3 changes: 1 addition & 2 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@
];

var social = [
// TODO: Move this setting to the social settings
{{ if .Site.Params.hideSocialName }}
{{ if .Site.Params.social.settings.hideName }}
{{ with .Site.Params.social.details }}
{{ range . }}
'{{ .url }}',
Expand Down

0 comments on commit 794e4c8

Please sign in to comment.