FIX: Removed duplicate jekyll code with include.
This commit is contained in:
32
_includes/default.html
Normal file
32
_includes/default.html
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta name="description" content="{{ include.description }}">
|
||||||
|
|
||||||
|
<link rel="shortcut icon" type="image/png" href="/res/favicon.png">
|
||||||
|
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,500,1,200">
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap">
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;900&display=swap">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/styles/global.css">
|
||||||
|
<link rel="stylesheet" href="/styles/default.css">
|
||||||
|
|
||||||
|
<title>{{ include.title }} ─ Max Hutz</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{% include header.html %}
|
||||||
|
|
||||||
|
{{ include.content }}
|
||||||
|
|
||||||
|
<div class="flex dark back npad"></div>
|
||||||
|
|
||||||
|
{% include footer.html %}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,32 +1 @@
|
|||||||
<!DOCTYPE html>
|
{% include default.html title=page.title content=content description=page.description %}
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="{{ page.description }}">
|
|
||||||
|
|
||||||
<link rel="shortcut icon" type="image/png" href="/res/favicon.png">
|
|
||||||
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,500,1,200">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;900&display=swap">
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="/styles/global.css">
|
|
||||||
<link rel="stylesheet" href="/styles/default.css">
|
|
||||||
|
|
||||||
<title>{{ page.title }} ─ Max Hutz</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{% include header.html %}
|
|
||||||
|
|
||||||
{{ content }}
|
|
||||||
|
|
||||||
<div class="flex dark back npad"></div>
|
|
||||||
|
|
||||||
{% include footer.html %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,77 +1,54 @@
|
|||||||
<!DOCTYPE html>
|
{% capture description %}
|
||||||
<html lang="en">
|
A description of work done by Maxim Voldman Hutz for {{page.title}}.
|
||||||
<head>
|
{% endcapture %}
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="A description of work done by Maxim Voldman Hutz for {{page.title}}.">
|
|
||||||
|
|
||||||
<link rel="shortcut icon" type="image/png" href="/res/favicon.png">
|
{% capture inner %}
|
||||||
|
{% assign malung = site.data.work[page.project_id] %}
|
||||||
|
{% assign techs = site.data.techs %}
|
||||||
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="stylesheet" href="/styles/experience.css">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="stylesheet" href="/styles/tech.css">
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,500,1,200">
|
<section id="experience" class="dark back">
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap">
|
<section id="banner" class="{{malung.color}} back">
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;900&display=swap">
|
<div>
|
||||||
|
<h1>{{malung.title}}</h1>
|
||||||
<link rel="stylesheet" href="/styles/global.css">
|
<i>{{malung.subtitle}}</i>
|
||||||
<link rel="stylesheet" href="/styles/default.css">
|
</div>
|
||||||
|
<button class="nav-link dark icon" data-i="close" aria-label="Exit" type="button" onclick="history.back(-1)"></button>
|
||||||
<title>{{ page.title }} ─ Max Hutz</title>
|
</section>
|
||||||
</head>
|
<div id="content">
|
||||||
<body>
|
<div id="description">
|
||||||
{% include header.html %}
|
<p>
|
||||||
|
{{malung.description}}
|
||||||
{% assign malung = site.data.work[page.project_id] %}
|
</p>
|
||||||
{% assign techs = site.data.techs %}
|
<hr class="lighter">
|
||||||
|
<ul>
|
||||||
<link rel="stylesheet" href="/styles/experience.css">
|
{% for outcome in malung.outcomes %}
|
||||||
<link rel="stylesheet" href="/styles/tech.css">
|
<li>{{outcome}}</li>
|
||||||
|
{% endfor %}
|
||||||
<section id="experience" class="dark back">
|
</ul>
|
||||||
<section id="banner" class="{{malung.color}} back">
|
{% if malung.link %}
|
||||||
<div>
|
<a href="{{malung.link}}" id="experience-button" class="nav-link white button r-icon" data-i="arrow_right">View {{malung.title}}</a>
|
||||||
<h1>{{malung.title}}</h1>
|
{% endif %}
|
||||||
<i>{{malung.subtitle}}</i>
|
</div>
|
||||||
</div>
|
<div id="image-side">
|
||||||
<button class="nav-link dark icon" data-i="close" aria-label="Exit" type="button" onclick="history.back(-1)"></button>
|
<div id="image" class="shadow">
|
||||||
</section>
|
{% if malung.image %}
|
||||||
<div id="content">
|
<img id="image-inner" src="{{malung.image}}" alt="Image of {{malung.title}}">
|
||||||
<div id="description">
|
{% else %}
|
||||||
<p>
|
<h1 aria-hidden="true">Image Not Available</h1>
|
||||||
{{malung.description}}
|
|
||||||
</p>
|
|
||||||
<hr class="lighter">
|
|
||||||
<ul>
|
|
||||||
{% for outcome in malung.outcomes %}
|
|
||||||
<li>{{outcome}}</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
{% if malung.link %}
|
|
||||||
<a href="{{malung.link}}" id="experience-button" class="nav-link white button r-icon" data-i="arrow_right">View {{malung.title}}</a>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div id="image-side">
|
<div id="stack">
|
||||||
<div id="image" class="shadow">
|
{% for tech in malung.stack %}
|
||||||
{% if malung.image %}
|
{% assign data = techs[tech] %}
|
||||||
<img id="image-inner" src="{{malung.image}}" alt="Image of {{malung.title}}">
|
<a class="chip {{tech}} shadow" href="{{data.link}}" target="_blank">{{data.name}}</a>
|
||||||
{% else %}
|
{% endfor %}
|
||||||
<h1 aria-hidden="true">Image Not Available</h1>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<div id="stack">
|
|
||||||
{% for tech in malung.stack %}
|
|
||||||
{% assign data = techs[tech] %}
|
|
||||||
<a class="chip {{tech}} shadow" href="{{data.link}}" target="_blank">{{data.name}}</a>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
|
</section>
|
||||||
|
{% endcapture %}
|
||||||
|
|
||||||
<div class="flex dark back npad"></div>
|
{% include default.html content=inner description=description title=page.title %}
|
||||||
|
|
||||||
{% include footer.html %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user