Skip to content

Commit f2d4f54

Browse files
authored
Merge pull request #11 from sscargal/site-updates
Add OpenGraph, Facebook, and Twitter metadata fields to the head
2 parents a195837 + 923b8ca commit f2d4f54

File tree

5 files changed

+99
-0
lines changed

5 files changed

+99
-0
lines changed

content/en/_index.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: "MemMachine - The Open-Source Memory Layer for AI Agents"
3+
date: 2024-09-09
4+
description: "MemMachine is the open-source memory layer for advanced AI agents, enabling them to learn, remember, and adapt. Build personalized, context-aware applications that store long-term conversational memory and user preferences."
5+
canonical: "https://memmachine.ai/"
6+
7+
# OpenGraph (Facebook) Metadata
8+
og_title: "MemMachine - The Open-Source Memory Layer for AI Agents"
9+
og_description: "MemMachine is the open-source memory layer for advanced AI agents, enabling them to learn, remember, and adapt. Build personalized, context-aware applications that store long-term conversational memory and user preferences."
10+
og_url: "https://memmachine.ai/"
11+
og_type: "website"
12+
og_site_name: "MemMachine"
13+
og_image: "https://memmachine.ai/img/logo.png"
14+
og_image_alt: "MemMachine AI Logo"
15+
16+
# Twitter Card Metadata
17+
twitter_card: "summary_large_image"
18+
twitter_site: "@memmachineai"
19+
# twitter_title: "MemMachine - Open-Source Memory for AI"
20+
twitter_description: "Build advanced, personalized AI agents that remember. MemMachine is the open-source memory layer that enables long-term memory and learning for any LLM."
21+
twitter_image: "https://memmachine.ai/img/logo.png"
22+
twitter_image_alt: "MemMachine AI Logo"
23+
24+
# Structured Data (JSON-LD)
25+
schema_ld: |
26+
{
27+
"@context": "https://schema.org",
28+
"@type": "Organization",
29+
"name": "MemMachine",
30+
"url": "https://memmachine.ai/",
31+
"logo": "https://memmachine.ai/img/logo.png",
32+
"sameAs": [
33+
"https://github.com/MemMachine/MemMachine",
34+
]
35+
}
36+
---

content/en/blog/_index.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
---
22
title: "Blog"
3+
4+
description: "MemMachine is the open-source memory layer for advanced AI agents, enabling them to learn, remember, and adapt. Build personalized, context-aware applications that store long-term conversational memory and user preferences."
5+
canonical: "https://memmachine.ai/"
6+
7+
# OpenGraph (Facebook) Metadata
8+
og_title: "MemMachine Blogs - The Open-Source Memory Layer for AI Agents"
9+
og_description: "MemMachine is the open-source memory layer for advanced AI agents, enabling them to learn, remember, and adapt. Build personalized, context-aware applications that store long-term conversational memory and user preferences."
10+
og_url: "https://memmachine.ai/"
11+
og_type: "blog"
12+
og_site_name: "MemMachine"
13+
og_image: "https://memmachine.ai/img/logo.png"
14+
og_image_alt: "MemMachine AI Logo"
15+
16+
# Twitter Card Metadata
17+
twitter_card: "summary_large_image"
18+
#twitter_site: "@memmachineai"
19+
twitter_title: "MemMachine Blogs - Open-Source Memory for AI"
20+
twitter_description: "Build advanced, personalized AI agents that remember. MemMachine is the open-source memory layer that enables long-term memory and learning for any LLM."
21+
twitter_image: "https://memmachine.ai/img/logo.png"
22+
twitter_image_alt: "MemMachine AI Logo"
23+
24+
# Structured Data (JSON-LD)
25+
schema_ld: |
26+
{
27+
"@context": "https://schema.org",
28+
"@type": "Organization",
29+
"name": "MemMachine",
30+
"url": "https://memmachine.ai/",
31+
"logo": "https://memmachine.ai/img/logo.png",
32+
"sameAs": [
33+
"https://github.com/MemMachine/MemMachine",
34+
]
35+
}
336
---
437

538
Welcome to the MemMachine blog, your essential resource for building with the next generation of AI memory. Here you'll find product announcements, in-depth technical guides, and news from the forefront of open-source agent development.

hugo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ categories = 'categories'
2929
tags = 'tags'
3030

3131
[params]
32+
description = "MemMachine is an open-source memory layer for advanced AI agents. It enables AI to learn, store, and recall data and preferences from past interactions, creating sophisticated, personalized user profiles."
33+
3234
# Your Google Analytics ID (e.g., "G-XXXXXXXXXX")
3335
googleAnalytics = "G-166982145"
3436

themes/memmachine/layouts/_partials/head.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@
1717
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
1818
{{ partialCached "head/css.html" . }}
1919
{{ partialCached "head/js.html" . }}
20+
<!-- SEO Metadata -->
21+
{{ partial "head/seo-metadata.html" . }}
22+
<!-- Analytics -->
2023
{{ partial "head/analytics.html" . }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
2+
<meta name="robots" content="index, follow">
3+
<link rel="canonical" href="{{ .Permalink }}">
4+
5+
<!-- Open Graph / Facebook -->
6+
<meta property="og:title" content="{{ with .Params.og_title }}{{ . }}{{ else }}{{ with .Title }}{{ . }}{{ end }}{{ end }}">
7+
<meta property="og:description" content="{{ with .Params.og_description }}{{ . }}{{ else }}{{ with .Params.description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
8+
<meta property="og:url" content="{{ .Permalink }}">
9+
<meta property="og:site_name" content="{{ site.Title }}">
10+
<meta property="og:type" content="website">
11+
{{ with .Params.og_image }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
12+
13+
<!-- Twitter -->
14+
<meta name="twitter:card" content="summary_large_image">
15+
<meta name="twitter:site" content="{{ with .Site.Params.twitter_handle }}{{ . }}{{ end }}">
16+
<meta name="twitter:title" content="{{ with .Params.twitter_title }}{{ . }}{{ else }}{{ with .Title }}{{ . }}{{ end }}{{ end }}">
17+
<meta name="twitter:description" content="{{ with .Params.twitter_description }}{{ . }}{{ else }}{{ with .Params.description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
18+
{{ with .Params.twitter_image }}<meta name="twitter:image" content="{{ . | absURL }}">{{ end }}
19+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
20+
21+
{{ if .Params.schema_ld }}
22+
<script type="application/ld+json">
23+
{{ .Params.schema_ld | safeJS }}
24+
</script>
25+
{{ end }}

0 commit comments

Comments
 (0)