我可以在不使用Jekyll主题的情况下通过git hub页面使用html,css和js托管自定义网站吗?

时间:2018-10-22 15:17:49

标签: javascript jekyll github-pages

因此,我尝试通过Github页面设置投资组合页面,但希望使用自定义代码而不是Jekyll主题。我的页面是HTML,CSS和JS,还没有找到可靠的解决方案。这可能吗?如果可以,我该怎么做?谢谢!

1 个答案:

答案 0 :(得分:2)

可以。

您要做的就是将index.html文件命名为gh-pages并将其发布到适当的存储库中。


您有2个选择:

  1. 如果您已经设置了username.github.io
  2. ,则可以将文件推送到您选择的存储库的username.github.io分支中
  3. 您可以继续创建一个名为master的新报告,并将代码推送到<ListBox x:Name="LibraryBox" Grid.Column="1" Grid.Row="0" Grid.RowSpan="4" Margin="0,-5,0,-10" BorderBrush="Transparent" Background="#1e1e1e" ItemsSource="{Binding}" ItemContainerStyle="{StaticResource ListBoxItemStyle}" IsSynchronizedWithCurrentItem="True" VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.IsVirtualizingWhenGrouping="True" VirtualizingPanel.IsContainerVirtualizable="True" VirtualizingPanel.VirtualizationMode="Standard" ScrollViewer.IsDeferredScrollingEnabled="False" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Visible" SelectionMode="Extended" SelectionChanged="LibraryBox_SelectionChanged" MouseDoubleClick="LibraryBox_MouseDoubleClick"> <ListBox.Resources> <!--#region scrollbar style--> <Style TargetType="{x:Type ScrollBar}"> <Setter Property="Background" Value="Transparent"/> <Setter Property="Foreground" Value="#990000"/> <Setter Property="Width" Value="25"/> </Style> <!--#endregion--> <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Red"/> <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Red"/> </ListBox.Resources> <ListBox.ContextMenu> <ContextMenu> <MenuItem Header="Edit" Click="ContextMenuItemEdit_Click"/> <MenuItem Header="ComicVine Scraper" Click="MenuItemScraper_Click"/> <Separator/> <MenuItem Header="Delete" Click="ContextMenuItemDelete_Click"/> </ContextMenu> </ListBox.ContextMenu> <!--#region Group Style--> <ListBox.GroupStyle> <GroupStyle> <GroupStyle.ContainerStyle> <Style TargetType="{x:Type GroupItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Expander IsExpanded="True"> <Expander.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Name}" FontWeight="Bold" Foreground="#dbdbdb" FontSize="16" FontFamily="Cordia New" VerticalAlignment="Bottom" /> <TextBlock Text="{Binding ItemCount}" FontSize="16" Foreground="#dbdbdb" FontStyle="Italic" Margin="10,0,0,0" FontFamily="Cordia New" VerticalAlignment="Bottom" /> </StackPanel> </Expander.Header> <ItemsPresenter /> </Expander> </ControlTemplate> </Setter.Value> </Setter> </Style> </GroupStyle.ContainerStyle> </GroupStyle> </ListBox.GroupStyle> <!--#endregion--> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Vertical"> <Viewbox Height="100" Width="70" Margin="2"> <Viewbox.LayoutTransform> <ScaleTransform ScaleX="{Binding Value, ElementName=ZoomSlider}" ScaleY="{Binding Value, ElementName=ZoomSlider}"/> </Viewbox.LayoutTransform> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="300"/> <ColumnDefinition Width="32"/> </Grid.ColumnDefinitions> <!--This is for thumbnails--> <Image x:Name="coverImage" Grid.Column="0" Grid.Row="0" Source="{Binding CoverPath, Converter={StaticResource UriToBitmapConverter}, IsAsync=True}"/> <Rectangle x:Name="ReadMarkerBottom" Grid.Column="1" Grid.Row="1" Margin="-16,0,0,0" Fill="#fff" Width="32" Height="32" Loaded="CoverImage_Loaded"/> <Rectangle x:Name="ReadMarkerTop" Grid.Column="1" Grid.Row="1" Margin="-16,0,0,0" Fill="#000" Width="30" Height="30" Loaded="CoverImage_Loaded"/> </Grid> </Viewbox> <TextBlock TextTrimming="CharacterEllipsis" TextAlignment="Center" Width="120" Foreground="#dbdbdb" Background="Transparent" Margin="0,0,0,5" Loaded="Text_Loaded" FontFamily="Cordia New" FontWeight="Bold"> </TextBlock> <TextBlock TextTrimming="CharacterEllipsis" TextAlignment="Center" Width="120" Foreground="#dbdbdb" Background="Transparent" Margin="0,0,0,5" Loaded="IssueNumer_Loaded" FontFamily="Cordia New"/> <TextBlock TextTrimming="CharacterEllipsis" TextAlignment="Center" Width="120" Foreground="#dbdbdb" Background="Transparent" Margin="0,0,0,5" Loaded="CountStack_Loaded" FontFamily="Cordia New"/> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel IsItemsHost="True" Orientation="Horizontal" /> </ItemsPanelTemplate> </ListBox.ItemsPanel> </ListBox> 分支。

这里是link to a github help article


编辑:

具体来说,THIS 5个步骤的教程准确地描述了您要完成的工作。