Skip to content

Commit

Permalink
change layout to a modified default version of architects default lay…
Browse files Browse the repository at this point in the history
…out; add a few bits to sidebar
  • Loading branch information
sckott committed Oct 27, 2023
1 parent a7dd650 commit fd6e689
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 42 deletions.
35 changes: 35 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,43 @@
<title>Bootstrap demo</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://kit.fontawesome.com/880c8cdd80.js" crossorigin="anonymous"></script>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>

<script type="text/javascript">
function copyToClipboard(element) {
var $temp = $("<input>");
$("body").append($temp);
$temp.val($(element).text()).select();
document.execCommand("copy");
$temp.remove();
}

var badge_data;

$.getJSON('badges/badges.json', function(json){ badge_data = json; });

function copysample(badgename, markup) {
outtype = '';
if ( markup == "md" ) {
outtype = "Markdown";
} else if ( markup == "rst" ) {
outtype = "ReST";
} else if ( markup == "html") {
outtype = "HTML";
}
$("#sampletitle").html(outtype + " for " + badge_data[badgename]['display_name'] + " Status (<a href=\"https://getwilds.github.io/badges/badges/" + badgename + "_" + markup + ".txt\">direct link</a>)");
$.get('https://getwilds.github.io/badges/badges/' + badgename + '_' + markup + '.txt', function(data) {
$("#samplecode").html('<pre>' + htmlEncode(data) + '</pre>');
copyToClipboard("#samplecode");
});
}

function htmlEncode(value) {
return $('<div/>').text(value).html();
}
</script>
</body>
</html>
62 changes: 62 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}" media="screen" type="text/css">
<link rel="stylesheet" href="{{ '/assets/css/print.css' | relative_url }}" media="print" type="text/css">

{% seo %}

{% include head.html %}
</head>

<body>
<header>
<div class="inner">
<a href="{{ '/' | absolute_url }}">
<h1>{{ site.title | default: site.github.repository_name }}</h1>
</a>
<h2>{{ site.description | default: site.github.project_tagline }}</h2>
{% if site.github.is_project_page %}
<a href="{{ site.github.repository_url }}" class="button"><small>View project on</small> GitHub</a>
{% endif %}
{% if site.github.is_user_page %}
<a href="{{ site.github.owner_url }}" class="button"><small>Follow me on</small> GitHub</a>
{% endif %}
</div>
</header>

<div id="content-wrapper">
<div class="inner clearfix">
<section id="main-content">
{{ content }}
</section>

<aside id="sidebar">
{% if site.show_downloads %}
<a href="{{ site.github.zip_url }}" class="button">
<small>Download</small>
.zip file
</a>
<a href="{{ site.github.tar_url }}" class="button">
<small>Download</small>
.tar.gz file
</a>
{% endif %}

{% if site.github.is_project_page %}
<p class="repo-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</p>
{% endif %}

<p>This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</p>

<p>Theme: <a href="https://github.com/pages-themes/architect">Architect</a></p>
<p>Made with <i class="fa fa-heart"></i> on <a href="https://jekyllrb.com"><span style="color:black">{ { Jekyll } }</a></span></p>
</aside>
</div>
</div>

</body>
</html>
41 changes: 0 additions & 41 deletions _layouts/post.html

This file was deleted.

2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: default
---

## Intro
Expand Down

0 comments on commit fd6e689

Please sign in to comment.