Skip to content

Commit

Permalink
Merge branch 'main' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
monotasker committed Dec 10, 2024
2 parents d818810 + ad21a0e commit 63f663f
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Knowledge Commons Works is a collaborative tool for storing and sharing academic research. It is part of Knowledge Commons and is built on an instance of the InvenioRDM repository system.

Version 0.3.1-beta4
Version 0.3.2-beta5

## Copyright

Expand Down
6 changes: 6 additions & 0 deletions assets/less/site/elements/list.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@
&:hover {
background-color: transparent;
}
}

.details-list {
dd {
overflow-wrap: break-word;
}
}
40 changes: 35 additions & 5 deletions assets/less/site/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ html.cover-page {
margin-bottom: 0.25rem;
margin-top: 1rem;
}
dd {
overflow-wrap: break-word;
}
}
.record-details-tab {
&.ui.attached.segment {
Expand Down Expand Up @@ -717,19 +720,46 @@ html.cover-page {
margin-bottom: 1rem;
}
&#social-sharing {
.button {
margin-bottom: 0.25rem;
.icon {
color: @primaryTextColor;
svg {
height: 1em;
width: 1em;
fill: @primaryTextColor;
}
}
&:hover,
&:focus,
&:active {
.icon {
color: @ivy !important;
svg {
fill: @ivy !important;
}
}
}
}
.mastodon-popup {
width: 2.75rem;
height: 0.25rem;
display: inline-block;
position: absolute;
background-color: transparent;
}
.button {
margin-bottom: 0.25rem;
.icon.bluesky {
svg {
position: relative;
top: 1.5px;
}
}
.icon.mastodon {
svg {
height: 1em;
width: 1em;
fill: @primaryColor;
position: relative;
top: -0.5px;
height: 1.15em;
width: 1.15em;
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions site/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

# Changes

## 0.3.2-beta5 (2024-12-11)

- Added Bluesky sharing option to detail page
- Fixed line wrapping of long values in record sidebar details
- Added OpenGraph image metadata property to record detail page
- This allows social media platforms to display the KCWorks logo instead of a random image they might find on the page.

## 0.3.1-beta4 (2024-12-10)

- Added sort options for publication date to record search
Expand Down
2 changes: 1 addition & 1 deletion site/kcworks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

"""KCWorks customizations to InvenioRDM."""

__version__ = "0.3.1-beta4"
__version__ = "0.3.2-beta5"
2 changes: 1 addition & 1 deletion site/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "kcworks"
version = "0.3.0-beta3"
version = "0.3.2-beta5"

[project.optional-dependencies]
tests = ["pytest-invenio>=2.1.0,<3.0.0"]
Expand Down
3 changes: 3 additions & 0 deletions static/images/bluesky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/images/hc-icon.jpg
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
{# <meta name="citation_lastpage" content="{{record.custom_fields['journal:journal'].pages}}" /> #}

{{- meta_opengraph(meta_title, meta_description, url=meta_url) }}
<meta property="og:image" content="{{config['SITE_UI_URL']}}{{url_for('static', filename=config['THEME_LOGO'])}}" />

{{- meta_twittercard(meta_title, meta_description) }}

Expand Down

0 comments on commit 63f663f

Please sign in to comment.