-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bring back complete favicon feature set #364
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,8 @@ | |
"template": | ||
[ | ||
"default", | ||
"modern" | ||
"modern", | ||
"template" | ||
], | ||
"content": | ||
[ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}} | ||
|
||
<head> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just noting that this override means we need to react if there are any upstream changes in the modern template... This is what caused things when I was upgrading things, which is why I removed it. I'm hoping maybe there's some way to just add our favicons rather than replacing the entire There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Not out of the box. That would be an upstream PR to docfx. |
||
<meta charset="utf-8"> | ||
{{#_googleAnalyticsTagId}} | ||
<script async src="https://www.googletagmanager.com/gtag/js?id={{_googleAnalyticsTagId}}"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag() { dataLayer.push(arguments); } | ||
gtag('js', new Date()); | ||
gtag('config', '{{_googleAnalyticsTagId}}'); | ||
</script> | ||
{{/_googleAnalyticsTagId}} | ||
{{#redirect_url}} | ||
<meta http-equiv="refresh" content="0;URL='{{redirect_url}}'"> | ||
{{/redirect_url}} | ||
{{^redirect_url}} | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}</title> | ||
<meta name="viewport" content="width=device-width"> | ||
<meta name="title" content="{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}"> | ||
{{#_description}}<meta name="description" content="{{_description}}">{{/_description}} | ||
{{#description}}<meta name="description" content="{{description}}">{{/description}} | ||
<link rel="apple-touch-icon" sizes="180x180" href="{{_rel}}favicons/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="{{_rel}}favicons/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="192x192" href="{{_rel}}favicons/android-chrome-192x192.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="{{_rel}}favicons/favicon-16x16.png"> | ||
<link rel="manifest" href="{{_rel}}favicons/site.webmanifest"> | ||
<link rel="mask-icon" href="{{_rel}}favicons/safari-pinned-tab.svg" color="#5bbad5"> | ||
<link rel="shortcut icon" href="{{_rel}}favicons/favicon.ico"> | ||
<meta name="apple-mobile-web-app-title" content="Npgsql Documentation"> | ||
<meta name="application-name" content="Npgsql Documentation"> | ||
<meta name="msapplication-TileColor" content="#2b5797"> | ||
<meta name="msapplication-TileImage" content="{{_rel}}favicons/mstile-144x144.png"> | ||
<meta name="msapplication-config" content="{{_rel}}favicons/browserconfig.xml"> | ||
<meta name="theme-color" content="#ffffff"> | ||
<link rel="stylesheet" href="{{_rel}}styles/docfx.vendor.min.css"> | ||
<link rel="stylesheet" href="{{_rel}}styles/docfx.css"> | ||
<link rel="stylesheet" href="{{_rel}}styles/main.css"> | ||
<meta property="docfx:navrel" content="{{_navRel}}"> | ||
<meta property="docfx:tocrel" content="{{_tocRel}}"> | ||
{{#_noindex}}<meta name="searchOption" content="noindex">{{/_noindex}} | ||
{{#_enableSearch}}<meta property="docfx:rel" content="{{_rel}}">{{/_enableSearch}} | ||
{{#_enableNewTab}}<meta property="docfx:newtab" content="true">{{/_enableNewTab}} | ||
{{/redirect_url}} | ||
</head> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe call this npgsql_template to make it clearer it's our customizations etc.