diff options
author | johannst <johannes.stoelp@gmail.com> | 2021-05-09 23:05:00 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2021-05-09 23:05:00 +0200 |
commit | 2cda5b615eb84f0582d68be7685f95b3f333a08e (patch) | |
tree | e24cb6cbd05c4960cad0ffd95e38c6149665629f /templates | |
parent | e750a6964eca44351a6347f2b6435db0e883cd48 (diff) | |
download | blog-2cda5b615eb84f0582d68be7685f95b3f333a08e.tar.gz blog-2cda5b615eb84f0582d68be7685f95b3f333a08e.zip |
add hyde index.html override (vanilla commit)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..bc5cca2 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,71 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + + <!-- Enable responsiveness on mobile devices--> + <!-- viewport-fit=cover is to support iPhone X rounded corners and notch in landscape--> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, viewport-fit=cover"> + + <title>{% block title %}{{ config.title }}{% endblock title %}</title> + + <!-- CSS --> + <link rel="stylesheet" href="{{ get_url(path="print.css", trailing_slash=false) }}" media="print"> + <link rel="stylesheet" href="{{ get_url(path="poole.css", trailing_slash=false) }}"> + <link rel="stylesheet" href="{{ get_url(path="hyde.css", trailing_slash=false) }}"> + <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface"> + + {% if config.generate_feed %} + <link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}"> + {% endif %} + + {% block extra_head %} + {% endblock extra_head %} + </head> + + <body class="{{ config.extra.hyde_theme }} {% if config.extra.hyde_reverse %}layout-reverse{% endif %}"> + {% block sidebar %} + <div class="sidebar"> + <div class="container {% if config.extra.hyde_sticky %}sidebar-sticky{% endif %}"> + <div class="sidebar-about"> + {% block sidebar_about %} + <a href="{{ config.base_url }}"><h1>{{ config.title }}</h1></a> + {% if config.description %} + <p class="lead">{{config.description}}</p> + {% endif %} + {% endblock sidebar_about %} + </div> + + <ul class="sidebar-nav"> + {% block sidebar_nav %} + {% for link in config.extra.hyde_links %} + <li class="sidebar-nav-item"><a href="{{link.url}}">{{link.name}}</a></li> + {% endfor %} + {% endblock sidebar_nav %} + </ul> + </div> + </div> + {% endblock sidebar %} + + <div class="content container"> + {% block content %} + <div class="posts"> + {% for page in section.pages | reverse %} + <div class="post"> + <h1 class="post-title"> + <a href="{{ page.permalink }}"> + {{ page.title }} + </a> + </h1> + + <span class="post-date">{{ page.date | date(format="%Y-%m-%d") }}</span> + </div> + {% endfor %} + </div> + {% endblock content %} + </div> + + </body> + +</html> |