Skip to content

Commit

Permalink
Last little changes for femme design
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelmdLow committed Nov 15, 2024
1 parent 43b62c8 commit 4f76229
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions article/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,12 +1200,13 @@ def get_authors_split_out_visual_bylines(self) -> str:
return writers + visuals
authors_split_out_visual_bylines = property(fget=get_authors_split_out_visual_bylines)

def get_category_articles(self, order='-first_published_at', max=10) -> QuerySet:
def get_category_articles(self, order='-first_published_at', max=False) -> QuerySet:
"""
Returns a list of articles within the Article's category
"""
category_articles = ArticlePage.objects.live().filter(category=self.category).not_page(self).order_by(order)[:max]

category_articles = ArticlePage.objects.live().filter(category=self.category).not_page(self).order_by(order)
if max:
return category_articles[:max]
return category_articles

def get_section_articles(self, order='-first_published_at', max=10) -> QuerySet:
Expand Down
6 changes: 5 additions & 1 deletion ubyssey/static_src/src/styles/supplement-2024-femme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ header h1 {
}

.fw-description, .subtitle {
margin: 1em auto;
margin: 2em auto;

text-align: center;
font-size: 2em;
line-height: 1em;
color: var(--highlightColour);
font-family: norman-variable, sans-serif;
font-variation-settings: 'wght' 600;
}

a {
Expand Down Expand Up @@ -249,6 +251,8 @@ img {
flex-direction: column;
img {
margin: 0 auto;
height: 250px;
width: auto;
}
a {
color: #a71d2c;
Expand Down

0 comments on commit 4f76229

Please sign in to comment.