Git Product home page Git Product logo

discourse-selfish-seo-layout-changes's Introduction

discourse-selfish-seo-layout-changes

This simple Discourse plugin makes a few "selfish" changes to the Discourse layout.

Discourse Layout Changes

layouts/_head.html.erb

  • Removes canonical meta link (because we want Google to decide canonical since we migrated topics over from the legacy site)
  • Removes generator meta link (because we do not want to show the generator for a number of reasons)

layouts/crawler.html.erb

  • Changes the powered-by link to point to our legacy site instead of Discourse (selfishly).
  • Adds our google-site-verification meta tag

layouts/application.html.erb

  • Changes the powered-by link to point to our legacy site instead of Discourse (selfishly).

meta description content

  • Strips newlines and excessive white space from meta descriptions by monkey patching the TopicsController.

templates/application.hbs

  • Strips out the PWA code in the application (moved to standalone plugin)

TODO

  • Add Discourse site settings to:
    • Turn on and off this plugin.
    • Add custom google-site-verification value.
    • Site settings to enable and disable each layout change.

discourse-selfish-seo-layout-changes's People

Contributors

mandasaka avatar unixneo avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.