Search Engines: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
(Best Practices for Geometa Lab Webpages)
(Best Practices for Geometa Lab Webpages)
Zeile 15: Zeile 15:
 
These are notes about design guidelines, search enginge optimization (SEO) and best practices (Javascript) for webpages at Geometa Lab.
 
These are notes about design guidelines, search enginge optimization (SEO) and best practices (Javascript) for webpages at Geometa Lab.
  
Design Guidelines:
+
== Design Guidelines: ==
 +
 
 
* For page elements use the “official” HSR Colours found here: https://www.hsr.ch/Farben.7715.0.html
 
* For page elements use the “official” HSR Colours found here: https://www.hsr.ch/Farben.7715.0.html
 
* Is a HSR logo in the header of the page it should link to http://www.hsr.ch/Informatik.1155.0.html
 
* Is a HSR logo in the header of the page it should link to http://www.hsr.ch/Informatik.1155.0.html
* Generally use following font family: <pre>"Helvetica Neue", Arial, Helvetica, sans-serif;</pre>
+
* Generally use following font family:  
HTML and CSS:  
+
<pre>"Helvetica Neue", Arial, Helvetica, sans-serif;</pre>
* ...
+
 
 +
== HTML and CSS ==
 +
 
 +
Header elements:
 +
* Favicon (png can have any name), icon that will be displayed in the browser tabs:
 +
<pre><link rel="icon" type="image/png" href="favicon.png"/></pre>
 +
* Sometimes a current IE version is installed, but system settings force it to use legacy document modes. Add following line to your head to make IE use the most current available mode:
 +
<pre><meta http-equiv="X-UA-Compatible" content="IE=edge"></pre>
 +
* With a manifest file you can add properties to your page when it gets “installed” using Chrome on Android, for example a custom home screen icon or displaying the page in full screen mode.
 +
<pre><link rel="manifest" href="manifest.json"></pre>
 +
* manifest.json example:
 +
<pre>{
 +
  "short_name": "MyPage",
 +
  "name": "My amazing page",
 +
 
 +
  "icons": [
 +
    {
 +
      "src": "favicon.png",
 +
      "sizes": "144x144",
 +
      "type": "image/png"
 +
    }
 +
    ],
 +
 
 +
  "start_url": "index.html",
 +
  "display": "standalone"
 +
}</pre>
 +
 
 +
 
 +
Metadata for social media pages:
 +
 
 +
The following examples add site specific metadata for various social media pages. The images should be high resolution screenshots of the current page, they will be displayed under posts where your page is mentioned.
 +
* Open Graph protocol (Facebook etc.)
 +
<pre><meta property="og:image" content="images/facebook_share.png"/>
 +
<meta property="og:title" content="Do stuff with My App"/>
 +
<meta property="og:url" content="http://MyApp.com/"/>
 +
<meta property="og:site_name" content="My App"/>
 +
<meta property="og:type" content="website"/></pre>
 +
* Twitter
 +
<pre><meta name="twitter:card" content="summary_large_image">
 +
<meta name="twitter:title" content="Do stuff with My App">
 +
<meta name="twitter:description" content="You can do lots of fun things with My App">
 +
<meta name="twitter:image" content="images/twitter-share-image.jpg">
 +
<meta name=”twitter:creator" content="@MyTwitterHandle"></pre>
 +
 
 +
* Don’t use float and fixed pixel numbers for the layout. Most layout problems (including responsive design) can be solved using flexbox. See http://www.w3.org/TR/css-flexbox-1/ for more information.

Version vom 21. Dezember 2015, 16:50 Uhr

Specific Search Enginges:

Geodata Search Engines and directories:

History:

Best Practices for Geometa Lab Webpages

These are notes about design guidelines, search enginge optimization (SEO) and best practices (Javascript) for webpages at Geometa Lab.

Design Guidelines:

"Helvetica Neue", Arial, Helvetica, sans-serif;

HTML and CSS

Header elements:

  • Favicon (png can have any name), icon that will be displayed in the browser tabs:
<link rel="icon" type="image/png" href="favicon.png"/>
  • Sometimes a current IE version is installed, but system settings force it to use legacy document modes. Add following line to your head to make IE use the most current available mode:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
  • With a manifest file you can add properties to your page when it gets “installed” using Chrome on Android, for example a custom home screen icon or displaying the page in full screen mode.
<link rel="manifest" href="manifest.json">
  • manifest.json example:
{
  "short_name": "MyPage",
  "name": "My amazing page",

  "icons": [
    {
      "src": "favicon.png",
      "sizes": "144x144",
      "type": "image/png"
    }
    ],

  "start_url": "index.html",
  "display": "standalone"
}


Metadata for social media pages:

The following examples add site specific metadata for various social media pages. The images should be high resolution screenshots of the current page, they will be displayed under posts where your page is mentioned.

  • Open Graph protocol (Facebook etc.)
<meta property="og:image" content="images/facebook_share.png"/>
<meta property="og:title" content="Do stuff with My App"/>
<meta property="og:url" content="http://MyApp.com/"/>
<meta property="og:site_name" content="My App"/>
<meta property="og:type" content="website"/>
  • Twitter
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Do stuff with My App">
<meta name="twitter:description" content="You can do lots of fun things with My App">
<meta name="twitter:image" content="images/twitter-share-image.jpg">
<meta name=”twitter:creator" content="@MyTwitterHandle">
  • Don’t use float and fixed pixel numbers for the layout. Most layout problems (including responsive design) can be solved using flexbox. See http://www.w3.org/TR/css-flexbox-1/ for more information.