Quellcode durchsuchen

Templates: make HTML more conform to standard for better sharing

Pierre Kancir vor 4 Jahren
Ursprung
Commit
d115e9d541
2 geänderte Dateien mit 21 neuen und 3 gelöschten Zeilen
  1. 2 1
      templates/generate.html
  2. 19 2
      templates/index.html

+ 2 - 1
templates/generate.html

@@ -1,7 +1,8 @@
 <!doctype html>
-<html>
+<html lang="en">
 
 <head>
+    <meta charset="utf-8">
     <title>ArduPilot Custom Firmware Builder</title>
     <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='styles/main.css') }}">
 </head>

+ 19 - 2
templates/index.html

@@ -1,10 +1,27 @@
 <!doctype html>
-
+<html lang="en">
 
 <head>
+    <meta charset="utf-8">
+    <title>ArduPilot Custom Firmware Builder</title>
+    <meta name="description"
+          content="ArduPilot Custom Firmware Builder. It allows to build custom ArduPilot firmware by selecting the wanted features.">
+    <meta name="author" content="ArduPilot Team">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+
+    <!-- OG Meta Tags to improve the way the post looks when you share the page on LinkedIn, Facebook, Google+ -->
+    <meta property="og:site_name" content="ArduPilot"/>
+    <meta property="og:site" content=""/>
+    <meta property="og:title" content="ArduPilot Custom Firmware Builder"/>
+    <meta property="og:description"
+          content="ArduPilot Custom Firmware Builder. It allows to build custom ArduPilot firmware by selecting the wanted features."/>
+    <!-- description shown in the actual shared post -->
+    <meta property="og:type" content="website">
+    <meta property="og:url" content="https://custom.ardupilot.org/">
+    <meta property="og:image" content="https://ardupilot.org/application/files/6315/7552/1962/ArduPilot-Motto.png">
+
     <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='styles/main.css') }}">
     <script type="text/javascript" src="{{ url_for('static', filename='js/CollapsibleLists.js')}}"></script>
-    <title>ArduPilot Custom Firmware Builder</title>
 </head>
 
 <body onload="javascript: reload()">