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

akashacms-base

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

akashacms-base - npm Package Compare versions

Comparing version 0.6.3 to 0.6.4

partials/ak_figimg.html.ejs

18

guide/index.html.md

@@ -36,3 +36,3 @@ ---

#### Metadata in page header
## Metadata in page header

@@ -45,3 +45,3 @@ There's a lot of metadata, Open Graph etc, that can be put into the `<head>` section. These tags are useful for customizing the presentation in search engines or on social media websites.

#### Generating link rel= tags in header
## Generating link rel= tags in header

@@ -74,3 +74,3 @@ Header tags of the pattern `<link rel="..." href="..."/>` are used for many purposes. AkashaCMS-Base supports simplified method to generate these tags

#### Generate a canonical URL in header
## Generate a canonical URL in header

@@ -81,3 +81,3 @@ The `canonical` link tag defines the most correct official URL for the page. It's used by search engines to disambiguate pages that might appear under multiple URL's.

#### Show the Publication Date on the page
## Show the Publication Date on the page

@@ -90,3 +90,3 @@ It's often desirable to show the publication date for a page. It's often desirable for the page metadata to include the `publicationDate` for a variety of purposes. For example the `akashacms-blog-podcast` plugin uses the publicationDate to sort content.

#### Promote images with OpenGraph tags
## Promote images with OpenGraph tags

@@ -105,4 +105,12 @@ The the banner image in social media website posts is derived from images listed in OpenGraph tags. We all want our web content to have a good appearance on social media sites. Having a good quality image is key to that goal.

## Promoting a single image for OpenGraph
The previous tag handles promoting multiple images from a given section of a page. If you have a single image to promote, this tag will do the trick.
```
<opengraph-image href="... image href ..."/>
```
# XML Sitemaps
The sitemap will list any file rendered using HTMLRenderer. See https://www.sitemaps.org/index.html for information about XML Sitemaps.

@@ -293,2 +293,22 @@ /**

class OpenGraphImage extends mahabhuta.Munger {
get selector() { return "html body opengraph-image"; }
process($, $link, metadata, dirty) {
return co(function* () {
const href = $link.attr('href');
if ($(`meta[content="${href}"]`).get(0) === undefined) {
let txt = yield akasha.partial(metadata.config, 'ak_metatag.html.ejs', {
tagname: 'og:image',
tagcontent: href
});
if (txt) {
$('head').append(txt);
}
}
$link.remove();
});
}
}
module.exports.mahabhuta.addMahafunc(new OpenGraphImage());
class OpenGraphPromoteImages extends mahabhuta.Munger {

@@ -295,0 +315,0 @@ get selector() { return "html head open-graph-promote-images"; }

@@ -29,3 +29,3 @@ {

},
"version": "0.6.3",
"version": "0.6.4",
"engines": {

@@ -32,0 +32,0 @@ "node": ">=6.1"

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