Преглед на файлове

feat: indiewebify

pull/1/head
Rohan Verma преди 6 години
родител
ревизия
00c215b322
променени са 7 файла, в които са добавени 133 реда и са изтрити 8 реда
  1. +5
    -1
      layouts/_default/baseof.html
  2. +15
    -5
      layouts/index.html
  3. +12
    -0
      layouts/partials/footer/hcard.html
  4. +3
    -0
      layouts/partials/head/custom.html
  5. +1
    -2
      layouts/partials/head/favicon.html
  6. +41
    -0
      layouts/partials/post/meta.html
  7. +56
    -0
      layouts/post/single.html

+ 5
- 1
layouts/_default/baseof.html Целия файл

@@ -51,6 +51,7 @@
</noscript>
{{ end }}
{{ template "_internal/google_analytics_async.html" . }}
{{ partial "head/custom.html" . }}
</head>
{{ $hackcss_disabled := .Site.Params.hackcss.disabled | default false }}
{{ $hackcss_mode := .Site.Params.hackcss.mode | default "hack" }}
@@ -58,7 +59,10 @@
<body class="{{ if ne $hackcss_disabled true }}{{ $hackcss_mode }} {{ $hackcss_palette }} main container{{ end }}">
<header>{{ block "header" . }}{{ end }}</header>
<main>{{ block "main" . }}{{ end }}</main>
<footer>{{ block "footer" . }}{{ end }}</footer>
<footer>
{{ block "footer" . }}{{ end }}
{{ partial "footer/hcard.html" . }}
</footer>
{{ $defaults := .Site.Params.defaults.modules }}
{{ $modules := .Site.Params.modules }}
{{ if (or $modules $defaults) }}

+ 15
- 5
layouts/index.html Целия файл

@@ -64,11 +64,21 @@

<h2>Social</h2>
<table>
<tr><td>github</td> <td><a href="https://github.com/rhnvrm">https://github.com/rhnvrm</a></td></tr>
<tr><td>keybase</td> <td><a href="https://keybase.io/rhnvrm">https://keybase.io/rhnvrm</a></td></tr>
<tr><td>twitter</td> <td><a href="https://twitter.com/rhnvrm">https://twitter.com/rhnvrm</a></td></tr>
<tr><td>linkedin</td> <td><a href="https://www.linkedin.com/in/rhnvrm/">https://www.linkedin.com/in/rhnvrm/</a></td></tr>
<tr><td>youtube</td> <td><a href="https://www.youtube.com/user/TheRohanVerma">https://www.youtube.com/user/TheRohanVerma</a></td></tr>
<tr><td>github</td> <td>
<a target="_blank" rel="me" data-hint="Github" title="Github" href="https://github.com/rhnvrm">https://github.com/rhnvrm</a>
</td></tr>
<tr><td>keybase</td> <td>
<a target="_blank" rel="me" data-hint="Keybase" title="Keybase" href="https://keybase.io/rhnvrm">https://keybase.io/rhnvrm</a>
</td></tr>
<tr><td>twitter</td> <td>
<a target="_blank" rel="me" data-hint="Twitter" title="Twitter" href="https://twitter.com/rhnvrm">https://twitter.com/rhnvrm</a>
</td></tr>
<tr><td>linkedin</td> <td>
<a target="_blank" data-hint="Linkedin" title="Linkedin" href="https://www.linkedin.com/in/rhnvrm/">https://www.linkedin.com/in/rhnvrm/</a>
</td></tr>
<tr><td>youtube</td> <td>
<a target="_blank" data-hint="Youtube" title="Youtube" href="https://www.youtube.com/user/TheRohanVerma">https://www.youtube.com/user/TheRohanVerma</a>
</td></tr>
</table>

<h2>Projects</h2>

+ 12
- 0
layouts/partials/footer/hcard.html Целия файл

@@ -0,0 +1,12 @@
<hr>
<p class="h-card vcard">
<img class="u-photo" src="/wp-content/uploads/me.jpg" alt="" width="14px"/>

<a style="text-decoration: none" href={{ .Site.BaseURL }} class="p-name u-url url author metatag" rel="me">
Rohan Verma
</a> /
<a class="p-nickname u-email email metatag" rel="me" href="mailto:[email protected]">
rhnvrm
</a>
</p>
<hr>

+ 3
- 0
layouts/partials/head/custom.html Целия файл

@@ -0,0 +1,3 @@
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto+Slab:400,700" rel="stylesheet">
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<link rel="webmention" href="https://webmention.io/rhnvrm/webmention" />

+ 1
- 2
layouts/partials/head/favicon.html Целия файл

@@ -1,2 +1 @@
<link rel="icon" sizes="any" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAACnUlEQVRIx6XVzWtcVRjH8c/cebkJOq1gNDi1WJLWpC9YmqAUpVDRRQUXUruy1FURRP+AlLbYQB18W7vwD1BcqLjoQrSYbSHWRhiJxJQgdNTErDSTXNOZ62JeMve20zLxWVwuz/Oc7znneX7nHP6nZRAYkt/G2E1/aeQw5KzfEqHQkyoaXZ7AQfM2E1l7fGIZdjmTYu/wupzAiFNetUcg54wHUms/axe5e2zuJe8aR8WUmTvicXtpvWzYBYeFQhMueqRXWm/AqP2d/0NG+gds+LfzH1nvH/CLq60+NHzj115pvYv4j4v+9rzYdz60dm9AwY6Et2hQ0bILhvGHqOXJJrIKW4AxryRCgyZEKSFNikWJrL1bgIpPUyuIfKbe5cmKfaWmaExowYrYwBag4XYCUNdQT/ka6kZddlxexaV2iYM+Ds+g804astOzynbfr413WsmxTv4hT/UPiNv63zoJ/QGqZjqd+cmN+wnpbuIuC72gYM60W92AIAXKClKiycnKWvKWfQoWrQqaq28OPOi1RPqASVJCOirXOV6jYNyVNmDeF3hQSaRqU1HsS3WDSmJVG7JyvlZTUJJXtUbzhsq1rseaZ5wzYd0VH6iJ1Iw675jYjLIlkZqdppwQmlV2vXlDtvf+mI88J4MRt72PostOCvCEgrdRMOVNOez2kNPJNj5tUqZVrpcNY8zxVjTwon0oOdGaMOOoI0nAQFfVQ/nOt31wC8gLu/oUJgFzljoau+ZPLKh00ucsomq2o8DFdrQNWDBtXmTNt95Tw4pLZm1Yd820Vawp+15N5GfvuJlUYsPnfnDAuh8tKyJ21SmHxW641ZroutOOCFXcbKskg0e94ffUZbXXfEpI4xZST9vjPrbSfFwf3ubjupqYZHv2HylrtUljNvuGAAAAAElFTkSuQmCC">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto+Slab:400,700" rel="stylesheet">
<link rel="icon" sizes="any" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAACnUlEQVRIx6XVzWtcVRjH8c/cebkJOq1gNDi1WJLWpC9YmqAUpVDRRQUXUruy1FURRP+AlLbYQB18W7vwD1BcqLjoQrSYbSHWRhiJxJQgdNTErDSTXNOZ62JeMve20zLxWVwuz/Oc7znneX7nHP6nZRAYkt/G2E1/aeQw5KzfEqHQkyoaXZ7AQfM2E1l7fGIZdjmTYu/wupzAiFNetUcg54wHUms/axe5e2zuJe8aR8WUmTvicXtpvWzYBYeFQhMueqRXWm/AqP2d/0NG+gds+LfzH1nvH/CLq60+NHzj115pvYv4j4v+9rzYdz60dm9AwY6Et2hQ0bILhvGHqOXJJrIKW4AxryRCgyZEKSFNikWJrL1bgIpPUyuIfKbe5cmKfaWmaExowYrYwBag4XYCUNdQT/ka6kZddlxexaV2iYM+Ds+g804astOzynbfr413WsmxTv4hT/UPiNv63zoJ/QGqZjqd+cmN+wnpbuIuC72gYM60W92AIAXKClKiycnKWvKWfQoWrQqaq28OPOi1RPqASVJCOirXOV6jYNyVNmDeF3hQSaRqU1HsS3WDSmJVG7JyvlZTUJJXtUbzhsq1rseaZ5wzYd0VH6iJ1Iw675jYjLIlkZqdppwQmlV2vXlDtvf+mI88J4MRt72PostOCvCEgrdRMOVNOez2kNPJNj5tUqZVrpcNY8zxVjTwon0oOdGaMOOoI0nAQFfVQ/nOt31wC8gLu/oUJgFzljoau+ZPLKh00ucsomq2o8DFdrQNWDBtXmTNt95Tw4pLZm1Yd820Vawp+15N5GfvuJlUYsPnfnDAuh8tKyJ21SmHxW641ZroutOOCFXcbKskg0e94ffUZbXXfEpI4xZST9vjPrbSfFwf3ubjupqYZHv2HylrtUljNvuGAAAAAElFTkSuQmCC">

+ 41
- 0
layouts/partials/post/meta.html Целия файл

@@ -0,0 +1,41 @@
{{/*
Copyright (C) 2019 Josh Habdas <[email protected]>

This file is part of After Dark.

After Dark is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

After Dark is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ -}}
<a style="margin-right:2px;" class="u-url" href="{{ .Permalink }}">
<svg style="margin-bottom: -3px" class="i-external" viewBox="0 0 32 32" width="16" height="16" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
<path d="M14 9 L3 9 3 29 23 29 23 18 M18 4 L28 4 28 14 M28 4 L14 18"></path>
</svg>
Permalink
</a>
<svg style="margin-bottom:-3px" class="i-clock" viewBox="0 0 32 32" width="16" height="16" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.25%">
<circle cx="16" cy="16" r="14" />
<path d="M16 8 L16 16 20 20" />
</svg>
<span>{{ .ReadingTime }} minute read</span>
<svg style="margin-bottom: -3px" class="i-edit" viewBox="0 0 32 32" width="16" height="16" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.25%">
<path d="M30 7 L25 2 5 22 3 29 10 27 Z M21 6 L26 11 Z M5 22 L10 27 Z" />
</svg>
{{ if .PublishDate.IsZero }}
Published: <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05-07:00" }}">{{ .Date.Format "2 Jan, 2006" }}</time>
{{ else if lt .PublishDate .Lastmod }}
Modified: <time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" }}">{{ .Lastmod.Format "2 Jan, 2006" }}</time>
{{ else }}
Published: <time datetime="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" }}">{{ .PublishDate.Format "2 Jan, 2006" }}</time>
{{ end }}

<span class="p-author">({{ .Params.author | default .Site.Author.name }})</span>

+ 56
- 0
layouts/post/single.html Целия файл

@@ -0,0 +1,56 @@
{{/*
Copyright (C) 2019 Josh Habdas <[email protected]>

This file is part of After Dark.

After Dark is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

After Dark is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/}}

{{ define "header" }}
{{ partial "masthead.html" . }}
{{ end }}
{{ define "main" }}
{{ if ne $.Site.Params.hackcss.disabled true }}
{{ with resources.Get "css/conditional/layouts/post/single.css" | minify }}
<style>{{ .Content | safeCSS }}</style>
{{ end }}
{{ end }}
<article class="h-entry" itemscope itemtype="https://schema.org/BlogPosting">
{{ template "_internal/schema.html" . }}
<header>
<h1 class="post-title p-name" itemprop="headline name">{{ .Title }}</h1>
<p class="muted">
{{ partial "post/meta.html" . }}
</p>
{{ if .Description }}
<blockquote itemprop="description">{{ .Description }}</blockquote>
{{ end }}
{{ partial "image/header.html" . }}
</header>
{{ partial "toc-maybe.html" . }}
<div class="post-content clearfix e-content" itemprop="articleBody">
{{ .Content }}
</div>
<footer>
<hr>
{{ partial "post/byline.html" . }}
{{ partial "post/related-content.html" . }}
</footer>
</article>
{{ end }}
{{ define "footer" }}
<small class="muted">
{{ partial "copyright-notice.html" . }}
</small>
{{ end }}

Loading…
Отказ
Запис