Skip to content

Commit

Permalink
Add apps list to site, move assets
Browse files Browse the repository at this point in the history
  • Loading branch information
kepano committed Mar 14, 2024
1 parent 576f802 commit 9dd5b98
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<div class="node-text-content">
<p>Learn more:</p>
<ul>
<li><a href="/">Readme</a></li>
<li><a href="/docs/apps">Apps</a></li>
<li><a href="/spec/1.0">Spec</a></li>
<li><a href="https://github.com/obsidianmd/jsoncanvas">GitHub</a></li>
</ul>
Expand Down
17 changes: 17 additions & 0 deletions .layouts/docs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
{% include head.html %}
<body>

<nav>
<a href="/"><img width="120" height="44" src="/logo.svg" alt="JSON Feed" /></a>
</nav>

<hr>

<div class="page">
{{ content }}
</div>

</body>
</html>
10 changes: 5 additions & 5 deletions .layouts/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
<title>{{ site.title }} — {{ page.title }}</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{% if page.description -%}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else -%}{{ site.description }}{% endif -%}">
<meta name="description" content="{% if page.content -%}{{ page.content | markdownify | strip_html | strip_newlines | truncate: 160 }}{% else -%}{{ site.description }}{% endif -%}">
<meta name="author" content="{{ site.name }}">

<link rel="canonical" href="{{ site.url }}{{ page.url }}">
<link rel="icon" href="{{ site.url }}/favicon.ico" sizes="32x32">
<link rel="icon" href="{{ site.url }}/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="{{ site.url }}/apple-touch-icon.png">
<link rel="icon" href="{{ site.url }}/assets/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="{{ site.url }}/assets/apple-touch-icon.png">
<link rel="stylesheet" href="{{ site.url }}/assets/style.css" type="text/css">

<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:title" content="{{ site.title }}">
<meta property="og:description" content="{% if page.description -%}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else -%}{{ site.description }}{% endif -%}">
<meta property="og:description" content="{% if page.content -%}{{ page.content | markdownify | strip_html | strip_newlines | truncate: 160 }}{% else -%}{{ site.description }}{% endif -%}">
<meta property="og:type" content="{% if page.title -%}article{% else -%}website{% endif -%}">
<meta property="og:image" content="{{ site.url }}/assets/card.png">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{{ site.url }}/assets/card.png">
<meta name="twitter:title" content="{{ site.title }}">
<meta name="twitter:description" content="{% if page.description -%}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else -%}{{ site.description }}{% endif -%}">
<meta name="twitter:description" content="{% if page.content -%}{{ page.content | markdownify | strip_html | strip_newlines | truncate: 160 }}{% else -%}{{ site.description }}{% endif -%}">
</head>
6 changes: 2 additions & 4 deletions .layouts/node.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
{% include head.html %}
<body>

<div class="iframe">

<div class="page">
{{ content }}

</div>
</div>

</body>
</html>
6 changes: 5 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ defaults:
- scope:
path: "spec/**/*.md"
values:
layout: "node"
layout: "node"
- scope:
path: "docs/**/*.md"
values:
layout: "docs"
12 changes: 0 additions & 12 deletions apps.md

This file was deleted.

File renamed without changes
File renamed without changes
16 changes: 15 additions & 1 deletion assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,16 @@ body {
#nav {
padding-right: 36px;
}
.iframe {
.page {
padding: 36px;
max-width: 48em;
margin: 0 auto;
}
nav {
padding: 24px 36px;
max-width: 48em;
margin: 0 auto;
}

/* General node styling */
.node {
Expand Down Expand Up @@ -340,6 +345,12 @@ a {
small {
color: var(--color-tx-2);
}
hr {
margin: 0;
border: 0;
height: 1px;
background-color: var(--color-ui-1);
}
iframe {
-webkit-appearance: none;
border: none;
Expand All @@ -348,6 +359,9 @@ iframe {
vertical-align: bottom;
border-radius: 8px;
}
img {
vertical-align: bottom;
}
code {
-webkit-appearance: none;
font-family: var(--font-mono);
Expand Down
12 changes: 12 additions & 0 deletions docs/apps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Apps and tools

JSON Canvas is supported by the following apps and tools. If you would like to add an app or tool to this list, please submit a pull request on [GitHub](https://github.com/obsidianmd/jsoncanvas).

## Apps

- [Obsidian](https://obsidian.md/)
- [Kinopio](https://kinopio.club/)

## Tools

- [Heptabase Export](https://github.com/link-ding/Heptabase-Export)

0 comments on commit 9dd5b98

Please sign in to comment.