athul / archie

A minimal Hugo Theme
https://athul.github.io/archie
MIT License
975 stars 301 forks source link

No social icons? #39

Closed BuyMyMojo closed 2 years ago

BuyMyMojo commented 2 years ago

For some reason the social icons aren't appearing

Page: https://buymymojo.gitlab.io/buymymojo-hugo/

config:

baseurl = "https://buymymojo.gitlab.io/buymymojo-hugo/"
contentdir    = "content"
layoutdir     = "layouts"
publishdir    = "public"
title = "BuyMyMojo"
copyright = "© BuyMyMojo"

DefaultContentLanguage = "en-us"
theme = "archie"
metaDataFormat = "yaml"

pygmentsstyle = "monokai"
pygmentscodefences = true
pygmentscodefencesguesssyntax = true

enableEmoji = true
enableRobotsTXT = true

paginate=2

[Author]
name = "Owen Quinlan"
email = "hello@buymymojo.net"
gitlab = "BuyMyMojo"
github = "BuyMyMojo"
linkedin = "owen-quinlan-b6b6431b7"
keybase = "bmmojo"

[sitemap]
    changefreq = 'daily'
    filename = 'sitemap.xml'
    priority = 0.5

[Params]
    mode="dark" # color-mode → light,dark,toggle or auto
    useCDN=false # don't use CDNs for fonts and icons, instead serve them locally.
    subtitle = "Mojos for the masses" # This sub title was generated by github copilot lmao
    logo = "img/avatar-icon.png"
    favicon = "img/favicon.ico"
    dateFormat = "January 2, 2006"

[[params.social]]
name = "GitHub"
icon = "github"
url = "https://github.com/BuyMyMojo/"

[[params.social]]
name = "Twitter"
icon = "twitter"
url = "https://twitter.com/OwenQuinlan7/"

[[params.social]]
name = "GitLab"
icon = "gitlab"
url = "https://gitlab.com/BuyMyMojo/"

[[menu.main]]
name = "Home"
url = "/"
weight = 1

[[menu.main]]
name = "All posts"
url = "/posts"
weight = 2

[[menu.main]]
name = "About"
url = "page/about/"
weight = 3

[[menu.main]]
name = "Tags"
url = "tags"
weight = 4
A-d-r-i commented 2 years ago

I had the same problem and found the solution:

[Params]
useCDN=true # don't use CDNs for fonts and icons, instead serve them locally.

Icons must be loaded from a remote source.

BuyMyMojo commented 2 years ago

I had the same problem and found the solution:

[Params]
useCDN=true # don't use CDNs for fonts and icons, instead serve them locally.

Icons must be loaded from a remote source.

enabling CDN hasn't fixed the issue for me. there is still no sign of the icons in the corner for some reason

BuyMyMojo commented 2 years ago

not missing images, just straight up no code for it appearing in the footer

bill3tt commented 2 years ago

setting useCDN=true fixed the missing icons for me

BuyMyMojo commented 2 years ago

I eventually fixed it but i don't know what example fixed it, I put capitals in the Params.Social section and indented the settings and it seems to work now but I'm not so sure. here is my current working setup:

baseurl = "https://wip.buymymojo.net/"
publishdir    = "public"
title = "BuyMyMojo"
copyright = "© BuyMyMojo"

languageCode = "eng"
theme = "archie"
metaDataFormat = "yaml"

canonifyURLs = true

pygmentsstyle = "monokai"
pygmentscodefences = true
pygmentscodefencesguesssyntax = true

enableEmoji = true # https://www.webfx.com/tools/emoji-cheat-sheet/
enableRobotsTXT = true

paginate=4

[Author]
name = "Owen Quinlan"
email = "hello@buymymojo.net"
gitlab = "BuyMyMojo"
github = "BuyMyMojo"
linkedin = "owen-quinlan-b6b6431b7"
keybase = "bmmojo"

[sitemap]
    changefreq = 'daily'
    filename = 'sitemap.xml'
    priority = 0.5

[Params]
    og_image = "https://wip.buymymojo.net/img/og-image.png"
        mode="dark"
        useCDN=true # don't use CDNs for fonts and icons, instead serve them locally.
    comments=false
    subtitle = "Mojos for the masses" # This sub title was generated by github copilot lmao
    logo = "android-chrome-512x512.png"
    favicon = "img/favicon.ico"

[[Params.Social]]
    name = "GitHub"
    icon = "github"
    url = "https://github.com/BuyMyMojo/"

[[Params.Social]]
    name = "Mastodon"
    icon = "radio"
    url = "https://mstdn.social/@BuyMyMojo"

[[Params.Social]]
    name = "Linux Mastodon"
    icon = "radio"
    url = "https://social.linux.pizza/@BuyMyMojo"

[[Params.Social]]
    name = "Tabletop Mastodon"
    icon = "radio"
    url = "https://tabletop.social/@BuyMyMojo"

[[Params.Social]]
    name = "Twitter"
    icon = "twitter"
    url = "https://twitter.com/OwenQuinlan7/"

[[Params.Social]]
    name = "GitLab"
    icon = "gitlab"
    url = "https://gitlab.com/BuyMyMojo/"

[permalinks]
  posts = "/posts/:year/:month/:day/:title/"
  tags = "/tags/:title/"

[[menu.main]]
name = "home"
url = "/"
weight = 1

[[menu.main]]
name = "all posts"
title = "All Posts"
url = "/posts"
weight = 2

[[menu.main]]
name = "tags"
title = "Tags"
url = "/tags"
weight = 3

[[menu.main]]
name = "about"
title = "About"
url = "/posts/2021/12/09/about-me/"
weight = 4