Giter VIP home page Giter VIP logo

paulradzkov.com's Introduction

paulradzkov.com blog built with DocPad

Getting Started

  1. Install DocPad

  2. npm install -g bower

  3. npm install -g grunt-cli

  4. Clone the project and run the server

    git clone https://github.com/paulradzkov/paulradzkov.com.git
    cd paulradzkov.com
    npm install
    bower install
    grunt
  5. Open http://localhost:9778/

License

You are free to use code (HTML/JS/CoffeeScript) of this site, but you can’t use design (css, images) and content.

paulradzkov.com's People

Contributors

dependabot[bot] avatar paulradzkov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

paulradzkov.com's Issues

FTP Деплой

Павел. добрый день. Уже который год, время от времени возвращаюсь к вашему сайту на docpad.
И разбираю по косточкам, какая строчка что значит. Для меня это такой проект, в котором можно неплохо разобраться в grunt. Сейчас делаю сайт для собственного дома и сообщества соседей.

Но я вот заметил, что есть в конфиге заготовка под деплой по ФТП.

я переименовал ftppass.example в .ftppass ввел требуемые значения для подключения.
в Gruntfile.coffee
'ftp-deploy': build: auth: host: 'paulradzkov.com' port: 21 authPath: '.ftppass' authKey: 'primary' src: 'out/' dest: '/www/paulradzkov.com' exclusions: [ 'out/**/.DS_Store' 'out/**/Thumbs.db' ]

Заменил переменные требуемые мне. Но вот как сделать так, чтобы grunt инициировал загрузку по фтп содержимого на сервер, так и не пойму.

Ощущение, что надо что то изменить в коде, но не уверен, что это поможет.
grunt.registerTask 'ghpages', ['shell:clean', 'shell:ghpages', 'production', 'gh-pages'] grunt.registerTask 'deploy', ['shell:clean', 'shell:ghpages', 'production', 'gh-pages']
Пробовал gh-pages заменить на ftp-deploy, но такое ощущение, что надо еще как-то shell прописывать.

Подскажите, куда в данном случае лучше смотреть?

Извините, что позорно пишу issue на русском, просто так и не придумал иного способа, изящно и вежливо задать вам вопрос

Update template for offline

<% for page in @getCollection("articles").toJSON().slice(0,1): %>
<section class="blogwall-item blogwall-gridcell blogwall-gridcell-promo blogwall-fauxlink col-flex-sm">
<% if (page.cover) : %>
<figure class="space-minus-top-mili-xs space-minus-h-base-xs">
<img src="<%= page.url %><%= page.cover %>" alt="<%= page.title %>">
</figure>
<% end %>
<p class="txt-date space-auto-top-xs space-out-bottom-zero-xs">
<% if (page.badge) : %>
<span class="badge space-out-right-nano-xs <% if (page.badgetype) : %><%= page.badgetype %><% end %>"><%= page.badge %></span>
<% end %>
<time datetime="<%= page.created_at %>">
<%=@moment(page.created_at).format('DD MMMM YYYY') %>
</time>
</p>
<% if (page.starred) : %>
<div class="blogwall-item-star">★ <span class="blogwall-readable-only">Популярная статья</span></div>
<% end %>
<h3 class="space-out-top-nano-xs">
<a href="<%= page.url %>" class="link blogwall-link" tabindex="-1"><%= page.title %></a>
</h3>
<div><%- @cuttedContent page.contentRenderedWithoutLayouts %></div>
<aside class="space-auto-top-xs row row-between-xs">
<a class="link col-xs-shrink" href="<%= page.url %>#disqus_thread" data-disqus-identifier="<%= page.disqusid %>" tabindex="-1">Комментарии</a>
<div class=" col-xs-shrink">
</div>
</aside>
<a href="<%= page.url %>" class="link blogwall-fauxlink--overlay"><span class="blogwall-readable-only">Читать статью «<%= page.title %>»</span></a>
</section>
<% end %>
<% for page in @getCollection("articles").toJSON().slice(1): %>
<%- @partial('blogwallitem', true, {page: page}) %>
<% end %>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.