diff options
author | Volpeon <git@volpeon.ink> | 2021-11-12 20:39:46 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-11-12 20:39:46 +0100 |
commit | 9763ea03164f983d77051a84609dcae80885b1c0 (patch) | |
tree | 0d667634827c533fc1bb880c8e910e61581156e8 /templates/layouts | |
parent | Add focus to header (diff) | |
download | volpeon.ink-9763ea03164f983d77051a84609dcae80885b1c0.tar.gz volpeon.ink-9763ea03164f983d77051a84609dcae80885b1c0.tar.bz2 volpeon.ink-9763ea03164f983d77051a84609dcae80885b1c0.zip |
Improved page
Diffstat (limited to 'templates/layouts')
-rw-r--r-- | templates/layouts/categorized_list.html | 54 | ||||
-rw-r--r-- | templates/layouts/index.html | 8 | ||||
-rw-r--r-- | templates/layouts/list.html | 50 | ||||
-rw-r--r-- | templates/layouts/page.html | 2 |
4 files changed, 41 insertions, 73 deletions
diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index fa0f000..f8c3fab 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html | |||
@@ -6,26 +6,26 @@ $body$ | |||
6 | </div> | 6 | </div> |
7 | 7 | ||
8 | <div class="c-card-list"> | 8 | <div class="c-card-list"> |
9 | $for(pages.asc_title)$ | 9 | $for(pages.all)$ |
10 | $if(it.pages)$ | 10 | $if(it.pages)$ |
11 | <h2 class="c-card-list__category-header"> | 11 | <h2 class="c-card-list__category-header"> |
12 | <a href="$it.url.rel$">$it.title$</a> | 12 | <a href="$it.url.rel$">$it.title$</a> |
13 | </h2> | 13 | </h2> |
14 | <div class="c-card-list__category-content$if(pages.asc_title.list_grid)$ c-card-list__category-content--grid$endif$"> | 14 | <div class="c-card-list__category-content$if(it.list_grid)$ c-card-list__category-content--grid$endif$"> |
15 | $if(pages.asc_title.show_dates)$ | 15 | $for(it.pages.all)$ |
16 | $for(it.pages.desc_date)$ | 16 | <a href="$it.url.rel$" class="c-card-list__card c-card"> |
17 | <a href="$it.url.rel$" class="c-card-list__card c-card"> | 17 | $if(pages.all.show_read_indicators)$ |
18 | $if(pages.asc_title.show_read_indicators)$ | 18 | <div class="c-card__block c-card__block--indicator"></div> |
19 | <div class="c-card__block c-card__block--indicator"></div> | 19 | $endif$ |
20 | $endif$ | 20 | $if(pages.all.icon)$ |
21 | $if(pages.asc_title.icon)$ | 21 | <svg class="c-card__block o-icon" width="1em" height="1em"> |
22 | <svg class="c-card__block o-icon"> | 22 | <use href="/symbols.svg#icon-$pages.all.icon$"></use> |
23 | <use href="/symbols.svg#icon-$pages.asc_title.icon$"></use> | 23 | </svg> |
24 | </svg> | 24 | $endif$ |
25 | $endif$ | 25 | <div class="c-card__block c-card__block--main"> |
26 | <div class="c-card__block c-card__block--main"> | 26 | $it.title$ |
27 | $it.title$ | 27 | </div> |
28 | </div> | 28 | $if(it.date)$ |
29 | <time datetime="$it.date.yyyy_mm_dd$" class="c-card__block u-fs0"> | 29 | <time datetime="$it.date.yyyy_mm_dd$" class="c-card__block u-fs0"> |
30 | <small class="u-dn@sm-hi"> | 30 | <small class="u-dn@sm-hi"> |
31 | $it.date.short$ | 31 | $it.date.short$ |
@@ -34,25 +34,9 @@ $body$ | |||
34 | $it.date.long$ | 34 | $it.date.long$ |
35 | </small> | 35 | </small> |
36 | </time> | 36 | </time> |
37 | </a> | 37 | $endif$ |
38 | $endfor$ | 38 | </a> |
39 | $else$ | 39 | $endfor$ |
40 | $for(it.pages.asc_title)$ | ||
41 | <a href="$it.url.rel$" class="c-card-list__card c-card"> | ||
42 | $if(pages.asc_title.show_read_indicators)$ | ||
43 | <div class="c-card__block c-card__block--indicator"></div> | ||
44 | $endif$ | ||
45 | $if(pages.asc_title.icon)$ | ||
46 | <svg class="c-card__block o-icon"> | ||
47 | <use href="/symbols.svg#icon-$pages.asc_title.icon$"></use> | ||
48 | </svg> | ||
49 | $endif$ | ||
50 | <div class="c-card__block c-card__block--main"> | ||
51 | $it.title$ | ||
52 | </div> | ||
53 | </a> | ||
54 | $endfor$ | ||
55 | $endif$ | ||
56 | </div> | 40 | </div> |
57 | $endif$ | 41 | $endif$ |
58 | $endfor$ | 42 | $endfor$ |
diff --git a/templates/layouts/index.html b/templates/layouts/index.html index 8822f6f..1eca10f 100644 --- a/templates/layouts/index.html +++ b/templates/layouts/index.html | |||
@@ -18,7 +18,7 @@ $body$ | |||
18 | <div class="c-card-list__card c-card"> | 18 | <div class="c-card-list__card c-card"> |
19 | $endif$ | 19 | $endif$ |
20 | $if(it.icon)$ | 20 | $if(it.icon)$ |
21 | <svg class="c-card__block o-icon"> | 21 | <svg class="c-card__block o-icon" width="1em" height="1em"> |
22 | <use href="/symbols.svg#icon-$it.icon$"></use> | 22 | <use href="/symbols.svg#icon-$it.icon$"></use> |
23 | </svg> | 23 | </svg> |
24 | $endif$ | 24 | $endif$ |
@@ -27,7 +27,7 @@ $body$ | |||
27 | <small class="u-db">$it.username$</small> | 27 | <small class="u-db">$it.username$</small> |
28 | </div> | 28 | </div> |
29 | $if(it.url)$ | 29 | $if(it.url)$ |
30 | <svg class="c-card__block o-icon"> | 30 | <svg class="c-card__block o-icon" width="1em" height="1em"> |
31 | <use href="/symbols.svg#icon-arrow-up-right"></use> | 31 | <use href="/symbols.svg#icon-arrow-up-right"></use> |
32 | </svg> | 32 | </svg> |
33 | $endif$ | 33 | $endif$ |
@@ -48,7 +48,7 @@ $body$ | |||
48 | $for(it.pages.all)$ | 48 | $for(it.pages.all)$ |
49 | <a href="$it.url.rel$" class="c-card-list__card c-card"> | 49 | <a href="$it.url.rel$" class="c-card-list__card c-card"> |
50 | $if(pages.by_id.projects.pages.all.icon)$ | 50 | $if(pages.by_id.projects.pages.all.icon)$ |
51 | <svg class="c-card__block o-icon"> | 51 | <svg class="c-card__block o-icon" width="1em" height="1em"> |
52 | <use href="/symbols.svg#icon-$pages.by_id.projects.pages.all.icon$"></use> | 52 | <use href="/symbols.svg#icon-$pages.by_id.projects.pages.all.icon$"></use> |
53 | </svg> | 53 | </svg> |
54 | $endif$ | 54 | $endif$ |
@@ -56,7 +56,7 @@ $body$ | |||
56 | <small class="u-db">$pages.by_id.projects.pages.all.title$</small> | 56 | <small class="u-db">$pages.by_id.projects.pages.all.title$</small> |
57 | <strong class="u-db">$it.title$</strong> | 57 | <strong class="u-db">$it.title$</strong> |
58 | </div> | 58 | </div> |
59 | <svg class="c-card__block o-icon"> | 59 | <svg class="c-card__block o-icon" width="1em" height="1em"> |
60 | <use href="/symbols.svg#icon-arrow-right"></use> | 60 | <use href="/symbols.svg#icon-arrow-right"></use> |
61 | </svg> | 61 | </svg> |
62 | </a> | 62 | </a> |
diff --git a/templates/layouts/list.html b/templates/layouts/list.html index c0045c0..208b267 100644 --- a/templates/layouts/list.html +++ b/templates/layouts/list.html | |||
@@ -7,20 +7,20 @@ $body$ | |||
7 | 7 | ||
8 | <div class="c-card-list"> | 8 | <div class="c-card-list"> |
9 | <div class="c-card-list__category-content$if(list_grid)$ c-card-list__category-content--grid$endif$"> | 9 | <div class="c-card-list__category-content$if(list_grid)$ c-card-list__category-content--grid$endif$"> |
10 | $if(show_dates)$ | 10 | $for(pages.all)$ |
11 | $for(pages.desc_date)$ | 11 | <a href="$it.url.rel$" class="c-card-list__card c-card"> |
12 | <a href="$it.url.rel$" class="c-card-list__card c-card"> | 12 | $if(show_read_indicators)$ |
13 | $if(show_read_indicators)$ | 13 | <div class="c-card__block c-card__block--indicator"></div> |
14 | <div class="c-card__block c-card__block--indicator"></div> | 14 | $endif$ |
15 | $endif$ | 15 | $if(icon)$ |
16 | $if(icon)$ | 16 | <svg class="c-card__block o-icon"> |
17 | <svg class="c-card__block o-icon"> | 17 | <use href="/symbols.svg#icon-$icon$"></use> |
18 | <use href="/symbols.svg#icon-$icon$"></use> | 18 | </svg> |
19 | </svg> | 19 | $endif$ |
20 | $endif$ | 20 | <div class="c-card__block c-card__block--main"> |
21 | <div class="c-card__block c-card__block--main"> | 21 | $it.title$ |
22 | $it.title$ | 22 | </div> |
23 | </div> | 23 | $if(it.date)$ |
24 | <time datetime="$it.date.yyyy_mm_dd$" class="c-card__block u-fs0"> | 24 | <time datetime="$it.date.yyyy_mm_dd$" class="c-card__block u-fs0"> |
25 | <small class="u-dn@sm-hi"> | 25 | <small class="u-dn@sm-hi"> |
26 | $it.date.short$ | 26 | $it.date.short$ |
@@ -29,25 +29,9 @@ $body$ | |||
29 | $it.date.long$ | 29 | $it.date.long$ |
30 | </small> | 30 | </small> |
31 | </time> | 31 | </time> |
32 | </a> | 32 | $endif$ |
33 | $endfor$ | 33 | </a> |
34 | $else$ | 34 | $endfor$ |
35 | $for(pages.asc_title)$ | ||
36 | <a href="$it.url.rel$" class="c-card-list__card c-card"> | ||
37 | $if(show_read_indicators)$ | ||
38 | <div class="c-card__block c-card__block--indicator"></div> | ||
39 | $endif$ | ||
40 | $if(icon)$ | ||
41 | <svg class="c-card__block o-icon"> | ||
42 | <use href="/symbols.svg#icon-$icon$"></use> | ||
43 | </svg> | ||
44 | $endif$ | ||
45 | <div class="c-card__block c-card__block--main"> | ||
46 | $it.title$ | ||
47 | </div> | ||
48 | </a> | ||
49 | $endfor$ | ||
50 | $endif$ | ||
51 | </div> | 35 | </div> |
52 | </div> | 36 | </div> |
53 | </section> | 37 | </section> |
diff --git a/templates/layouts/page.html b/templates/layouts/page.html index e406d99..f1060ca 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html | |||
@@ -1,6 +1,6 @@ | |||
1 | <div class="s-body"> | 1 | <div class="s-body"> |
2 | <section class="l-container l-container--pad-x l-container--pad-y l-container--content s-colored-links s-headlines"> | 2 | <section class="l-container l-container--pad-x l-container--pad-y l-container--content s-colored-links s-headlines"> |
3 | $if(show_date)$ | 3 | $if(date)$ |
4 | <div class="s-body__meta"> | 4 | <div class="s-body__meta"> |
5 | $date.long$ | 5 | $date.long$ |
6 | </div> | 6 | </div> |