<reponame>lsst-sqre/lander<filename>src/lander/themes/minimalist/_plugin.py<gh_stars>1-10
from __future__ import annotations

from pathlib import Path

from lander.ext.theme import ThemePlugin

__all__ = ["MinimalistTheme"]


class MinimalistTheme(ThemePlugin):
    """A minimalist-style landing page theme to demonstrate Lander."""

    @property
    def name(self) -> str:
        """Name of this theme."""
        return "minimalist"

    @property
    def base_theme_name(self) -> str:
        """Name of the theme this theme inherits from."""
        return "base"

    @property
    def site_dir(self) -> Path:
        """Site directory containing assets and stub files to render."""
        return Path(__file__).parent.joinpath("site")

    @property
    def templates_dir(self) -> Path:
        """Directory containing Jinja templates included by Jinja-templated
        files in the site.
        """
        return Path(__file__).parent.joinpath("templates")

from __future__ import annotations

from pathlib import Path

from lander.ext.theme import ThemePlugin

__all__ = ["MinimalistTheme"]


class MinimalistTheme(ThemePlugin):
    """A minimalist-style landing page theme to demonstrate Lander."""

    @property
    def name(self) -> str:
        """Name of this theme."""
        return "minimalist"

    @property
    def base_theme_name(self) -> str:
        """Name of the theme this theme inherits from."""
        return "base"

    @property
    def site_dir(self) -> Path:
        """Site directory containing assets and stub files to render."""
        return Path(__file__).parent.joinpath("site")

    @property
    def templates_dir(self) -> Path:
        """Directory containing Jinja templates included by Jinja-templated
        files in the site.
        """
        return Path(__file__).parent.joinpath("templates")
A minimalist-style landing page theme to demonstrate Lander. Name of this theme. Name of the theme this theme inherits from. Site directory containing assets and stub files to render. Directory containing Jinja templates included by Jinja-templated         files in the site.