All Projects → msfjarvis → Hugo Social Metadata

msfjarvis / Hugo Social Metadata

Licence: mit
Hugo theme component to add social metadata to your Hugo site with minimal configuration

Labels

Projects that are alternatives of or similar to Hugo Social Metadata

Reveal Hugo
📽️ Create rich HTML-based presentations with Hugo and Reveal.js
Stars: ✭ 381 (+2141.18%)
Mutual labels:  hugo
Hugo Paper
🥛 A simple, clean, flexible Hugo theme
Stars: ✭ 538 (+3064.71%)
Mutual labels:  hugo
Wowchemy Hugo Modules
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, build with widgets! 创建在线课程,学术简历或初创网站。
Stars: ✭ 6,093 (+35741.18%)
Mutual labels:  hugo
Hugo Theme Zzo
Make a blog with hugo zzo theme!
Stars: ✭ 438 (+2476.47%)
Mutual labels:  hugo
Hugo Theme Meme
You can’t spell aWEsoME without MEME! 😝
Stars: ✭ 459 (+2600%)
Mutual labels:  hugo
Ox Hugo
A carefully crafted Org exporter back-end for Hugo
Stars: ✭ 591 (+3376.47%)
Mutual labels:  hugo
Kube
Kube is a professional and a responsive Hugo theme for developers and designers that offers a documentation section mixed with a landing page and a blog.
Stars: ✭ 349 (+1952.94%)
Mutual labels:  hugo
Hugo Theme Stack
Card-style Hugo theme designed for bloggers
Stars: ✭ 720 (+4135.29%)
Mutual labels:  hugo
Mainroad
Responsive, simple, clean and content-focused Hugo theme based on the MH Magazine lite WordPress theme
Stars: ✭ 509 (+2894.12%)
Mutual labels:  hugo
Hugodocs
The source for https://gohugo.io/
Stars: ✭ 637 (+3647.06%)
Mutual labels:  hugo
Hugo Theme Introduction
Minimal, single page, smooth-scrolling theme for Hugo static site generator.
Stars: ✭ 441 (+2494.12%)
Mutual labels:  hugo
Disqusjs
💬 Render Disqus comments in Mainland China using Disqus API
Stars: ✭ 455 (+2576.47%)
Mutual labels:  hugo
Actions Hugo
GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended, Hugo Modules, Linux (Ubuntu), macOS, and Windows are supported.
Stars: ✭ 588 (+3358.82%)
Mutual labels:  hugo
Hugo Nuo
🎨 A responsive light & clean hugo theme for blogger.
Stars: ✭ 405 (+2282.35%)
Mutual labels:  hugo
Hugo Theme Jane
A readable & concise theme for Hugo
Stars: ✭ 669 (+3835.29%)
Mutual labels:  hugo
Hugo Xmin
eXtremely Minimal Hugo theme: about 150 lines of code in total, including HTML and CSS (with no dependencies)
Stars: ✭ 351 (+1964.71%)
Mutual labels:  hugo
Hugo Theme Hello Friend
Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
Stars: ✭ 586 (+3347.06%)
Mutual labels:  hugo
Hugo Theme Terminal
A simple, retro theme for Hugo
Stars: ✭ 832 (+4794.12%)
Mutual labels:  hugo
Hugo Tranquilpeak Theme
A gorgeous responsive theme for Hugo blog framework
Stars: ✭ 686 (+3935.29%)
Mutual labels:  hugo
Website
Let's Encrypt Website and Documentation
Stars: ✭ 629 (+3600%)
Mutual labels:  hugo

hugo-social-metadata

About

This is a Hugo theme component that automatically generates metadata complying to The Open Graph Protocol as well as Twitter Cards. This is NOT a standalone theme and must not be treated as such.

Usage

  1. Add the hugo-social-metadata repository as a submodule to be able to get upstream changes later git submodule add https://github.com/msfjarvis/hugo-social-metadata.git themes/hugo-social-metadata

  2. Start off by configuring a few things in your config.toml (or equivalent file depending on whether you use YAML or JSON). These will be picked up by the theme component and used to provide metadata for the site.

[params]
  description = "A description for your awesome website goes here"
  keywords = "some, keywords, that, describe, your, content"
  twitterUsername = "@your_twitter_username"
  socialImage = "path/to/the/twitter/card/image"
  1. Include the hugo-social-metadata theme as the leftmost element of the theme list variable in your config file. For config.toml, it will look something like this:
theme = ["hugo-social-metadata", "hyde"]
  1. Include the social_metadata.html partial in your head.html like so: {{ partial "social_metadata.html" . }}.

Additional customizations

You can customize some of the generated metadata on a per-page basis. Setting description, socialImage or tags in the frontmatter will override the defaults loaded from the main config file.

+++
description = "A nice description for this blogpost"
socialImage = "path/to/an/image/that/describes/this/post/best"
tags = ["this", "blog", "rocks!"]
+++

License

Check out the LICENSE file in the root of this repository.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].