Skip to content

Commit

Permalink
Merge pull request #62 from arturo-lang/fix-thumbnails
Browse files Browse the repository at this point in the history
Fix thumbnails
  • Loading branch information
drkameleon committed Apr 18, 2024
2 parents dc69320 + 6274ffe commit 3feade9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions website/components/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<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.0, user-scalable=no">
<title><||= packageTitle ||>Arturo Packager</title>
<title><||= capitalize packageTitle ||>Arturo Packager</title>
<meta name="description" content="<||= (packageTitle = "") ? -> "Package manager for the Arturo programming language" -> ~"Get |capitalize packageTitle|Package for the Arturo programming language" ||>">

<!-- Open Graph / Facebook -->
Expand All @@ -15,7 +15,7 @@
<meta property="og:description" content="<||= (packageTitle = "") ? -> "Package manager for the Arturo programming language" -> ~"Get |capitalize packageTitle|Package for the Arturo programming language" ||>">

<|| if packageTitle <> "" [||>
<meta property="og:image" content="<||= siteroot ||>/thumbs/<||= packageTitle ||>.png">
<meta property="og:image" content="<||= siteroot ||>/thumbs/<||= replace packageTitle " &bull; " "" ||>.png">
<|| ] ||>

<!-- Twitter -->
Expand All @@ -25,7 +25,7 @@
<meta name="twitter:title" content="<||= capitalize packageTitle ||>Arturo Packager">
<meta name="twitter:description" content="<||= (packageTitle = "") ? -> "Package manager for the Arturo programming language" -> ~"Get |capitalize packageTitle|Package for the Arturo programming language" ||>">
<|| if packageTitle <> "" [||>
<meta name="twitter:image" content="<||= siteroot ||>/thumbs/<||= packageTitle ||>.png">
<meta name="twitter:image" content="<||= siteroot ||>/thumbs/<||= replace packageTitle " &bull; " "" ||>.png">
<|| ] ||>

<!-- FavIcon -->
Expand Down
4 changes: 2 additions & 2 deletions website/package.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h3 class="is-size-5"><||= entry\info\description ||></h3>
<span class="has-text-grey"><||= ver\date\day ||>&nbsp;<||= ver\date\Month ||>&nbsp;<||= ver\date\year ||></span>
</td>
<td>
<span class="has-text-grey"><||= ver\details\files ||> files</span>&nbsp;<span class="has-text-grey repo-size-field">(<||= ver\details\size ||>)</span>
<span class="has-text-grey repo-size-field"><||= ver\details\size ||></span><small>&nbsp;(<span class="has-text-grey"><||= ver\details\files ||> files</span>)</small>
</td>
</tr>
<|| ][ ||>
Expand All @@ -86,7 +86,7 @@ <h3 class="is-size-5"><||= entry\info\description ||></h3>
<span class="has-text-grey"><||= ver\date\day ||>&nbsp;<||= ver\date\Month ||>&nbsp;<||= ver\date\year ||></span>
</td>
<td>
<span class="has-text-grey"><||= ver\details\files ||> files</span>&nbsp;<span class="has-text-grey repo-size-field">(<||= ver\details\size ||>)</span>
<span class="has-text-grey repo-size-field"><||= ver\details\size ||></span><small>&nbsp;(<span class="has-text-grey"><||= ver\details\files ||> files</span>)</small>
</td>
</tr>
<|| ] ||>
Expand Down
2 changes: 1 addition & 1 deletion website/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ $(document).ready(function(){

$(".repo-size-field").each(function(idx) {
console.log();
$(this).text("("+humanFileSize(parseInt($(this).text().replace("(","").replace(")","")))+")");
$(this).text(humanFileSize(parseInt($(this).text())));
});
});

Expand Down

0 comments on commit 3feade9

Please sign in to comment.