Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Themes? #71

Open
Thorium opened this issue Jun 9, 2020 · 5 comments
Open

Themes? #71

Thorium opened this issue Jun 9, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@Thorium
Copy link

Thorium commented Jun 9, 2020

One thing that made Jekyll (and then Hugo) so popular was that you could just get a theme from a website, and there are lot of themes available: https://themes.gohugo.io/

I select a theme meant for a blog, I get out-of-the-box:

  • Rss and sitemap generators
  • Google analytics component
  • Disqus component
  • Sidebar menu component
  • SEO-optimised site (e.g. meta-header-tags, social media share tags, etc.)

The reason people sharing these is, that the static site (/blog) is not core business (/subject of the main interest for the user). For example, Google Analytics script is same for everyone and if Google changes the script version, then who actually wants to maintain that by themselves...

What is the goal of Fornax, will it be an alternative for HUGO?
How does it help users to share these kind of higher-abstraction components like themes?

@drewknab
Copy link
Contributor

I briefly mentioned something like that in #67. It seems like themes would be the next logical step? Although I'm not sure what that looks like. I suppose it would just be a package of loaders/generators/js/style?

To your other point, I think alternative is right? The thing that brought me to Fornax, other than being F#, is that it encourages fiddling around with the guts of the project in a way that Hugo or Gatsby don't. However, it's fair that building your own artisanal loaders and generators isn't necessarily a huge draw in a general audience.

@drewknab
Copy link
Contributor

drewknab commented Aug 28, 2020

I started looking into this and I'm 60% into implementing something like:

  1. Check for --template flag
    1. If --template determine whether value is a URL or not
      • If URL git clone etc
      • If not, handle as a local folder
        • Relative to current working directory?

Thoughts on that?

@Thorium
Copy link
Author

Thorium commented Aug 28, 2020

Sound typical. If I remember correctly e.g. SwaggerProvider has a small code block that does that.

@Thorium
Copy link
Author

Thorium commented Mar 14, 2024

For the last bullet point, I'd expect some default meta-tags, for example:

<head>
<!-- ... current rels plus ... -->
<meta name="description" content="This is a blog for blah blah.">
<!-- OGs are for social media sharing previews -->
<meta property="og:site_name" content="My.Blog">
<meta property="og:image" content="http://ionide.io/FSharp.Analyzers.SDK/images/logo.png">
<meta property="og:image:secure_url" content="https://ionide.io/FSharp.Analyzers.SDK/images/logo.png">
<!-- match Twitter option with Some 
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@fsharp_analysers">
<meta name="twitter:image" content="http://ionide.io/FSharp.Analyzers.SDK/images/logo.png">
-->
<!-- This would be for your mother's phone: -->
<!--link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://ionide.com/apple-touch-icon-144-precomposed.png"-->
</head>

@rdipardo
Copy link
Contributor

@Thorium

I'd expect some default meta-tags [...]

This may not be what you're looking for, but here's a plugin that generates OpenGraph meta tags and JSON-LD: https://www.nuget.org/packages/Fornax.Seo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants