fix lightbox, added image in rss, added rss topright link
This commit is contained in:
parent
d2bf793c27
commit
2543e0879b
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
title = "Jefklak's Codex: About"
|
||||
disableComments = true
|
||||
+++
|
||||
|
||||
# About the Codex
|
||||
|
|
|
@ -5,6 +5,12 @@
|
|||
</head>
|
||||
<body>
|
||||
<a name="top" id="top"></a>
|
||||
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
<a href="{{ .RelPermalink }}" id="csslink" target="_blank">
|
||||
<img src="/img/rss.png" />
|
||||
</a>
|
||||
{{ end }}
|
||||
<div id="all">
|
||||
<div class="container-fluid">
|
||||
<div class="row row-offcanvas row-offcanvas-left">
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
{{- $baseurl := .Site.BaseURL -}}
|
||||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- if or $.IsHome $.IsSection -}}
|
||||
{{- $pages = $pctx.RegularPages -}}
|
||||
{{- else -}}
|
||||
{{- $pages = $pctx.Pages -}}
|
||||
{{- end -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
{{- end -}}
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<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>
|
||||
<generator>Hugo -- gohugo.io</generator>{{ 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 $pages }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>
|
||||
{{ `<![CDATA[ ` | safeHTML }}<img align="left" hspace="5" src="{{ $baseurl }}{{ .Params.image }}"/>
|
||||
|
||||
{{ .Summary | html }}
|
||||
]]>
|
||||
</description>
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
|
@ -14,10 +14,14 @@
|
|||
</span> |
|
||||
<span title="Last Modified Date">
|
||||
<i class='fa fa-calendar-check-o'></i> {{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}
|
||||
</span> |
|
||||
</span>
|
||||
|
||||
{{ if (not .Params.disableComments) }}
|
||||
|
|
||||
<span title="Comments">
|
||||
<i class="fa fa-comments-o"></i> <a href="{{ .Permalink }}#commento"></a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</span>
|
||||
</h5>
|
||||
<hr/>
|
||||
|
|
|
@ -49,10 +49,13 @@
|
|||
color: var(--accent) !important;
|
||||
}
|
||||
|
||||
.commento-root .commento-card .commento-body p,
|
||||
.commento-root textarea,
|
||||
.commento-name {
|
||||
font-size: 14pt !important;
|
||||
font-size: 14pt !important;
|
||||
}
|
||||
|
||||
.commento-root .commento-card .commento-body p,
|
||||
.commento-root textarea {
|
||||
font-size: 12pt !important;
|
||||
}
|
||||
|
||||
.commento-root *,
|
||||
|
@ -92,6 +95,13 @@ body {
|
|||
font-size: 14pt;
|
||||
}
|
||||
|
||||
#csslink {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
z-index: 99;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
@ -102,7 +112,7 @@ footer {
|
|||
}
|
||||
|
||||
@media only screen and (min-width: 1200px) {
|
||||
footer {
|
||||
footer, #csslink {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 6.4 KiB |
|
@ -71,10 +71,11 @@ $(function() {
|
|||
const _appendChild = Node.prototype.appendChild;
|
||||
|
||||
Node.prototype.appendChild = function(el) {
|
||||
_appendChild.apply(this, arguments);
|
||||
const result = _appendChild.apply(this, arguments);
|
||||
if(el.id === elId) {
|
||||
setTimeout(afterFn, 100);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue