Skip to content

Commit

Permalink
remove hacky fix
Browse files Browse the repository at this point in the history
  • Loading branch information
caprinux committed Oct 20, 2024
1 parent 75575b1 commit 370c66d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ params:
- Do wander around our website to see what we do 👐
social: true
socialIcons:
- name: twitter
url: "https://twitter.com/NUSGreyhats"
Expand Down
2 changes: 1 addition & 1 deletion themes/PaperMod/layouts/partials/templates/opengraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
{{ end }}{{ end }}

{{- /* Facebook Page Admin ID for Domain Insights */}}
{{- with site.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}" />{{ end }}
{{- with site.Params.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}" />{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
{{- end }}
<meta name="twitter:title" content="{{ .Title }}"/>
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}"/>
{{ with site.Social.twitter -}}
{{ with site.Params.Social.twitter -}}
<meta name="twitter:site" content="@{{ . }}"/>
{{ end -}}

0 comments on commit 370c66d

Please sign in to comment.