Aditya Telange
9ac0f391f6
author(partial): fix multiple authors in config displayed incorrectly
...
* is of type `[]interface {}` and not `[]string`
2020-10-25 13:01:49 +05:30
Aditya Telange
44bc299ca3
json-schema: add support for multiple authors
2020-10-25 12:49:58 +05:30
Aditya Telange
5b9eaac130
layouts: use author partial in head and post_meta
2020-10-25 12:47:09 +05:30
Aditya Telange
bc2b82c370
author(partial): init, with support for multiple authors
...
* usage:
author: ["me", "you"]
2020-10-25 12:16:36 +05:30
Aditya Telange
3e84ff0435
post-meta: fix redundant '·'(separator) in end
...
when author is not present
2020-10-25 11:17:54 +05:30
Aditya Telange
413034e43b
social-icons: fix duplicate rel tags
2020-10-23 15:56:41 +05:30
Aditya Telange
834feb9adc
cover: responsive cover: generate responsive images only in "production" env
...
- will reduce render time in development env
2020-10-23 11:35:30 +05:30
Aditya Telange
51c58ad0d5
social-icons: add rel=me
...
* rel=me links allow cross-linking of user's identities, improving SEO
2020-10-23 11:26:28 +05:30
Aditya Telange
16213a37e5
post-meta: improvements
...
- hide zero date (closes #33 )
- fix separator
- refactor
2020-10-22 20:40:00 +05:30
Aditya Telange
684cb2160f
layouts: post_meta as partial
2020-10-22 16:53:24 +05:30
Niek Blankers
21241c212e
relative-cover: init Responsive cover images ( #43 )
...
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
- generates images of different sizes
- browser can choose between set of images w.r.t viewport width
- is enabled by default
- supported image formats :
https://gohugo.io/content-management/image-processing/#target-format
- Customizing site config params:
params:
cover:
responsiveImages: false # if want to disable it
linkFullImages: true # if link original image on clicking cover
2020-10-22 16:42:26 +05:30
Aditya Telange
c0ba1ce20d
social-icons: add svg for medium
...
* icon belong to medium[.]com
* converted to svg with online-convert[.]com
2020-10-19 19:00:01 +05:30
Mehdy Khoshnoody
a153a7cc6f
Add RTL support for multilingual mode ( #47 )
...
Usage:
in site config:
languages:
ar:
languagedirection: rtl
title: مدونتي
weight: 2
* ref: https://gohugo.io/content-management/multilingual/#configure-languages
2020-10-19 14:47:23 +05:30
Aditya Telange
a41f09bb99
extended_footer: init
...
* add placeholder template for extending footer
closes #37
2020-10-18 21:52:22 +05:30
Northerner-coder
b720e4a523
extended_head: init ( #44 )
...
* add placeholder template for extending head
2020-10-18 20:21:42 +05:30
Aditya Telange
7db1be3d73
head: update description and keywords logic
2020-10-17 16:00:46 +05:30
Aditya Telange
353146891e
home-info, profile-mode: enable markdownify for text elements
2020-10-17 15:02:40 +05:30
Aditya Telange
3826200b7c
nav-label: accessibility
2020-10-17 00:05:10 +05:30
Aditya Telange
3edc160c59
nav-label: init
...
* label can be set differently from title
* label can have an optional icon with preffered size
* in site config =>
params:
label:
text: "Home"
icon: /apple-touch-icon.png
iconHeight: 35
2020-10-16 23:56:56 +05:30
Northerner-coder
db52aa9942
layouts: Add DateFormat parameter ( #39 )
...
* User can change Date Format to be displayed in Front Matter
* Formats supported by Hugo can be found here: https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference
2020-10-16 22:12:32 +05:30
Aditya Telange
fb945ba3c1
json-schema: add support for Rich Results: Json schema for structured data ( #36 )
...
* json-schema: init
* sameAs can be set through .Site.Params.schema.sameAs
* if it is not specified but social-icons exsists, we use social-icons for sameAs vars
* .Site.Params.schema.sameAs overrides social-icons
* publisherType can be changed via .Site.Params.schema.publisherType
2020-10-15 10:21:33 +05:30
Aditya Telange
95e6bf1e13
list: show nested sections
...
* shows links to section if _index.md is present
* by this sub-sections can be distinguished properly
* more about this and way to implement: https://gohugo.io/content-management/organization/#index-pages-_indexmd
2020-10-13 18:17:39 +05:30
Aditya Telange
23636ab326
templates: social-meta: prefer cover image over other images
2020-10-12 17:26:45 +05:30
Aditya Telange
306889f68b
head: link custom templates for social meta
2020-10-11 21:08:44 +05:30
Aditya Telange
4a4d0c009c
templates: add cover image to be linked into meta
...
for opengraph, schema and twitter
2020-10-11 21:04:17 +05:30
Aditya Telange
6c4e094c91
templates: Add Twitter Cards, OpenGraph, Schema
...
This code is licensed under Apache License 2.0
and is part of https://github.com/gohugoio/hugo
2020-10-11 20:07:43 +05:30
Aditya Telange
a8abbd3545
post-cover: relative covers need to be explicitely set
...
* change in d819914
and #13
* previous impl breks sites not using `/static` dir as their static location
* hugo supports multiple static directories and previous impl checks only for one
* ref : https://gohugo.io/content-management/static-files/
usage change in post-vars =>
cover:
image: '<relative url>'
relative: true
2020-10-10 19:52:08 +05:30
Aditya Telange
3ca79f59fe
post-cover: fix strange `/./ ` in cover image url 2
...
#13
2020-10-10 19:41:44 +05:30
Aditya Telange
f933372c55
terms: fix unreachable code in taxonomy list
2020-10-10 19:34:13 +05:30
Aditya Telange
2c7cffb617
home-info: let content show upto 5 lines
...
* previously 3
2020-10-08 15:50:20 +05:30
Aditya Telange
724e73facb
social-icons: add buymeacoffee icon
...
* icon belongs to buymeacoffee.com
* edited to fit dual-tone theme
2020-10-08 14:27:43 +05:30
Aditya Telange
82e9b29bf4
post-cover: fix strange `/./ ` in cover image url
...
#13
2020-10-08 09:21:57 +05:30
Aditya Telange
d0c7635a8b
post-cover: enable mardownify
...
* allows users to add links and stuff #17
2020-10-05 14:56:06 +05:30
Aditya Telange
a9e00a3640
theme: set proper conditions
...
for having default-theme with theme-toggle
* can set/unset default theme
* for default-theme: dark/light : theme-toggle will not be visible
* theme-toggle with defaultheme: auto is functional
fixes #25 for #15
2020-10-05 14:34:44 +05:30
Aditya Telange
994c0b56e1
noscript: add noscript tags
...
* hide theme-toggle and
* go-to-top button
when js is disabled
2020-10-05 14:07:23 +05:30
Kian Kasad
c2c32282c1
footer: implement user-defined copyright ( #23 )
2020-10-05 10:04:33 +05:30
Aditya Telange
6a9e9e129a
theme-switch-button: init feature ( #15 )
...
* thanks to https://feathericons.com for svgs
* can be disabled in site config
Params:
disableThemeToggle : true
2020-10-04 20:43:24 +05:30
Aditya Telange
af19236002
header: rm unnecessary logo link
2020-10-04 20:25:39 +05:30
Aditya Telange
a34bcbd74c
toc(partial): generate toc for h1 - h6
...
previously: h1-h4
2020-10-04 18:52:14 +05:30
Aditya Telange
35788daad1
post-cover: add support for adding caption ( #17 )
...
* shown only on single page
usage =>
in page-vars front-matter
cover:
image: '<image path/url>'
alt: '<alt text>'
caption: '<text>'
2020-10-04 18:47:12 +05:30
Aditya Telange
3068647f58
post-cover: use new format
...
usage =>
in page-vars front-matter
cover:
image: '<image path/url>'
alt: '<alt text>'
2020-10-04 18:40:39 +05:30
Aditya Telange
8cab9c9de5
head: support favicon custom path
...
usage =>
params:
assets:
favicon: '<path / external url>'
closes #14
2020-10-04 15:09:50 +05:30
Aditya Telange
d8199140e5
post-cover: add support for relative path for cover image
...
* checks whether path mentioned in `cover` page-variable exists OR is an external url,
else sets the relative path for image w.r.t the post the cover is of.
2020-10-04 09:50:40 +05:30
Aditya Telange
8a8652fbf0
assets: improvements
...
- rm redundant minify's
- url as //assets/<js or css>/<path>
2020-10-03 18:31:08 +05:30
Aditya Telange
46d5200714
head: add meta keywords
2020-10-03 15:16:19 +05:30
Aditya Telange
178b1560e1
head: AlternativeOutputFormats impl as in hugo docs
...
* https://gohugo.io/templates/output-formats/#list-output-formats
2020-10-03 14:47:42 +05:30
Aditya Telange
fcf2f7fb8f
share-icons: update whatsapp share url
2020-10-03 09:46:44 +05:30
Aditya Telange
d18c5b74be
profile-mode: add support for adding subtitle
2020-10-02 14:35:38 +05:30
Aditya Telange
6dcd437146
social-icons: refactor
...
* use easier impl
2020-10-02 13:46:49 +05:30
Aditya Telange
8ff1f10eb7
social-icons: use height and with as css props;
...
rm hardcoded svg height and width
2020-10-02 13:46:22 +05:30