html 示例MODX博客。请参阅:https://sepiariver.com/modx/creating-a-blog-in-modx/

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 示例MODX博客。请参阅:https://sepiariver.com/modx/creating-a-blog-in-modx/相关的知识,希望对你有一定的参考价值。

<!doctype html>
<html lang="en">
[[$head]]
  <body>
    <div class="container">
        [[$header]]

        [[$jumbotron-[[*class_key]]]]
    </div>
    
    <main role="main" class="container">
        <div class="row">
            <div class="col-md-8 blog-main">
              
                [[[[*class_key:is=`CollectionContainer`:then=`!$blog_listing`:else=`$blog_article`]]]]
    
            </div><!-- /.blog-main -->
        
            [[$aside]]
    
        </div><!-- /.row -->
    
    </main><!-- /.container -->

    <footer class="blog-footer">
        <p>Blog template built for <a href="https://getbootstrap.com/">Bootstrap</a> by <a href="https://twitter.com/mdo">@mdo</a>.</p>
        <p><a href="#">Back to top</a></p>
    </footer>
</body>
</html>
  <head>
    <meta charset="[[++modx_charset]]">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="[[*description]]">
    <title>[[*pagetitle]]</title>

    <link rel="canonical" href="[[~[[*id]]? &scheme=`full`]]">

    [[$styles]]

  </head>
      <header class="blog-header py-3">
        <div class="row flex-nowrap justify-content-between align-items-center">
          <div class="col-4 pt-1">
            <a class="text-muted" href="#">Subscribe</a>
          </div>
          <div class="col-4 text-center">
            <a class="blog-header-logo text-dark" href="[[~[[++site_start]]]]">[[++site_name]]</a>
          </div>
          <div class="col-4 d-flex justify-content-end align-items-center">
            <a class="text-muted" href="/find">
              <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="mx-3" role="img" viewBox="0 0 24 24" focusable="false"><title>Search</title><circle cx="10.5" cy="10.5" r="7.5"/><path d="M21 21l-5.2-5.2"/></svg>
            </a>
            <a class="btn btn-sm btn-outline-secondary" href="#">Sign up</a>
          </div>
        </div>
      </header>

      <div class="nav-scroller py-1 mb-2">
        <nav class="nav d-flex justify-content-between">
            [[TaggerGetTags? &groups=`2` &rowTpl=`tag.tpl` &showUnused=`1`]]
        </nav>
      </div>
<div class="jumbotron p-4 p-md-5 text-white rounded bg-dark">
    <div class="col-md-6 px-0">
        [[getResources?
            &parents=`[[++site_start]]`
            &depth=`0`
            &limit=`1`
            &tpl=`post_meta.tpl`
        ]]
    </div>
</div>
<div class="jumbotron p-4 p-md-5 text-white rounded bg-dark">
    <div class="col-md-6 px-0">
        [[$post_meta.tpl?
            &pagetitle=`[[*pagetitle]]`
            &description=`[[*description]]`
            &publishedon=`[[*publishedon]]`
        ]]
    </div>
</div>
<h1 class="display-4 font-italic">[[+pagetitle]]</h1>
[[+description:is=``:then=``:else=`<p class="lead my-3">[[+description]]</p>`]]
<p class="lead mb-0">[[+publishedon:date=`%b %d, %Y`]]</p>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha256-YLGeXaapI0/5IgZopewRJcFXomhRMlYYjugPLSyNjTY=" crossorigin="anonymous" />

<!-- Custom styles for this template -->
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:700,900" rel="stylesheet">
<style>
    .bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    }
    
    @media (min-width: 768px) {
    .bd-placeholder-img-lg {
      font-size: 3.5rem;
    }
    }
    /* stylelint-disable selector-list-comma-newline-after */
    
    .blog-header {
    line-height: 1;
    border-bottom: 1px solid #e5e5e5;
    }
    
    .blog-header-logo {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2.25rem;
    }
    
    .blog-header-logo:hover {
    text-decoration: none;
    }
    
    h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    }
    
    .display-4 {
    font-size: 2.5rem;
    }
    @media (min-width: 768px) {
    .display-4 {
    font-size: 3rem;
    }
    }
    
    .nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
    }
    
    .nav-scroller .nav {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    }
    
    .nav-scroller .nav-link {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: .875rem;
    }
    
    .card-img-right {
    height: 100%;
    border-radius: 0 3px 3px 0;
    }
    
    .flex-auto {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    }
    
    .h-250 { height: 250px; }
    @media (min-width: 768px) {
    .h-md-250 { height: 250px; }
    }
    
    /*
    * Blog name and description
    */
    .blog-title {
    margin-bottom: 0;
    font-size: 2rem;
    font-weight: 400;
    }
    .blog-description {
    font-size: 1.1rem;
    color: #999;
    }
    
    @media (min-width: 40em) {
    .blog-title {
    font-size: 3.5rem;
    }
    }
    
    /* Pagination */
    .blog-pagination {
    margin-bottom: 4rem;
    }
    .blog-pagination > .btn {
    border-radius: 2rem;
    }
    
    /*
    * Blog posts
    */
    .blog-post {
    margin-bottom: 4rem;
    }
    .blog-post-title {
    margin-bottom: .25rem;
    font-size: 2.5rem;
    }
    .blog-post-meta {
    margin-bottom: 1.25rem;
    color: #999;
    }
    
    /*
    * Footer
    */
    .blog-footer {
    padding: 2.5rem 0;
    color: #999;
    text-align: center;
    background-color: #f9f9f9;
    border-top: .05rem solid #e5e5e5;
    }
    .blog-footer p:last-child {
    margin-bottom: 0;
    }
</style>

以上是关于html 示例MODX博客。请参阅:https://sepiariver.com/modx/creating-a-blog-in-modx/的主要内容,如果未能解决你的问题,请参考以下文章

javascript MIGX示例#MODx

PDF 优化 - 在嵌入文本之前加载图像 - 请参阅提供的示例

ruby 我们在GitHub内部使用的测试快照,以帮助编辑我们的博客文章,然后再发送给所有人。有关更多信息,请参阅

Modx cms示例页(Evolution 1.0)

php 示例导出脚本,用于将MODX资源转换为CSV条目,以便在另一个站点中导入。

c_cpp 包含__builtin_clz()的clz()实现 - 请参阅博客文章http://foonathan.github.io/blog/2016/02/11/implementation-c