Skip to content

Commit 022a1ec

Browse files
authored
Adjustments for landing page top section (#16411)
* Don't show popular article descriptions * Add more * Truncate guides descriptions * Use shorter dates, borders only on top/bottom * Add "View all" links * Make them go places * Remove "View all" for Popular * Populate some real popular articles * Borked a thing, woopsy * Use %B %d for full month name
1 parent 0babb6a commit 022a1ec

2 files changed

Lines changed: 27 additions & 13 deletions

File tree

content/actions/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ featuredLinks:
1515
popular:
1616
- /actions/reference/workflow-syntax-for-github-actions
1717
- /actions/reference/events-that-trigger-workflows
18+
- /actions/learn-github-actions
19+
- /actions/reference/context-and-expression-syntax-for-github-actions
20+
- /actions/reference/workflow-commands-for-github-actions
21+
- /actions/reference/environment-variables
1822
changelog:
1923
- title: Self-Hosted Runner Group Access Changes
2024
date: '2020-10-16'

layouts/product-landing.html

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,41 +28,51 @@ <h1 class="mb-3 font-mktg">{{ page.shortTitle }}</h1>
2828
<!-- Article links -->
2929
<div class="d-lg-flex gutter my-6 py-6">
3030
<div class="col-12 col-lg-4 mb-4 mb-lg-0">
31-
<div class="featured-links-heading pb-3 mb-4 border-bottom">
32-
<h3 class="f5 text-normal text-mono text-uppercase color-gray-5">{% data ui.toc.guides %}</h3>
31+
<div class="featured-links-heading mb-4 d-flex flex-items-baseline">
32+
<h3 class="f4 text-normal text-mono text-uppercase color-gray-5">{% data ui.toc.guides %}</h3>
33+
<a href="/{{ currentPath }}/guides" class="ml-4">View all {% octicon "arrow-right" height="14" class="v-align-middle" %}</a>
3334
</div>
3435
<ul class="list-style-none">
3536
{% for link in featuredLinks.guides %}
36-
<li class="Box px-3 py-1 mb-2">
37-
{% include featured-link %}
37+
<li class="border-top">
38+
<a class="link-with-intro Bump-link--hover no-underline d-block py-4" href="{{ link.href }}">
39+
<h4 class="link-with-intro-title link-gray-dark mb-1">{{ link.title }}<span class="Bump-link-symbol"></span></h4>
40+
<p class="link-with-intro-intro color-gray-5 mb-0">{{ link.intro | truncatewords: 12 }}</p>
41+
</a>
3842
</li>
3943
{% endfor %}
4044
</ul>
4145
</div>
4246

4347
<div class="col-12 col-lg-4 mb-4 mb-lg-0">
44-
<div class="featured-links-heading pb-3 mb-4 border-bottom">
45-
<h3 class="f5 text-normal text-mono text-uppercase color-gray-5">{% data ui.toc.popular_articles %}</h3>
48+
<div class="featured-links-heading mb-4 d-flex flex-items-baseline">
49+
<h3 class="f4 text-normal text-mono text-uppercase color-gray-5">{% data ui.toc.popular_articles %}</h3>
4650
</div>
4751
<ul class="list-style-none">
4852
{% for link in featuredLinks.popular %}
49-
<li class="Box px-3 py-1 mb-2">
50-
{% include featured-link %}
53+
<li class="border-top">
54+
<a class="link-with-intro Bump-link--hover no-underline d-block py-3" href="{{ link.href }}">
55+
<h4 class="link-with-intro-title link-gray-dark">{{ link.title }}<span class="Bump-link-symbol"></span></h4>
56+
</a>
5157
</li>
5258
{% endfor %}
5359
</ul>
5460
</div>
5561

5662
<div class="col-12 col-lg-4 mb-4 mb-lg-0">
57-
<div class="featured-links-heading pb-3 mb-4 border-bottom">
58-
<h3 class="f5 text-normal text-mono text-uppercase color-gray-5">{% data ui.toc.whats_new %}</h3>
63+
<div class="featured-links-heading mb-4 d-flex flex-items-baseline">
64+
<h3 class="f4 text-normal text-mono text-uppercase color-gray-5">{% data ui.toc.whats_new %}</h3>
65+
<a href="https://github.blog/changelog/" class="ml-4">View all {% octicon "arrow-right" height="14" class="v-align-middle" %}</a>
5966
</div>
6067
<ul class="list-style-none">
6168
{% for link in page.changelog %}
62-
<li class="mb-2">
63-
<a href="{{ link.href }}" class="Box text-gray-dark Bump-link--hover p-3 d-flex flex-justify-between flex-items-center no-underline">
69+
<li class="border-top">
70+
<a href="{{ link.href }}" class="d-block text-gray-dark Bump-link--hover py-3 no-underline">
71+
<time
72+
class="tooltipped tooltipped-n text-gray-light text-mono mb-1"
73+
aria-label="{{ link.date | date: '%B %d, %Y' }}"
74+
>{{ link.date | date: "%B %d" }}</time>
6475
<h4>{{ link.title }} <span class="Bump-link-symbol"></span></h4>
65-
<span class="text-gray-light text-mono ml-2" style="white-space: nowrap">{{ link.date | date: "%B %d, %Y" }}</span>
6676
</a>
6777
</li>
6878
{% endfor %}

0 commit comments

Comments
 (0)