Skip to content
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

Format HTML files #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; URL=http://osxfuse.github.io/">
<meta charset="UTF-8">
<title>404 - FUSE for macOS</title>
</head>
<head>
<meta http-equiv="refresh" content="0; URL=http://osxfuse.github.io/" />
<meta charset="UTF-8" />
<title>404 - FUSE for macOS</title>
</head>
</html>
113 changes: 68 additions & 45 deletions _layouts/base.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,71 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{{ page.title }} - macFUSE</title>
<script type="text/javascript" src="/static/jquery-1.7.1.min.js"></script>
</head>
<body>
<style type="text/css" scoped="scoped">
@import url('/static/base.css') screen;
</style>
<div id="header">
<a href="/">
<h1>
<span id="title">macFUSE</span>
<br>
<span id="subtitle">File system integration made easy</span>
</h1>
</a>
<ul id="menu">
<li><a href="https://github.com/osxfuse">Project on GitHub</a></li><li><a href="https://github.com/osxfuse/osxfuse/releases">Downloads</a></li><li><a href="https://github.com/osxfuse/osxfuse/wiki">Wiki</a></li><li><a href="https://groups.google.com/forum/#!forum/osxfuse-group">Google Group</a></li><li><a href="https://github.com/osxfuse/osxfuse/issues">Issue Tracker</a></li>
</ul>
</div>
<div id="content">
{{ content }}
</div>
<div id="sponsors" class="footer">
<div>
<h2>Sponsors of the macFUSE project</h2>
<a href="https://www.boxcryptor.com"><img src="/static/boxcryptor_logo.png" alt="BoxCryptor"></a>
<a href="http://www.editshare.com"><img src="/static/editshare_logo.png" alt="EditShare"></a>
<a href="https://projective.io"><img src="/static/projective_logo.png" alt="Projective"></a>
<a href="https://hedge.video"><img src="/static/hedge_logo.png" alt="Hedge"></a>
</div>
</div>
<div id="legal" class="footer">
<div>
<a href="https://raw.githubusercontent.com/osxfuse/osxfuse/releases/LICENSE.txt">macFUSE License</a>
<br>
&copy; 2011-2024 Benjamin Fleischer
<br>
&copy; 2007-2009 Google Inc.
<br>
Mac, OS X, macOS are trademarks of Apple Inc., registered in the U.S. and other countries. Other trademarks are the property of their respective owners.
</div>
</div>
</body>
<head>
<meta charset="UTF-8" />
<title>{{ page.title }} - macFUSE</title>
<script type="text/javascript" src="/static/jquery-1.7.1.min.js"></script>
</head>
<body>
<style type="text/css" scoped="scoped">
@import url("/static/base.css") screen;
</style>
<div id="header">
<a href="/">
<h1>
<span id="title">macFUSE</span>
<br />
<span id="subtitle">File system integration made easy</span>
</h1>
</a>
<ul id="menu">
<li><a href="https://github.com/osxfuse">Project on GitHub</a></li>
<li>
<a href="https://github.com/osxfuse/osxfuse/releases">Downloads</a>
</li>
<li><a href="https://github.com/osxfuse/osxfuse/wiki">Wiki</a></li>
<li>
<a href="https://groups.google.com/forum/#!forum/osxfuse-group"
>Google Group</a
>
</li>
<li>
<a href="https://github.com/osxfuse/osxfuse/issues">Issue Tracker</a>
</li>
</ul>
</div>
<div id="content">{{ content }}</div>
<div id="sponsors" class="footer">
<div>
<h2>Sponsors of the macFUSE project</h2>
<a href="https://www.boxcryptor.com"
><img src="/static/boxcryptor_logo.png" alt="BoxCryptor"
/></a>
<a href="http://www.editshare.com"
><img src="/static/editshare_logo.png" alt="EditShare"
/></a>
<a href="https://projective.io"
><img src="/static/projective_logo.png" alt="Projective"
/></a>
<a href="https://hedge.video"
><img src="/static/hedge_logo.png" alt="Hedge"
/></a>
</div>
</div>
<div id="legal" class="footer">
<div>
<a
href="https://raw.githubusercontent.com/osxfuse/osxfuse/releases/LICENSE.txt"
>macFUSE License</a
>
<br />
&copy; 2011-2024 Benjamin Fleischer
<br />
&copy; 2007-2009 Google Inc.
<br />
Mac, OS X, macOS are trademarks of Apple Inc., registered in the U.S.
and other countries. Other trademarks are the property of their
respective owners.
</div>
</div>
</body>
</html>
212 changes: 111 additions & 101 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -1,126 +1,136 @@
---
layout: base
---

<style type="text/css" scoped="scoped">
@import url('/static/sidebar.css') screen;
@import url("/static/sidebar.css") screen;

#header h1 {
width: 575px;
min-height: 200px;
#header h1 {
width: 575px;
min-height: 200px;

background-image: url('/static/osxfuse-home.png');
background-size: 200px;
background-position: left center;
background-image: url("/static/osxfuse-home.png");
background-size: 200px;
background-position: left center;

padding-left: 225px;
}
padding-left: 225px;
}

#header h1 #title {
margin-top: 55px;
}
#header h1 #title {
margin-top: 55px;
}

#header h1 #subtitle {
display: inline-block;
}
#header h1 #subtitle {
display: inline-block;
}

#sidebar .release a:first-child {
min-height: 60px;
#sidebar .release a:first-child {
min-height: 60px;

padding-left: 85px;
padding-left: 85px;

background-image: url('/static/package.png');
background-repeat: no-repeat;
background-position: 10px center;
}
background-image: url("/static/package.png");
background-repeat: no-repeat;
background-position: 10px center;
}
</style>
<script type="text/javascript">
function addDownloadCounter(package, response) {
$(function() {
if ($("#" + package + " a:first-child").length > 0) {
var count = response.data.download_count;
if (typeof count == "number" && count % 1 == 0) {
count = count.toString();
function addDownloadCounter(package, response) {
$(function () {
if ($("#" + package + " a:first-child").length > 0) {
var count = response.data.download_count;
if (typeof count == "number" && count % 1 == 0) {
count = count.toString();

var expression = /(\d+)(\d{3})/;
while (expression.test(count)) {
count = count.replace(expression, "$1" + "," + "$2");
}
var expression = /(\d+)(\d{3})/;
while (expression.test(count)) {
count = count.replace(expression, "$1" + "," + "$2");
}

var span = '<span class="metadata">Downloaded ' + count + ' times</span>';
$(span).appendTo("#" + package + " a:first-child");
}
}
});
}
var span =
'<span class="metadata">Downloaded ' + count + " times</span>";
$(span).appendTo("#" + package + " a:first-child");
}
}
});
}

function osxfuseDownloadCounter(response) {
addDownloadCounter("osxfuse", response);
}
function osxfuseDownloadCounter(response) {
addDownloadCounter("osxfuse", response);
}

function sshfsDownloadCounter(response) {
addDownloadCounter("sshfs", response);
}
function sshfsDownloadCounter(response) {
addDownloadCounter("sshfs", response);
}

function osxfuseDeveloperDownloadCounter(response) {
addDownloadCounter("osxfuse-developer", response);
}
function osxfuseDeveloperDownloadCounter(response) {
addDownloadCounter("osxfuse-developer", response);
}
</script>
<script type="text/javascript" src="https://api.github.com/repos/osxfuse/osxfuse/releases/assets/{{ page.osxfuse.gh_asset_id }}?callback=osxfuseDownloadCounter"></script>
<script type="text/javascript" src="https://api.github.com/repos/osxfuse/sshfs/releases/assets/{{ page.sshfs.gh_asset_id }}?callback=sshfsDownloadCounter"></script>
<script
type="text/javascript"
src="https://api.github.com/repos/osxfuse/osxfuse/releases/assets/{{ page.osxfuse.gh_asset_id }}?callback=osxfuseDownloadCounter"
></script>
<script
type="text/javascript"
src="https://api.github.com/repos/osxfuse/sshfs/releases/assets/{{ page.sshfs.gh_asset_id }}?callback=sshfsDownloadCounter"
></script>
{% if page.osxfuse-developer %}
<script type="text/javascript" src="https://api.github.com/repos/osxfuse/osxfuse/releases/assets/{{ page.osxfuse-developer.gh_asset_id }}?callback=osxfuseDeveloperDownloadCounter"></script>
<script
type="text/javascript"
src="https://api.github.com/repos/osxfuse/osxfuse/releases/assets/{{ page.osxfuse-developer.gh_asset_id }}?callback=osxfuseDeveloperDownloadCounter"
></script>
{% endif %}
<div>
{{ content }}
</div>
<div>{{ content }}</div>
<div id="sidebar">
<h2>Stable Releases</h2>
<ul class="bloblist">
<li class="release" id="osxfuse">
<a href="{{ page.osxfuse.url }}">
macFUSE {{ page.osxfuse.version }}
{% for line in page.osxfuse.description %}
<span class="metadata">{{ line }}</span>
{% endfor %}
<span class="metadata">Released on {{ page.osxfuse.date }}</span>
</a>
</li>
<li class="release" id="sshfs">
<a href="{{ page.sshfs.url }}">
SSHFS {{ page.sshfs.version }}
{% for line in page.sshfs.description %}
<span class="metadata">{{ line }}</span>
{% endfor %}
<span class="metadata">Released on {{ page.sshfs.date }}</span>
</a>
</li>
</ul>
{% if page.osxfuse-developer %}
<h2>Developer Previews</h2>
<ul class="bloblist">
<li class="release" id="osxfuse-developer">
<a href="{{ page.osxfuse-developer.url }}">
macFUSE {{ page.osxfuse-developer.version }}
{% for line in page.osxfuse-developer.description %}
<span class="metadata">{{ line }}</span>
{% endfor %}
<span class="metadata">Released on {{ page.osxfuse-developer.date }}</span>
</a>
</li>
</ul>
{% endif %}
<h2>
Recent Posts
<a class="archive" href="/archive.html">Archive</a></span>
</h2>
<ul class="bloblist">
{% for post in site.posts limit: 8 %}
<li>
<a href="{{ post.url }}">
{{ post.title }}
<span class="metadata">Posted on {{ post.date | date_to_string }}</span>
</a>
</li>
<h2>Stable Releases</h2>
<ul class="bloblist">
<li class="release" id="osxfuse">
<a href="{{ page.osxfuse.url }}">
macFUSE {{ page.osxfuse.version }} {% for line in
page.osxfuse.description %}
<span class="metadata">{{ line }}</span>
{% endfor %}
<span class="metadata">Released on {{ page.osxfuse.date }}</span>
</a>
</li>
<li class="release" id="sshfs">
<a href="{{ page.sshfs.url }}">
SSHFS {{ page.sshfs.version }} {% for line in page.sshfs.description %}
<span class="metadata">{{ line }}</span>
{% endfor %}
<span class="metadata">Released on {{ page.sshfs.date }}</span>
</a>
</li>
</ul>
{% if page.osxfuse-developer %}
<h2>Developer Previews</h2>
<ul class="bloblist">
<li class="release" id="osxfuse-developer">
<a href="{{ page.osxfuse-developer.url }}">
macFUSE {{ page.osxfuse-developer.version }} {% for line in
page.osxfuse-developer.description %}
<span class="metadata">{{ line }}</span>
{% endfor %}
</ul>
<span class="metadata"
>Released on {{ page.osxfuse-developer.date }}</span
>
</a>
</li>
</ul>
{% endif %}
<h2>
Recent Posts
<a class="archive" href="/archive.html">Archive</a>
</h2>
<ul class="bloblist">
{% for post in site.posts limit: 8 %}
<li>
<a href="{{ post.url }}">
{{ post.title }}
<span class="metadata">Posted on {{ post.date | date_to_string }}</span>
</a>
</li>
{% endfor %}
</ul>
</div>
Loading