mirror of
https://github.com/rvtr/wiki.git
synced 2025-06-18 11:05:39 -04:00
Add long_title for page title and SEO
The normal title is still used for the sidebar
This commit is contained in:
parent
70c690ad29
commit
422b4f9172
@ -2,8 +2,9 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>
|
||||
{% if site.data[page.collection].strings.title != page.title %}
|
||||
{{ page.title }} |
|
||||
{% assign title = page.long_title | default: page.title %}
|
||||
{% if site.data[page.collection].strings.title != title %}
|
||||
{{ title }} |
|
||||
{% endif %}
|
||||
{{ site.data[page.collection].strings.title }}
|
||||
</title>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<link rel="canonical" href="{{ page.url | absolute_url | remove: ".html" }}" />
|
||||
<link rel="canonical" href="{{ page.url | absolute_url | remove: "index.html" | remove: ".html" }}" />
|
||||
<meta name="description" content="{{ page.description | default: site.data[page.collection].strings.description | escape }}" />
|
||||
<meta property="og:title" content="{{ page.title | default: site.data[page.collection].strings.title | escape }}" />
|
||||
<meta property="og:title" content="{{ page.long_title | default: page.title | default: site.data[page.collection].strings.title | escape }}" />
|
||||
<meta property="og:locale" content="{{ page.collection | default: "en_US"}}" />
|
||||
<meta property="og:url" content="{{ page.url | absolute_url | remove: ".html" }}" />
|
||||
<meta property="og:url" content="{{ page.url | absolute_url | remove: "index.html" | remove: ".html" }}" />
|
||||
<meta property="og:site_name" content="{{ site.data[page.collection].strings.title | escape }}" />
|
||||
<meta property="og:image" content="{{ page.image | default: site.image }}">
|
||||
<meta property="og:description" content="{{ page.description | default: site.data[page.collection].strings.description | escape }}" />
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:title" content="{{ page.title | default: site.data[page.collection].strings.title | escape }}">
|
||||
<meta name="twitter:title" content="{{ page.long_title | default: page.title | default: site.data[page.collection].strings.title | escape }}">
|
||||
<meta name="twitter:description" content="{{ page.description | default: site.data[page.collection].strings.description | escape }}">
|
||||
<meta name="twitter:image" content="{{ page.image | default: site.image }}">
|
||||
<meta name="theme-color" content="{{ page.color | default: site.color }}"/>
|
||||
|
@ -52,7 +52,7 @@ layout: compress
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<h1>{{ page.long_title | default: page.title }}</h1>
|
||||
<hr>
|
||||
{% include anchor-headings.html html=content anchorBody="<small>#</small>" anchorClass="header-anchor" %}
|
||||
<div class="alert alert-secondary small-alert" role="alert">
|
||||
|
@ -3,6 +3,7 @@ lang: en-US
|
||||
layout: wiki
|
||||
section: gbarunner2
|
||||
title: FAQ & Troubleshooting
|
||||
long_title: GBARunner2 FAQ & Troubleshooting
|
||||
description: FAQs and troubleshooting for GBARunner2
|
||||
---
|
||||
|
||||
|
@ -4,6 +4,7 @@ layout: wiki
|
||||
section: nds-bootstrap
|
||||
category: other
|
||||
title: FAQ & Troubleshooting
|
||||
long_title: nds-bootstrap FAQ & Troubleshooting
|
||||
description: FAQ & Troubleshooting for nds-bootstrap
|
||||
---
|
||||
|
||||
|
@ -4,6 +4,7 @@ layout: wiki
|
||||
section: twilightmenu
|
||||
category: other
|
||||
title: Controls
|
||||
long_title: TWiLight Menu++ Controls
|
||||
description: Controls for using TWiLight Menu++
|
||||
---
|
||||
|
||||
|
@ -3,7 +3,7 @@ lang: en-US
|
||||
layout: wiki
|
||||
section: twilightmenu
|
||||
category: customization
|
||||
title: DSi / 3DS skins - Custom SFX
|
||||
title: DSi / 3DS Skins - Custom SFX
|
||||
description: How to use custom background music and sound effects in DSi and 3DS skins for TWiLight Menu++
|
||||
---
|
||||
|
||||
|
@ -4,6 +4,7 @@ layout: wiki
|
||||
section: twilightmenu
|
||||
category: other
|
||||
title: FAQ & Troubleshooting
|
||||
long_title: TWiLight Menu++ FAQ & Troubleshooting
|
||||
description: FAQs and troubleshooting for TWiLight Menu++
|
||||
---
|
||||
|
||||
|
@ -4,6 +4,7 @@ layout: wiki
|
||||
section: twilightmenu
|
||||
category: installing
|
||||
title: Installing (3DS)
|
||||
long_title: Installing TWiLight Menu++ (3DS)
|
||||
description: How to install TWiLight Menu++ on the Nintendo 3DS
|
||||
tabs:
|
||||
- working-camera: Working camera
|
||||
|
@ -4,6 +4,7 @@ layout: wiki
|
||||
section: twilightmenu
|
||||
category: installing
|
||||
title: Installing (DSi)
|
||||
long_title: Installing TWiLight Menu++ (DSi)
|
||||
description: How to install TWiLight Menu++ on the Nintendo DSi
|
||||
---
|
||||
|
||||
|
@ -4,6 +4,7 @@ layout: wiki
|
||||
section: twilightmenu
|
||||
category: installing
|
||||
title: Installing (Flashcard)
|
||||
long_title: Installing TWiLight Menu++ (Flashcard)
|
||||
description: How to install TWiLight Menu++ on a Nintendo DS flashcard
|
||||
---
|
||||
|
||||
|
@ -4,6 +4,7 @@ layout: wiki
|
||||
section: twilightmenu
|
||||
category: uninstalling
|
||||
title: Uninstalling (3DS)
|
||||
long_title: Uninstalling TWiLight Menu++ (3DS)
|
||||
description: How to uninstall TWiLight Menu++ from a Nintendo 3DS
|
||||
---
|
||||
|
||||
|
@ -4,6 +4,7 @@ layout: wiki
|
||||
section: twilightmenu
|
||||
category: uninstalling
|
||||
title: Uninstalling (DS & DSi)
|
||||
long_title: Uninstalling TWiLight Menu++ (DS & DSi)
|
||||
description: How to uninstall TWiLight Menu++ from Nintendo DSi or DS flashcard
|
||||
---
|
||||
|
||||
|
@ -4,6 +4,7 @@ layout: wiki
|
||||
section: twilightmenu
|
||||
category: updating
|
||||
title: Updating (3DS)
|
||||
long_title: Updating TWiLight Menu++ (3DS)
|
||||
description: How to update TWiLight Menu++ on the Nintendo 3DS
|
||||
tabs:
|
||||
- universal-updater: Universal-Updater
|
||||
|
@ -4,6 +4,7 @@ layout: wiki
|
||||
section: twilightmenu
|
||||
category: updating
|
||||
title: Updating (DSi)
|
||||
long_title: Updating TWiLight Menu++ (DSi)
|
||||
description: How to update TWiLight Menu++ on the Nintendo DSi
|
||||
---
|
||||
|
||||
|
@ -4,6 +4,7 @@ layout: wiki
|
||||
section: twilightmenu
|
||||
category: updating
|
||||
title: Updating (Flashcard)
|
||||
long_title: Updating TWiLight Menu++ (Flashcard)
|
||||
description: How to update TWiLight Menu++ on a Nintendo DS flashcard
|
||||
---
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user