diff --git a/assets/scss/index.scss b/assets/scss/index.scss index 669108f..6bed097 100644 --- a/assets/scss/index.scss +++ b/assets/scss/index.scss @@ -325,7 +325,7 @@ a { .title h1 { font-size: xxx-large; - padding-block-end: 3rem; + margin-block-end: 3rem; } main > .content { @@ -340,6 +340,47 @@ main > .content { flex-grow: 1; } +.list { + margin-block-start: 2rem; +} + +.list > li { + list-style: none; + margin: 0.5rem; +} + +.list > article { + margin: 0.5rem; + padding: 0.5rem; + border: 2px solid gray; + border-radius: 6px; +} + +.list > article > h3 { + margin: 0px; + padding-block: 0.25rem; + font-size: x-large; +} + +.list > article > .meta { + font-size: smaller; + padding-block-end: 1rem; +} + +.meta > span { + padding-inline-end: 1rem; +} + +.list > article > .more { + display: block; + width: 100%; + text-align: right; + font-size: x-large; + border: none; + background: inherit; + color: {{ .Site.Params.color.secondary }}; +} + .section { padding-top: 2rem; padding-bottom: 2.5rem; @@ -494,4 +535,4 @@ img { color: gray; font-size: small; margin: 0px; -} \ No newline at end of file +} diff --git a/layouts/_default/li.html b/layouts/_default/li.html new file mode 100644 index 0000000..a0e714c --- /dev/null +++ b/layouts/_default/li.html @@ -0,0 +1,4 @@ +
  • + {{ .LinkTitle }} +
    {{ .Date.Format "Mon, Jan 2, 2006" }}
    +
  • diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 2f52ab9..0ecaf47 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -11,7 +11,7 @@
    {{ range .Pages }} -

    {{ .Title }}

    + {{ .Render "summary" }} {{ end }}
    diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2400692..8da6245 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,18 +1,27 @@ {{ define "main" }} -
    - {{ with .Title }} -
    -

    {{ . }}

    -
    -
    - {{ end }} - - {{ if gt (.TableOfContents | findRE `
  • ` | len) 4}} -
    - {{ .TableOfContents }} -
    -
    - {{ end }} - {{ .Content }} +
    +
    + {{ .Date.Format "2006-01-02" }} + ⏱ {{.ReadingTime}} min + {{ with .Params.tags }} + + {{ range . }} + #{{ . }} + {{ end }} + + {{ end }} +
    + {{ with .Title }} +
    +

    {{ . }}

    +
    + {{ end }} + {{ if gt (.TableOfContents | findRE `
  • ` | len) 4}} +
    + {{ .TableOfContents }} +
    -{{ end }} \ No newline at end of file + {{ end }} + {{ .Content }} +
  • +{{ end }} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index e69de29..0ddc2c9 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -0,0 +1,16 @@ +
    +

    {{ .Title }}

    +
    + {{ .Date.Format "2006-01-02" }} + ⏱ {{.ReadingTime}} min + {{ with .Params.tags }} + + {{ range . }} + #{{ . }} + {{ end }} + + {{ end }} +
    + {{ .Summary }} + +
    diff --git a/layouts/contact.vcf b/layouts/contact.vcf new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/layouts/contact.vcf @@ -0,0 +1 @@ +test