Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: pages/metadata.md

Issue 29680647: Issue 5329 - Provide a template for social media meta data in website-defaults (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Addressed comments #3 Created Jan. 30, 2018, 8:18 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pages/index.html ('k') | templates/minimal.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pages/metadata.md
===================================================================
new file mode 100644
--- /dev/null
+++ b/pages/metadata.md
@@ -0,0 +1,64 @@
+title=Metadata
+description=Default metadata for eyeo websites
+
+<head>
+ <style>
+ code { font-family: monospace; }
+ </style>
+</head>
+
+# Metadata
+
+Default metadata for eyeo websites
+
+1. [Social metadata](#social)
+
+## Social metadata { #social }
+
+### Local properties
+
+The following page properties can be set on a per page basis:
+
+- `og_url`
+- `og_type`
+- `og_site_name`
+- `og_title`
+- `og_description`
+- `og_image`
+- `og_image_alt`
+- `og_locale`
+- `facebook_id`
+- `twitter_site`
+- `twitter_card`
+- `twitter_image`
+- `twitter_image_alt`
+- `pinterest_id`
+
+### Global properties
+
+Additionally, the following properties can be set to be available for the
+entire site.
+
+#### Site Name
+
+In a `locales/[locale]/site.json` file:
+
+```
+{
+ "name": {
+ "message": "eyeo",
+ "description": "Website title"
+ }
+}
+```
+
+#### Social accounts
+
+In `/settings.ini`:
+
+```
+[social]
+facebook_id = 1234abcd
+pinterest_id = 1234abcd
+twitter = username
+```
« no previous file with comments | « pages/index.html ('k') | templates/minimal.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld