Browse Source

update to using templates, add publish rule, drop xhtml logo..

main
John-Mark Gurney 1 year ago
parent
commit
79635e6be3
4 changed files with 73 additions and 13 deletions
  1. +5
    -13
      content/index.html
  2. +1
    -0
      content/meta.yaml
  3. +58
    -0
      layout/base.j2
  4. +9
    -0
      site.yaml

+ 5
- 13
content/index.html View File

@@ -1,10 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Encryptthe.net!</title>
</head>
<body>
<h1>Coming soon: Encryptthe.net</h1>
---
title: Encryptthe.net!
description: Guide on how to protect yourself on the internet.
extends: base.j2
---
<p>This site will talk about the easy steps you can take to encrypt your traffic on the internet. Encrypting your traffic increases your privacy, keeps your data secure when using public access points and prevents ISPs and governments from illegally capturing and mining your traffic.</p>
<p>There will be different sections for people of different technical levels from end-users to the web masters to system administrators.</p>
<p>Protect your data, encryptthe.net!</p>
@@ -59,9 +57,3 @@ enable whole disk encryption
</li>
</ul>
<p>Comments and suggestions can be emailed to <a href="mailto:iwill@encryptthe.net">iwill@encryptthe.net</a></p>
<p>
<a href="https://validator.w3.org/check?uri=referer"><img
src="https://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
</p>
</body>
</html>

+ 1
- 0
content/meta.yaml View File

@@ -0,0 +1 @@
default_block: main

+ 58
- 0
layout/base.j2 View File

@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% block starthead %}{% endblock starthead %}
<meta charset="{{ resource.meta.charset }}">

<meta name="twitter:card" content="summary" />
{% if resource.meta.twittertitle %}
<meta property="og:title" content="{{ resource.meta.twittertitle }}" />
{% else %}
<meta property="og:title" content="{{ resource.meta.title }}" />
{% endif %}
<meta property="og:description" content="{{ resource.meta.description }}" />
{% if resource.meta.image %} <meta property="og:image" content="{{ resource.meta.image }}" />{% endif %}
{% if site.context.tweet_via %} <meta property="twitter:site:id" content="{{ site.context.tweet_via }}" /> {% endif %}
{% if resource.meta.imagealt %} <meta name="twitter:image:alt" content="{{ resource.meta.imagealt }}" />{% endif %}
{% if resource.meta.twitterlabel1 %} <meta name="twitter:label1" content="{{ resource.meta.twitterlabel1 }}" />{% endif %}
{% if resource.meta.twitterlabel2 %} <meta name="twitter:label2" content="{{ resource.meta.twitterlabel2 }}" />{% endif %}
{% if resource.meta.twitterdata1 %} <meta name="twitter:data1" content="{{ resource.meta.twitterdata1 }}" />{% endif %}
{% if resource.meta.twitterdata2 %} <meta name="twitter:data2" content="{{ resource.meta.twitterdata2 }}" />{% endif %}

<title>{% block title %}{{ resource.meta.title }}{% endblock %}</title>
<meta name="description" content="{{ resource.meta.description }}">
<meta name="author" content="{{ resource.meta.author }}">

<meta name="viewport" content="{{ resource.meta.viewport or site.context.viewport }}">

{% block css %}
{% endblock css %}
{% block endhead %}{% endblock endhead %}
</head>
<body>

{% block content %}
<div class="site" id="main" role="main">
{% block container %}
<header>
<h1>{{ resource.meta.title }}</h1>
</header>
{% block main %}
{% endblock main %}

{% endblock container %}
<footer>
<div>{% block copyright %}Copyright © {{ resource.meta.created|date_format("%Y") }} {{ resource.meta.author }}
{% endblock copyright %}</div>
</footer>
</div>
{% endblock content %}
{% block js %}
<!-- Javascript at the bottom for fast page loading -->

{% block scripts %}
{% endblock scripts %}

{% endblock js %}
</body>
</html>

+ 9
- 0
site.yaml View File

@@ -4,6 +4,7 @@ media_url: /media # URL where the media files are served from.
base_url: / # The base url for autogenerated links.
plugins:
- hyde.ext.plugins.meta.MetaPlugin
- hyde.ext.plugins.meta.AutoExtendPlugin
- hyde.ext.plugins.text.TextlinksPlugin
context:
data:
@@ -17,3 +18,11 @@ meta:
nodemeta: meta.yaml
author: John-Mark Gurney
charset: utf-8
publisher:
default:
type: hyde.ext.publishers.ssh.SSH
username: jmg
server: gold.funkthat.com
target: /usr/local/www/apache22/encryptthe.net/
command: rsync
opts: --delete-delay --delay-updates -r -e ssh

Loading…
Cancel
Save