Re-theme site
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
<div>
|
||||
<h1>HTML Basics</h1>
|
||||
<p>I know that:
|
||||
<ul>
|
||||
<li>inline styles override all others.</li>
|
||||
<li>index.html is one of the industry standard default file names, as well as index.htm, index.php, index.asp, index.aspx and more.</li>
|
||||
<li>iframes are used to embed documents within other documents.</p>
|
||||
<li>
|
||||
CSS files are linked by using the following code:
|
||||
<br>
|
||||
<code><link rel="stylesheet" type="text/css" href="../css/main.css"></code>
|
||||
</li>
|
||||
<li>
|
||||
JS files are linked by using the following code:
|
||||
<br>
|
||||
<code><script type="text/javascript" src="scripts/scripts.js"></script></code>
|
||||
</li>
|
||||
<li>
|
||||
Adding the date when the window loads:
|
||||
<br>
|
||||
<code>
|
||||
// onload of window
|
||||
<br>
|
||||
window.onload = dateInsert;
|
||||
</code>
|
||||
</li>
|
||||
<li>
|
||||
Ternary operators work by using:
|
||||
<br>
|
||||
<code>[condition] ? [value if true] : [value if false]</code>
|
||||
</li>
|
||||
<li>The later a CSS file is imported, the more power it has over the document - i.e. the last stylesheet imported will overwrite the styling in all of the other stylesheets.</li>
|
||||
<li>To add another page, one can use an <code><iframe></code> or the jQuery <code>.load()</code> method.</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="cookies">
|
||||
<p>Just to let you know, I use cookies on my site.</p>
|
||||
<p><a href="javascript:void(0);" id="close-cookies">OK</a></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,3 +1,32 @@
|
||||
<footer>
|
||||
© Matthew Grove {{ "now" | date: "%Y" }}
|
||||
</footer>
|
||||
<div class="content">
|
||||
<section>
|
||||
<h3>Matthew Grove</h3>
|
||||
<p>Software engineer & amateur photographer from Surrey, UK.</p>
|
||||
<br>
|
||||
<a href="https://github.com/mgrove36/demo-code/tree/master{{ page.url | relative_url }}">View this page on
|
||||
GitHub.</a>
|
||||
|
||||
</section>
|
||||
<section>
|
||||
<h4>Other Links</h4>
|
||||
<ul class="plain">
|
||||
<li><a href="https://instagram.com/mgrove36.photos" target="_blank"><i
|
||||
class="icon fa-camera"> </i>Photography</a></li>
|
||||
<li><a href="https://instagram.com/morganandmeganbichons" target="_blank"><i
|
||||
class="icon fa-paw"> </i>Dogs</a></li>
|
||||
<li><a href="mailto:me@mgrove.uk"><i class="icon fa-envelope"> </i>Email me</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section>
|
||||
<h4>Social Media</h4>
|
||||
<ul class="plain">
|
||||
<li><a href="https://github.com/mgrove36" target="_blank"><i class="icon fa-github"> </i>Github</a></li>
|
||||
<li><a href="https://twitter.com/mgrove36" target="_blank"><i class="icon fa-twitter"> </i>Twitter</a></li>
|
||||
<li><a href="https://instagram.com/mgrove36" target="_blank"><i class="icon fa-instagram"> </i>Instagram</a></li>
|
||||
<li><a href="https://facebook.com/mgrove36" target="_blank"><i class="icon fa-facebook"> </i>Facebook</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
<div class="copyright">
|
||||
© Matthew Grove {{ "now" | date: "%Y" }}.
|
||||
</div>
|
||||
@@ -1,7 +1,7 @@
|
||||
<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,maximum-scale=1.0,user-scalable=no">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<link rel="icon" sizes="192x192" href="https://mgrove.uk/logo.png">
|
||||
|
||||
@@ -12,40 +12,27 @@
|
||||
<!-- add to homescreen for Safari on iOS -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<meta name="apple-mobile-web-app-title" content="{{ page.title }} | Matthew Grove">
|
||||
<meta name="apple-mobile-web-app-title" content="{{ page.title }}">
|
||||
<link rel="apple-touch-icon-precomposed" href="https://mgrove.uk/logo.png">
|
||||
|
||||
<!-- tile icon & colour for Windows 8 -->
|
||||
<meta name="msapplication-TileImage" content="https://mgrove.uk/logo.png">
|
||||
<meta name="msapplication-TileColor" content="#d84315">
|
||||
<meta name="msapplication-TileColor" content="#26174e">
|
||||
|
||||
<!-- page info -->
|
||||
<title>{{ page.title }} | Matthew Grove</title>
|
||||
<meta name="description" content="{{ page.description }} - by Matthew Grove">
|
||||
<meta name="description" content="{{ page.description }} | by Matthew Grove">
|
||||
<meta name="keywords" content="" />
|
||||
|
||||
<!-- import Roboto (font) -->
|
||||
<link href="/css/roboto.css" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- import jQuery -->
|
||||
<script src="/js/jquery.min.js" type="text/javascript"></script>
|
||||
|
||||
<!-- import cookie JavaScript -->
|
||||
<script src="/js/cookies.js" type="text/javascript"></script>
|
||||
|
||||
<!-- import Material Design components & icons -->
|
||||
<link href="/css/material-components-web.min.css" rel="stylesheet" type="text/css">
|
||||
<link href="/css/material_icons.css" rel="stylesheet" type="text/css">
|
||||
<script src="/js/material-components-web.min.js" type="text/javascript"></script>
|
||||
|
||||
<!-- import local styling & scripts -->
|
||||
<script src="/js/global.js" type="text/javascript"></script>
|
||||
<link href="/css/global.css" rel="stylesheet" type="text/css">
|
||||
<!-- stylesheets -->
|
||||
<link rel="stylesheet" href="/assets/css/main.css" />
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-124505000-1" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-124505000-1');
|
||||
</script>
|
||||
</head>
|
||||
</head>
|
||||
24
_includes/header.html
Normal file
24
_includes/header.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!-- Header -->
|
||||
<header id="header">
|
||||
<img src="https://mgrove.uk/logo-clear-square.png" class="logo" />
|
||||
<a class="logo" href="/">Matthew Grove</a>
|
||||
<nav>
|
||||
<a href="#menu">Menu</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- Nav -->
|
||||
<nav id="menu">
|
||||
<ul class="links">
|
||||
<li><a href="/" {% if page.url == "/" or page.url == "/index.html" %} class="current-page-link"
|
||||
{% endif %}>Home</a></li>
|
||||
|
||||
{% assign all_pages = site.pages | sort: "title" %}
|
||||
{% for project in all_pages %}
|
||||
{% if project.url != "/" and project.url != "/index.html" and project.url != "/sitemap.xml" %}
|
||||
<li><a href="{{ project.url | relative_url }}" {% if project.url == page.url %} class="current-page-link"
|
||||
{% endif %}>{{ project.title }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
@@ -1,27 +0,0 @@
|
||||
<aside class="navbar-insert mdc-drawer mdc-drawer--modal">
|
||||
<div class="mdc-drawer__content">
|
||||
<div style="margin: 15px;text-align:center;">
|
||||
<img src="https://mgrove.uk/logo.png" style="width: 90%;"/>
|
||||
</div>
|
||||
<div class="mdc-list">
|
||||
<a class="mdc-list-item" href="https://blog.mgrove.uk">
|
||||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">assignment</i>
|
||||
<span class="mdc-list-item__text">My Blog</span>
|
||||
</a>
|
||||
<a class="mdc-list-item" href="/">
|
||||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">home</i>
|
||||
<span class="mdc-list-item__text">Home Page</span>
|
||||
</a>
|
||||
{% for project in site.pages | sort "title" %}
|
||||
{% if project.url != "/" and project.url != "/sitemap.xml" and project.url[-4:-1] != ".css" %}
|
||||
<a class="mdc-list-item" href="{{ project.url | relative_url }}">
|
||||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">{{ project.icon }}</i>
|
||||
<span class="mdc-list-item__text">{{ project.title }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<div class="mdc-drawer-scrim"></div>
|
||||
4
_includes/scripts.html
Normal file
4
_includes/scripts.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<!-- Scripts -->
|
||||
<script src="/assets/js/cookies.js"></script>
|
||||
<script src="/assets/js/util.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
Reference in New Issue
Block a user