Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/thenewdynamic/hugo-component-tnd-seo

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/thenewdynamic/hugo-component-tnd-seo

  • v2.5.1+incompatible
  • Source
  • Go
  • Socket score

Version published
Created
Source

TND SEO

Requirements

HUGO 0.54.0 and above.

Install

git submodule add https://github.com/theNewDynamic/hugo-component-tnd-seo.git components/tnd-seo/

WARNING: Make sure the directory for the component is in your theme directory as tnd-seo

Drop the following where appropriate

{{ if templates.Exists "partials/tnd-seo/print.html" }}
  {{ partial "tnd-seo/print.html" . }}
{{ end }}

The above partials, will look for content information and build an Data object to be printed in SEO tags (og, twitter card etc...). If you need to alternate the data model, you can do so by adding ot your project a layouts/partials/tnd-seo/extend.html partial and add to it as explained here.

Options

Options live in an seo object in your site params.

params:
  seo:
    # overides .Site.Title
    site_name: MyWebsite 
    # Used for articles without images
    default_image: "/images/default.jpg"
    # if true will use the SEO data object to output an json+ld script tag.
    jsonld: true
    # if true will display a human readable overlay on everypage to monitor SEO data object (only if dev != production)
    debug: true

Front Matter

The following can be overriden just for SEO within the Front Matter:

---
title: What a post
description: That's dull!
seo:
  image: /uploads/way-better-that-this-post-featured.png
  description: Content marketing 101

TODOS

  • Allow title override from Front Matter
  • Isolate title tag from og, twitter tag.

FAQs

Package last updated on 14 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc