-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8cb0b40
commit 3314fe8
Showing
8 changed files
with
105 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ markata.config.lang }}"> | ||
|
||
<head> | ||
{% block head %} | ||
{% if post.title or config.title %} | ||
<title>{{ post.title or config.title }}</title> | ||
{% endif %} | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
{% if post.description or config.description %} | ||
<meta name="description" content="{{ post.description or config.description }}" /> | ||
{% endif %} {% if config.icon %} | ||
<link href="/{{ config.icon }}" rel="icon" type="image/png" /> | ||
{% endif %} | ||
<head> | ||
{% block head %} | ||
{% if post.title or config.title %} | ||
<title>{{ post.title or config.title }}</title> | ||
{% endif %} | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
{% if post.description or config.description %} | ||
<meta name="description" content="{{ post.description or config.description }}" /> | ||
{% endif %} {% if config.icon %} | ||
<link href="/{{ config.icon }}" rel="icon" type="image/png" /> | ||
{% endif %} | ||
|
||
<script> | ||
{% include "theme.js" %} | ||
</script> | ||
<script> | ||
{% include "theme.js" %} | ||
</script> | ||
|
||
<style> | ||
<!-- prettier-ignore | ||
--> | ||
<!-- prettier-ignore-attribute --> | ||
{% include "post.css" %} | ||
</style> | ||
<style> | ||
<!-- prettier-ignore | ||
--> | ||
<!-- prettier-ignore-attribute --> | ||
{% include "post.css" %} | ||
</style> | ||
|
||
{% if 'markata.plugins.service_worker' in config.hooks %} | ||
<script> | ||
if ("serviceWorker" in navigator) { | ||
navigator.serviceWorker.register("/service-worker.js"); | ||
navigator.serviceWorker.addEventListener("controllerchange", () => { | ||
console.log("new worker"); | ||
window.location.reload(); | ||
}); | ||
} | ||
</script> | ||
{% endif %} | ||
{% if 'markata.plugins.service_worker' in config.hooks %} | ||
<script> | ||
if ("serviceWorker" in navigator) { | ||
navigator.serviceWorker.register("/service-worker.js"); | ||
navigator.serviceWorker.addEventListener("controllerchange", () => { | ||
console.log("new worker"); | ||
window.location.reload(); | ||
}); | ||
} | ||
</script> | ||
{% endif %} | ||
|
||
{% include "head.html" %} | ||
{% endblock %} | ||
</head> | ||
{% include "head.html" %} | ||
{% endblock %} | ||
</head> | ||
|
||
<body> | ||
{% include "nav.html" %} | ||
{% block content %} {% endblock %} | ||
{% block footer %} {% endblock %} | ||
</body> | ||
<body> | ||
{% block body %} | ||
{% block content %} {% endblock %} | ||
{% block footer %} {% endblock %} | ||
{% endblock %} | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% extends "content_base.html" %} | ||
{% block body %} | ||
{% include "nav.html" %} | ||
{% block content %} {% endblock %} | ||
{% block footer %} {% endblock %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
<article style="text-align: center;"> | ||
<style> | ||
section { | ||
font-size: 200%; | ||
} | ||
|
||
|
||
.edit { | ||
display: none; | ||
} | ||
</style> | ||
{% include "title.html" %} | ||
</article> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters