Procházet zdrojové kódy

add shareable cards

master
Cian Butler před 3 roky
rodič
revize
21d81ff7a8
Podepsáno nedůvěryhodným uživatelem: butlerx ID GPG klíče: B37CA765BAA89170
5 změnil soubory, kde provedl 57 přidání a 9 odebrání
  1. +2
    -0
      config.toml
  2. +2
    -0
      content/post/2018-04-02.md
  3. +25
    -0
      layouts/_default/index.xml
  4. +28
    -9
      layouts/partials/head.html
  5. binární
      static/favicon.ico

+ 2
- 0
config.toml Zobrazit soubor

@@ -10,3 +10,5 @@ pygmentsCodeFences = true
[params]
hero = "root@rb"
message = "FIX IT!!! FIX IT !!! FIX ITTTTTT!!!!!!!!!"
descriptions = "Tales of fail from Redbrick admins"
twitter = "RedbrickDCU"

+ 2
- 0
content/post/2018-04-02.md Zobrazit soubor

@@ -2,6 +2,8 @@
title: Accidental updates
date: 2018-04-02T21:11:41+01:00
author: butlerx
twitter: cianbutlerx
description: Why you need to lock versions
tags:
- Docker
- PostgrSQL


+ 25
- 0
layouts/_default/index.xml Zobrazit soubor

@@ -0,0 +1,25 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
{{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}}
{{ range (where .Data.Pages "Section" "post") }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{- with .Param "author" -}}<author>{{ . }}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Summary | html }}</description>
</item>
{{ end }}
</channel>
</rss>

+ 28
- 9
layouts/partials/head.html Zobrazit soubor

@@ -1,16 +1,35 @@
<head>
<meta charset="utf-8">
<meta name="description" content="{{ if eq .Description "" }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}">
{{- with $.Param "keywords" }}
<meta name="keywords" content="{{ delimit . "," }}">
{{- end }}
{{- with $.Param "author" }}
<meta name="author" content="{{ . }}">
{{- end }}
{{ .Hugo.Generator }}
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
{{- with $.Param "description" -}}
<meta name="description" content="{{ . }}" >
<meta property="og:description" content="{{ . }}" >
{{- end -}}
{{- with $.Param "keywords" -}}
<meta name="keywords" content="{{ delimit . "," }}">
{{- end -}}
{{- with $.Param "author" -}}
<meta name="author" content="{{ . }}">
{{- end -}}
<meta name="theme-color" content="#2d2d2d">
<meta name="twitter:card" content="summary">
{{- with $.Param "twitter" -}}
<meta name="twitter:creator" content="@{{ . }}">
{{- end -}}
<meta property="og:type" content="blog">
<meta property="og:title"
{{- if .Params.title -}}
content="{{- .Params.Title }} | {{ .Site.Title -}}"
{{- else -}}
content="{{ .Site.Title -}}"
{{- end -}}
>
<meta property="og:url" content="{{ .Site.BaseURL }}">
<meta property="og:site_name" content="{{ .Site.Params.hero }}">
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}" type="text/css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" type="text/css">
<link rel="alternate" href="{{ "index.xml" | relURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}favicon.ico">
<title>{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title>
</head>

binární
static/favicon.ico Zobrazit soubor

Před Za

Načítá se…
Zrušit
Uložit