pub struct FullIndexConfig {
pub generates: bool,
pub show_link: bool,
pub thumb_ratio: [u32; 2],
pub thumb_size: u32,
pub thumb_gap: String,
}Expand description
Settings for the site-wide “All Photos” index page.
When generates is true, the generate stage renders an extra page at
/all-photos/ showing every image from every public album in a single
thumbnail grid. Thumbnails are generated at the ratio/size specified here,
independent of the regular per-album [thumbnails] settings.
Fields§
§generates: boolWhether the All Photos page is rendered.
show_link: boolWhether to add an “All Photos” item to the navigation menu.
thumb_ratio: [u32; 2]Aspect ratio [width, height] for full-index thumbnails.
thumb_size: u32Short-edge size (in pixels) for full-index thumbnails.
thumb_gap: StringGap between thumbnails on the All Photos grid (CSS value).
Implementations§
Source§impl FullIndexConfig
impl FullIndexConfig
pub fn merge(self, other: PartialFullIndexConfig) -> Self
Trait Implementations§
Source§impl Clone for FullIndexConfig
impl Clone for FullIndexConfig
Source§fn clone(&self) -> FullIndexConfig
fn clone(&self) -> FullIndexConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FullIndexConfig
impl Debug for FullIndexConfig
Source§impl Default for FullIndexConfig
impl Default for FullIndexConfig
Source§impl<'de> Deserialize<'de> for FullIndexConfigwhere
FullIndexConfig: Default,
impl<'de> Deserialize<'de> for FullIndexConfigwhere
FullIndexConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FullIndexConfig
impl PartialEq for FullIndexConfig
Source§impl Serialize for FullIndexConfig
impl Serialize for FullIndexConfig
impl StructuralPartialEq for FullIndexConfig
Auto Trait Implementations§
impl Freeze for FullIndexConfig
impl RefUnwindSafe for FullIndexConfig
impl Send for FullIndexConfig
impl Sync for FullIndexConfig
impl Unpin for FullIndexConfig
impl UnsafeUnpin for FullIndexConfig
impl UnwindSafe for FullIndexConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more