diff options
| author | 2026-02-08 17:31:26 +0300 | |
|---|---|---|
| committer | 2026-02-08 17:31:26 +0300 | |
| commit | 7d6f85d3b8ab064421a359a11b285668877b7d50 (patch) | |
| tree | dd0b5449ec66401c1c14c3bfc4361c9f68f53100 /themes | |
| parent | Поправил таксономию и изображения (diff) | |
| download | blog-master.tar.gz blog-master.tar.bz2 blog-master.tar.xz blog-master.zip | |
Diffstat (limited to '')
| -rw-r--r-- | themes/neonxp/assets/css/main.css | 5 | ||||
| -rw-r--r-- | themes/neonxp/assets/css/paper.css | 5 | ||||
| -rw-r--r-- | themes/neonxp/layouts/_default/section.feed.json | 31 |
3 files changed, 37 insertions, 4 deletions
diff --git a/themes/neonxp/assets/css/main.css b/themes/neonxp/assets/css/main.css index 7edc2db..9d07479 100644 --- a/themes/neonxp/assets/css/main.css +++ b/themes/neonxp/assets/css/main.css @@ -126,9 +126,10 @@ img { } .menu-icon { - height: 16px; - width: 16px; + height: 24px; + width: 24px; border-radius: 0; + margin-bottom: -0.5rem; } a.btn-primary { diff --git a/themes/neonxp/assets/css/paper.css b/themes/neonxp/assets/css/paper.css index 35130ab..eb6b982 100644 --- a/themes/neonxp/assets/css/paper.css +++ b/themes/neonxp/assets/css/paper.css @@ -137,8 +137,9 @@ figure { max-width: 800px; } -figure img { - width: 100%; + +img { + max-width: 100%; } @media (max-width: 900px) { diff --git a/themes/neonxp/layouts/_default/section.feed.json b/themes/neonxp/layouts/_default/section.feed.json new file mode 100644 index 0000000..d7d70d0 --- /dev/null +++ b/themes/neonxp/layouts/_default/section.feed.json @@ -0,0 +1,31 @@ +{ + "version": "https://jsonfeed.org/version/1", + "title": {{ .Site.Title | jsonify }}, + "home_page_url": {{ .Permalink | jsonify }}, + {{ with .OutputFormats.Get "json" -}} + "feed_url": {{ .Permalink | jsonify }}, + {{- end }} + {{- if .Site.Params.author -}} + "author": { + "name": {{ .Site.Params.author | jsonify }} + }, + {{ end -}} + {{- if .Data.Pages -}} + "items": [ + {{ range $index, $element := first 10 .Data.Pages -}} + {{ if $index }},{{end}} { + "title": {{ $element.Title | jsonify }}, + "id": {{ $element.Permalink | jsonify }}, + "url": {{ $element.Permalink | jsonify }}, + "summary": {{ $element.Summary | jsonify }}, + {{- if eq $element.Type "link" -}} + "external_url": {{ $element.Params.link | jsonify }}, + {{- end -}} + "content_html": {{ $element.Content | jsonify }}, + "content_text": {{ $element.Plain | jsonify }}, + "date_published": {{ $element.Date.Format "2006-02-01T15:04:05-0700" | jsonify }} + } + {{- end }} + ] + {{ end -}} +}
\ No newline at end of file |
