Esempio n. 1
0
        public async Task OnGetAsync()
        {
            ViewModel = new()
            {
                LogoText                   = _blogConfig.GeneralSettings.LogoText,
                MetaKeyword                = _blogConfig.GeneralSettings.MetaKeyword,
                MetaDescription            = _blogConfig.GeneralSettings.MetaDescription,
                CanonicalPrefix            = _blogConfig.GeneralSettings.CanonicalPrefix,
                SiteTitle                  = _blogConfig.GeneralSettings.SiteTitle,
                Copyright                  = _blogConfig.GeneralSettings.Copyright,
                SideBarCustomizedHtmlPitch = _blogConfig.GeneralSettings.SideBarCustomizedHtmlPitch,
                SideBarOption              = _blogConfig.GeneralSettings.SideBarOption.ToString(),
                FooterCustomizedHtmlPitch  = _blogConfig.GeneralSettings.FooterCustomizedHtmlPitch,
                OwnerName                  = _blogConfig.GeneralSettings.OwnerName,
                OwnerEmail                 = _blogConfig.GeneralSettings.OwnerEmail,
                OwnerDescription           = _blogConfig.GeneralSettings.Description,
                OwnerShortDescription      = _blogConfig.GeneralSettings.ShortDescription,
                SelectedTimeZoneId         = _blogConfig.GeneralSettings.TimeZoneId,
                SelectedUtcOffset          = _timeZoneResolver.GetTimeSpanByZoneId(_blogConfig.GeneralSettings.TimeZoneId),
                SelectedThemeId            = _blogConfig.GeneralSettings.ThemeId,
                AutoDarkLightTheme         = _blogConfig.GeneralSettings.AutoDarkLightTheme
            };

            Themes = await _themeService.GetAllSegment();
        }
    }