Git init
This commit is contained in:
76
_includes/favicon.html
Normal file
76
_includes/favicon.html
Normal file
@@ -0,0 +1,76 @@
|
||||
{%- comment -%}
|
||||
All of these can be automatically generated by
|
||||
http://faviconit.com/en : browserconfig.xml, all the .ico and favicon-XX.png files
|
||||
and https://realfavicongenerator.net : site.webmanifest + android-chrome-384x384.png and android-chrome-192x192.png
|
||||
|
||||
CHECKLIST
|
||||
- http://faviconit.com/en :: add all files to the root of project (omit the instructions file)
|
||||
- realfavicongenerator.net :: add only the following to the root of the project
|
||||
- site.webmanifest,
|
||||
- android-chrome-384x384.png
|
||||
- android-chrome-192x192.png
|
||||
- Update TileColor in browserconfing.xml and meta tag below
|
||||
- Update Theme and Background color in site.webmanifest
|
||||
- Update theme-color meta tag below
|
||||
{%- endcomment -%}
|
||||
|
||||
<!-- _includes/partials/favicon.html -->
|
||||
|
||||
{% comment %}
|
||||
Classic desktop browsers
|
||||
{%- endcomment -%}
|
||||
<link rel="shortcut icon" href="{{ "favicon.ico" | absolute_url }}" />
|
||||
|
||||
{% comment %}
|
||||
Additional sizes for various browsers
|
||||
{%- endcomment -%}
|
||||
<link rel="icon" sizes="16x16 32x32 64x64" href="/favicon.ico">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon-16.png" | absolute_url }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon-32.png" | absolute_url }}">
|
||||
<link rel="icon" type="image/png" sizes="64x64" href="{{ "favicon-64.png" | absolute_url }}">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="{{ "favicon-96.png" | absolute_url }}">
|
||||
<link rel="icon" type="image/png" sizes="160x160" href="{{ "favicon-160.png" | absolute_url }}">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="{{ "favicon-192.png" | absolute_url }}">
|
||||
|
||||
{% comment %}
|
||||
Android Chrome
|
||||
{%- endcomment -%}
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="{{ "favicon-192.png" | absolute_url }}">
|
||||
<link rel="icon" type="image/png" sizes="384x384" href="{{ "android-chrome-384x384.png" | absolute_url }}">
|
||||
<link rel="manifest" href="{{ "site.webmanifest" | absolute_url }}">
|
||||
|
||||
{% comment %}
|
||||
iOS Safari & Android Chrome
|
||||
{%- endcomment -%}
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="{{ "favicon-57.png" | absolute_url }}">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="{{ "favicon-60.png" | absolute_url }}">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="{{ "favicon-72.png" | absolute_url }}">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="{{ "favicon-76.png" | absolute_url }}">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="{{ "favicon-114.png" | absolute_url }}">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="{{ "favicon-120.png" | absolute_url }}">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="{{ "favicon-144.png" | absolute_url }}">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="{{ "favicon-152.png" | absolute_url }}">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ "favicon-180.png" | absolute_url }}">
|
||||
|
||||
{% comment %}
|
||||
Win 8.0, Win 8.1, Edge and IE11+
|
||||
{%- endcomment -%}
|
||||
<meta name="msapplication-TileImage" content="favicon-144.png">
|
||||
<meta name="msapplication-config" content="browserconfig.xml">
|
||||
<meta name="msapplication-TileColor" content="#ffffff">
|
||||
|
||||
{% comment %}
|
||||
Mobile Chrome theme color
|
||||
{%- endcomment -%}
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
{% comment %}
|
||||
Preffered image for SERPs, optional, uncomment the code if needed.
|
||||
https://support.google.com/customsearch/answer/1626955?hl=en
|
||||
|
||||
<meta name="thumbnail" content="{{ "thumbnail.png" | absolute_url }}" />
|
||||
{%- endcomment -%}
|
||||
|
||||
<!-- / _includes/partials/favicon.html -->
|
||||
|
||||
|
||||
7
_includes/footer.html
Normal file
7
_includes/footer.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<!-- _includes/partials/footer.html -->
|
||||
|
||||
<footer>
|
||||
|
||||
</footer>
|
||||
|
||||
<!-- / _includes/partials/footer.html -->
|
||||
17
_includes/head.html
Normal file
17
_includes/head.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!-- _includes/partials/head.html -->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0">
|
||||
|
||||
{% include favicon.html %}
|
||||
|
||||
{% include meta_tags.html %}
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ "assets/sass/main.css" | relative_url }}">
|
||||
</head>
|
||||
|
||||
<!-- / _includes/partials/head.html -->
|
||||
|
||||
17
_includes/header.html
Normal file
17
_includes/header.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!-- _includes/partials/header.html -->
|
||||
|
||||
<header>
|
||||
<button class="button hamburger-button">
|
||||
<strong>Load War</strong>
|
||||
</button>
|
||||
|
||||
<form id="dataform" class="form">
|
||||
<h3>Add War</h3>
|
||||
<textarea id="data">{{ site.testdata }}</textarea>
|
||||
<br />
|
||||
<input type="submit" value="Submit" class="button" />
|
||||
<input type="reset" value="Reset" class="button" />
|
||||
</form>
|
||||
</header>
|
||||
|
||||
<!-- / _includes/partials/header.html -->
|
||||
80
_includes/meta_tags.html
Normal file
80
_includes/meta_tags.html
Normal file
@@ -0,0 +1,80 @@
|
||||
{%- capture pageURL -%}{{ page.url | replace:'index.html','' | absolute_url }}{%- endcapture -%}
|
||||
|
||||
{%- capture metaTitle -%}
|
||||
{%- if page.title -%}
|
||||
{{ page.title }}
|
||||
{%- else -%}
|
||||
{{ site.meta_title }}
|
||||
{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
{%- assign metaTitle = metaTitle | strip_html | normalize_whitespace -%}
|
||||
|
||||
{%- capture metaDescription -%}
|
||||
{%- if page.meta_description -%}
|
||||
{{ page.meta_description }}
|
||||
{%- else -%}
|
||||
{{ site.meta_description }}
|
||||
{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
{%- assign metaDescription = metaDescription | strip_html | normalize_whitespace | truncate: 160 -%}
|
||||
|
||||
{%- capture metaImage -%}
|
||||
{%- if page.meta_image -%}
|
||||
{{ page.meta_image | absolute_url }}
|
||||
{%- else -%}
|
||||
{{ site.meta_image | absolute_url }}
|
||||
{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
|
||||
<!-- _includes/partials/meta_tags.html -->
|
||||
|
||||
{% comment %}
|
||||
Browser tags
|
||||
{%- endcomment -%}
|
||||
<title>{{ metaTitle }}</title>
|
||||
<meta name="description" content="{{ metaDescription }}">
|
||||
|
||||
{% comment %}
|
||||
Open Graph
|
||||
{%- endcomment -%}
|
||||
<meta property="og:site_name" content="{{ site.name }}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="{{ metaTitle }}">
|
||||
<meta property="og:description" content="{{ metaDescription }}">
|
||||
<meta property="og:url" content="{{ pageURL }}">
|
||||
<meta property="og:image" content="{{ metaImage }}">
|
||||
|
||||
{% comment %}
|
||||
Twitter specific
|
||||
{%- endcomment -%}
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{{ metaTitle }}">
|
||||
<meta name="twitter:description" content="{{ metaDescription }}">
|
||||
<meta name="twitter:image" content="{{ metaImage }}">
|
||||
|
||||
{% comment %}
|
||||
Optional tags
|
||||
|
||||
Facebook:
|
||||
- https://developers.facebook.com/docs/sharing/webmasters
|
||||
|
||||
<meta property="fb:app_id" content="">
|
||||
|
||||
Twitter:
|
||||
- https://dev.twitter.com/cards/overview
|
||||
- https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/markup.html
|
||||
|
||||
<meta name="twitter:image:alt" content="Used with summary, summary_large_image, player cards">
|
||||
<meta name="twitter:site" content="@site_username">
|
||||
<meta name="twitter:creator" content="@creator_username">
|
||||
<meta name="twitter:label1" value="Label 1">
|
||||
<meta name="twitter:data1" value="value 1">
|
||||
{%- endcomment -%}
|
||||
|
||||
{% comment %}
|
||||
Canonical tag prevents content duplication for SEO
|
||||
{%- endcomment -%}
|
||||
<link rel="canonical" href="{{ pageURL }}">
|
||||
|
||||
<!-- / _includes/partials/meta_tags.html -->
|
||||
|
||||
15
_includes/scripts.html
Normal file
15
_includes/scripts.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- _includes/partials/scripts.html -->
|
||||
|
||||
{% if site.is_production %}
|
||||
<script src="{{ "/assets/js/main.min.js" | relative_url }}"></script>
|
||||
{% else %}
|
||||
<script src="{{ "/assets/js/lib/vue.min.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/lib/jquery-3.4.1.min.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/map.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/utils.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/app.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/localstorage.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/hamburger.js" | relative_url }}"></script>
|
||||
{% endif %}
|
||||
|
||||
<!-- / _includes/partials/scripts.html -->
|
||||
7
_includes/svg.html
Normal file
7
_includes/svg.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{% comment %}
|
||||
Use this file to store svg tags and reuse as variables with the capture tag.
|
||||
|
||||
{%- capture svg_icon -%}
|
||||
Your svg code goes here
|
||||
{%- endcapture -%}
|
||||
{% endcomment %}
|
||||
Reference in New Issue
Block a user